How to Create a Barcode for Your Products
Create product barcodes the right way: license GTINs from GS1, assign one per variant, pick EAN-13 or UPC-A, size and place the code, then print and test it.
By StylQR Editorial TeamPublished 5 min read

Table of contents
To create a barcode for your products, license GTIN numbers from your national GS1 organization, give each product variant its own number, then draw that number as an EAN-13 barcode (or UPC-A if you sell mainly in the US and Canada) at the right size. Print a proof, scan it, and only then print your packaging.
The drawing is the easy part. Most problems come from the number, so this guide spends time there before getting to the barcode itself.
Step 1: Count what needs a number
Every distinct thing a shopper can buy needs its own GTIN. GS1 US puts it simply: each variation of each product you sell requires a unique barcode (GS1 US).
Multiply your options. A tea brand with 4 flavours in 2 pack sizes needs 8 numbers. If it also sells a gift box with one of each flavour, that's 9. Add a few spares for products you plan to launch in the next year or two.
Things that usually need separate numbers:
- Each size, weight or volume
- Each color or flavour
- Each multipack or bundle sold as one unit
- A significant change to the product, as GS1's rules define it
Step 2: License numbers from GS1
GS1 is the not-for-profit body that runs the global barcode numbering system. You license numbers from the member organization in your country, not from GS1 globally:
- US: GS1 US sells a single GTIN for one product, or a company prefix that covers more, with a yearly renewal.
- India: GS1 India is the only authorized issuer of barcodes starting with 890, and it warns that unauthorised barcodes can lead to trade restrictions at retailers and marketplaces (GS1 India).
- Elsewhere: GS1 UK, GS1 Germany, GS1 Australia and others work the same way.
Fees depend on your country and how many numbers you need, so check your national GS1 site. Avoid cheap numbers from resellers: they may not be registered to your company, and retailers that check the GS1 registry can reject them.
Step 3: Assign your GTINs
With a company prefix, you create numbers by adding an item reference and a check digit. If GS1 India gave you the illustrative prefix 89061234, your GTIN-13s would be:
| Product | Item reference | GTIN-13 |
|---|---|---|
| Green tea, 100 g | 5678 | 890612345678 + check digit |
| Green tea, 250 g | 5679 | next number + check digit |
Keep a simple spreadsheet: GTIN, product name, size, launch date. Most GS1 organizations also offer an online tool to record product details against each GTIN (GS1 US calls its version Data Hub; GS1 India's is DataKart). Retailers increasingly look up that data, so fill it in.
The check digit is calculated from the first 12 digits. For 890612345678 it's 1, giving 8906123456781. The EAN-13 guide shows the calculation step by step.
Step 4: Choose the barcode type
| Situation | Barcode |
|---|---|
| Retail product, GTIN-13 | EAN-13 |
| Retail product, GTIN-12 from GS1 US | UPC-A |
| Very small pack | EAN-8 or UPC-E, if GS1 has issued a suitable number |
| Book | ISBN, printed as EAN-13 |
| Outer carton of several units | ITF-14 or GS1-128 with a GTIN-14 |
For cartons, the case gets its own GTIN-14. One way is to take the first 12 digits of the item's GTIN-13, put an indicator digit from 1 to 8 in front, and calculate a new check digit: 890612345678 with indicator 1 becomes 18906123456788. Follow your GS1 organization's guidance on which method to use. What a GS1 barcode is explains case and pallet codes in more detail.
Step 5: Generate the barcode
- Open the EAN-13 barcode generator (or UPC-A).
- Enter your 12 digits. The check digit is added automatically, and a wrong one is flagged with the correct value.
- Set Bar width (X-dimension) to 0.33 mm for standard 100% size, or between about 0.26 mm and 0.66 mm if your pack needs smaller or larger. Keep Bar height at the default for the magnification you chose.
- Leave the quiet zone on and keep bars black on a white background.
- Download SVG or the exact-size PDF for your packaging designer.
Step 6: Place it on the pack
Where you put the barcode affects how quickly it scans at checkout.
- Back of the pack, lower right is the usual position on boxes and bags.
- Flat surface, clear of seams, folds, flaps and edges.
- On tight curves like small bottles, rotate the code so the bars run horizontally (called ladder orientation). The curve then bends the length of the bars instead of the gaps between them, so the whole code stays readable.
- Keep the quiet zone clear of text, borders and artwork: 11 modules on the left and 7 on the right for EAN-13, according to GS1 Sweden's size guide.
- Don't truncate the height to fit a design. Retailers often reject shortened codes.
Print color matters too. Black on white is the safest choice. Dark blue or dark green bars on white work. Red, orange and yellow bars don't, because checkout scanners use red light.
Step 7: Test before the print run
Print a proof at actual size on the material you'll use, then:
- Scan it with a phone barcode app and a handheld scanner if you have one.
- Check that the decoded number matches your spreadsheet exactly.
- Try it on curved or glossy material as it will really be used.
For big retail launches, some retailers ask for a barcode verification report, which grades print quality to ISO standards. Your GS1 organization can usually point you to verification services.
Where to go from here
If you're labeling a whole range, the bulk barcode generator creates every barcode from one spreadsheet. How to generate multiple barcodes at once shows the steps. And if you're also thinking about a QR code on the pack for recipes or instructions, QR codes on product packaging covers how to add one without confusing the checkout.
Frequently asked questions
Do I need a barcode to sell on my own website?
Not for the website itself. You need one when a retailer, distributor or marketplace requires a GTIN, which most large ones do for branded products.
Can I use the barcode from my supplier or manufacturer?
Only if the product is sold under their brand. If it carries your brand name, the GTIN should come from your own GS1 license.
How long does it take to get GS1 barcodes?
It varies by country. GS1 US says its welcome email arrives within minutes of purchase. Other GS1 organizations may need documents and take longer, so check your national site.
Do bundles and multipacks need their own barcode?
Yes. A pack of three sold as one unit at checkout is a different trade item from a single unit and needs its own GTIN.


