EAN & UPC Barcode Generator
Product codes scanned at checkout. Real retail use needs a GS1 company prefix.
To sell in retail stores you need a GS1 company prefix. Get one from GS1 (opens in a new tab)
Live preview
EAN and UPC barcodes are scanned at checkout in shops and supermarkets around the world. Each one holds a GTIN, a unique product number, and the store looks up the price in its own system. Products sold in stores need numbers from GS1; the barcode is just the printed form of that number.
Use EAN-13 for most products outside the US and Canada, and UPC-A for those two markets; checkout scanners read both. Choose EAN-8 or UPC-E only when the pack is too small for the full code. Add-ons are for magazines (2 digits) and book prices (5 digits).
12 barcode types in EAN / UPC (Retail)
Which EAN / UPC (Retail) barcode should I use?
| Barcode type | Allowed data | Best for |
|---|---|---|
| EAN-13 | 12 digits (+ auto check digit) | Retail products worldwide |
| EAN-8 | 7 digits (+ auto check digit) | Small retail packages |
| UPC-A | 11 digits (+ auto check digit) | Retail products USA/Canada |
| UPC-E | 7 digits starting 0/1 (+ check) | Small US retail packages |
| EAN-13 + 2-digit add-on | EAN-13 + 2 digits | Magazines (issue number) |
| EAN-13 + 5-digit add-on | EAN-13 + 5 digits | Books (price add-on) |
| EAN-2 add-on (standalone) | 2 digits | Periodicals |
| EAN-5 add-on (standalone) | 5 digits | Book prices |
| EAN-13 Composite | EAN-13 | GS1 AI data | Fresh food, variable data |
| EAN-8 Composite | EAN-8 | GS1 AI data | Small pack + batch data |
| UPC-A Composite | UPC-A | GS1 AI data | Retail + extra data |
| UPC-E Composite | UPC-E | GS1 AI data | Retail + best before |
How an EAN or UPC Number Is Put Together
An EAN-13 holds a 13-digit GTIN: a GS1 company prefix, an item reference that you assign, and a check digit calculated with alternating weights of 1 and 3 (modulo 10). The first two or three digits show which GS1 member organization issued the prefix, not the country where the product was made.
UPC-A holds the same kind of number in 12 digits. Add a leading zero and it becomes a valid EAN-13, which is why checkout systems handle both. UPC-E is a shortened form of certain UPC-A numbers with zeros removed, and EAN-8 is a separate 8-digit GTIN that GS1 issues one at a time for very small packs.
GTIN Rules Every Retail Barcode Must Follow
- Use a GS1 company prefix or a GTIN licensed to your business; numbers that belong to another company may be rejected by retailers and marketplaces that check GS1 data
- Give each variant (size, color, flavor, pack count) its own GTIN
- Do not reuse a GTIN for a different product
- Prefixes 02 and 20 to 29 are for in-store use only, such as weighed items and store labels, and are not unique outside that store
- The barcode only carries the number; the price and description live in the retailer's system
Retail Barcode Size, Color and Placement
GS1 gives EAN-13 a nominal size of 37.29 × 25.93 mm at 100%, with a permitted range of 80% to 200%. Cutting the height below the specification is a common reason for slow checkout scans. EAN-13 needs a quiet zone of 11 modules on the left and 7 on the right; UPC-A needs 9 on each side.
Print black or dark blue bars on white or a light color. Red bars, or bars on a red background, are invisible to the red light used by many scanners. Avoid curved surfaces where the bars wrap around, folds and seams. QRCodeChamp exports EAN and UPC as SVG, EPS or PDF vectors, so your designer can place them at an exact size.
Add-Ons and Composite EAN/UPC Codes
Add-ons are small extra symbols printed to the right of the main code. The 2-digit add-on carries an issue number on magazines and newspapers, and the 5-digit add-on carries a suggested price on books. Checkout scanners can be set to read or ignore them.
Composite codes are different: a small 2D component based on MicroPDF417 sits above the EAN or UPC and carries GS1 data such as batch or expiry date. A standard checkout scanner still reads the linear part, while a 2D imager reads both.
Common EAN and UPC Mistakes
- Typing the check digit wrong; let the generator calculate it
- Shrinking the barcode to fit the label instead of choosing EAN-8 or UPC-E
- Using UPC-E for a number that cannot be zero-suppressed
- Printing reversed (light bars on a dark background), which many scanners cannot read
How to Create a Barcode in 3 Steps
Choose a barcode type
Select a category on the left (e.g. Linear Codes), then the exact type like Code-128.
Enter data & customise
Type your data — we check it live and add check digits. Adjust size, font and colors.
Download or print
Get PNG, JPG, SVG, PDF or EPS, or print a full sheet of labels in one click.
Why Use QRCodeChamp Barcode Generator
125+ barcode types
Linear, 2D, GS1, postal, healthcare and payment codes.
Live validation
Friendly errors with one-click fixes and automatic check digits.
Print-ready PDF
Exact mm sizes, label sheets (Avery, A4, 4×6 thermal).
Bulk barcodes
Paste a list or generate number sequences.
Choose the Type of Barcode You Need
Not sure which barcode to use? Start with what you need it for — we’ll pick the right type.
EAN / UPC (Retail) FAQs
You can print any valid number, but to sell through retailers or marketplaces you normally need a GTIN licensed to your company by GS1. The barcode generator only draws the code; it does not issue or register numbers.
UPC-A has 12 digits and comes from the US and Canada, while EAN-13 has 13 digits and is used in most other countries. A UPC-A number is an EAN-13 with a leading zero, and modern checkout scanners read both.
GS1 allows down to 80% of the nominal size for EAN-13. If the pack is still too small, use EAN-8 or UPC-E rather than shrinking further or cutting the bar height.
Numbers starting with 20 to 29 are restricted circulation numbers that a store or a national GS1 office defines for internal use, often for weighed products with the price or weight inside the code. They are not unique across retailers.
Standard checkout scanners read the EAN or UPC part and ignore the 2D component. To use the batch or expiry data in the composite part, the store needs a 2D imaging scanner set up to read it.
