If you plan to sell in shops, on marketplaces or through distributors, sooner or later a buyer will ask for your product barcode. Many first-time sellers think how to get a barcode for a product means finding a barcode generator. In fact there are two separate parts: the number, which must be officially registered, and the image, which you can create for free. This guide explains both and helps you avoid the most expensive mistakes.
What is a product barcode, exactly?
A retail product barcode encodes a GTIN (Global Trade Item Number). In Europe and most of the world it is printed as an EAN-13 barcode with 13 digits; in the USA and Canada it is usually a UPC-A barcode with 12 digits. The number identifies one specific product variant (for example "green tea, 20 bags"), not a single unit. When the cashier scans it, the store's system looks the number up in its own database to find the price and name.
GTINs are managed by GS1, a not-for-profit standards organization with member organizations in more than 100 countries. GS1 makes sure that no two companies use the same number.
Step 1: Get your numbers from GS1
- Find your local GS1 office. Each country has one (GS1 UK, GS1 France, GS1 US, and so on). Apply where your company is based.
- Choose a license. Most offices license a company prefix that lets you create a block of numbers (10, 100, 1,000 or more). Some, such as GS1 US, also sell single GTINs for very small ranges.
- Pay the fees. Costs vary by country and by number of products: typically a joining fee plus an annual fee for prefixes. As an approximate guide, small ranges usually cost from a few dozen to a few hundred euros or dollars per year; check your local GS1 price list.
- Receive your prefix. You get a company prefix and access to GS1 tools to record your products.
Step 2: Assign a number to each product
Each variant that is sold separately needs its own GTIN: different size, color, flavor or pack quantity. A 6-pack and a single bottle are two products. Keep a simple spreadsheet with the number, product name, size and date assigned, and never reuse a number for a different product.
| Situation | New GTIN needed? |
|---|---|
| New flavor or color | Yes |
| New pack size (e.g. 250 g to 500 g) | Yes |
| Multipack sold as one unit | Yes |
| Minor packaging redesign, same contents | Usually no |
| Carton of 12 units for wholesale | Yes (often printed as ITF-14) |
| Price change only | No |
Step 3: Calculate the check digit
The last digit of an EAN-13 or UPC-A is a check digit that lets scanners detect errors. For EAN-13, multiply the first 12 digits alternately by 1 and 3 (starting with 1), add the results, and take the number needed to reach the next multiple of 10.
Example with 590123412345: 5×1 + 9×3 + 0×1 + 1×3 + 2×1 + 3×3 + 4×1 + 1×3 + 2×1 + 3×3 + 4×1 + 5×3 = 83. The next multiple of 10 is 90, so the check digit is 7 and the full number is 5901234123457.
You do not need to do this by hand: the free barcode generator adds the check digit automatically when you type the first 12 digits (11 for UPC-A).

Step 4: Generate and print the barcode image
- Open the EAN-13 and UPC barcode generator.
- Choose EAN-13 (worldwide) or UPC-A (USA and Canada). Use EAN-8 only if your GS1 office has assigned you an EAN-8 for a very small package.
- Type your number without the check digit.
- Keep black bars on a white background and keep the human-readable digits visible.
- Download SVG for your packaging designer, or a high-resolution PNG.
Printing rules that matter
- Size: the nominal EAN-13 size is about 37.3 × 25.9 mm. Retailers usually accept roughly 80% to 200% of that; do not shrink the height ("truncation") unless your retailer allows it.
- Colors: dark bars on a light background. Never print red or orange bars: red-light scanners cannot see them.
- Quiet zones: leave blank space on both sides of the bars.
- Placement: on a flat area, away from folds, seams and curved edges.
Should you record your products in the GS1 database?
Yes. Most GS1 offices provide an online tool where you attach basic data to each number: brand, product description, net content, image and target market. Retailers and marketplaces use this shared data to confirm that a GTIN really belongs to your company and matches the product. Filling it in takes a few minutes per product and prevents listing problems later. Update the record whenever you launch a new variant.
Can you buy cheap barcodes from resellers?
You will find websites selling UPC or EAN numbers for a few dollars. These numbers usually come from old company prefixes that were licensed before GS1 tightened its rules, and the GS1 database will show the original company, not you. Major retailers and marketplaces increasingly verify GTINs against GS1 data, and products with mismatched numbers can be refused or delisted. For anything beyond a hobby project, licensing directly from GS1 is the safe choice.
Do you need a barcode at all?
- Selling in supermarkets, pharmacies or chain stores: yes, a GS1 GTIN is required.
- Selling on large marketplaces: usually yes, unless you qualify for a brand exemption under the platform's rules.
- Selling only on your own website, at markets or in your own shop: not required. For internal stock you can use your own codes in Code 128 (see the main types of barcodes).
Add a QR code for your customers
A barcode serves the checkout; a QR code serves the customer. Many brands add a QR code that links to instructions, recipes, ingredients or warranty registration. Create one with the link QR code generator, or generate a different code for each product reference with the bulk QR code generator. Keep it clearly separated from the barcode. Our comparison barcode vs QR code explains how the two work together.
Key takeaways
- The barcode number (GTIN) comes from GS1; the image can be generated for free.
- Use EAN-13 worldwide and UPC-A for the USA and Canada.
- Every sellable variant needs its own number; never reuse numbers.
- Print black on white, at the right size, with clear margins.
- Avoid unofficial resold numbers for retail and marketplace products.
Official information and local contacts are available on the GS1 global website.
