MAXScanner Guide
Which Barcode Do I Need? Types and Sizes
Products sold in shops need an EAN-13 or UPC-A number licensed from GS1; your own stock and shipping labels can use Code 128 for free. We encoded the same data in each type and measured width and scanning.
The short answer
Choose the barcode by where it will be scanned. A product sold in shops or on marketplaces needs a GTIN, a number licensed by GS1, printed as EAN-13 (or UPC-A in the US and Canada). Cartons in a warehouse use ITF-14 or GS1-128. Anything only your own business scans, such as stock bins, equipment, files and internal shipping labels, can use Code 128 with any text you like and no registration.
The type also sets the size. The same 13 digits are 37.29 mm wide as EAN-13, 47.19 mm as Code 128 and 85.47 mm as Code 39 at the same bar width.
Barcode types and what each one is for
These are the types you will meet on products, cartons and labels, and the ones MAXScanner’s barcode generator makes.
| Barcode | What it holds | Typical use | Number from GS1 needed? |
|---|---|---|---|
| EAN-13 | 13 digits (GTIN-13) | Retail products worldwide | Yes |
| UPC-A | 12 digits (GTIN-12) | Retail products in the US and Canada | Yes |
| EAN-8 / UPC-E | 8 digits | Very small packs | Yes |
| ITF-14 | 14 digits (GTIN-14) | Outer cartons, printed on corrugated board | Yes |
| GS1-128 | GTIN plus batch, expiry date, serial number and more | Pallets, logistics, healthcare | Yes |
| Code 128 | Letters, digits and symbols | Stock, assets, documents, shipping labels | No |
| Code 39 | A–Z, 0–9 and - . $ / + % space | Older industrial and government systems | No |
| QR code (2D) | Text and links | Web links, payments, tickets | No |
The same data in each barcode
We encoded the same values with MAXScanner’s barcode engine and measured the width of each symbol, including the blank margins (quiet zones) scanners need. A module is the width of the narrowest bar, X.
| Data | Barcode | Width in modules | Width at X = 0.33 mm |
|---|---|---|---|
| GTIN 9501101530003 | EAN-13 | 113 | 37.29 mm |
| GTIN 9501101530003 | Code 128 | 143 | 47.19 mm |
| GTIN 9501101530003 | Code 39 | 259 | 85.47 mm |
| Order number PO-2026-04817 | Code 128 | 187 | 61.71 mm |
| Order number PO-2026-04817 | Code 39 | 259 | 85.47 mm |
| 16 digits 1029384756102938 | Code 128 | 143 | 47.19 mm |
| 16 digits 1029384756102938 | Code 39 | 307 | 101.31 mm |
Why Code 128 is shorter
Code 128 packs digits two to a symbol, which is why 16 digits take no more room than the 13-digit GTIN and less than the 13-character order number. Code 39 spends 16 modules on every character at its usual 3:1 bar ratio, so it is always the widest. Its one advantage is that old scanners and software read it without any setup, which is why some older industrial and government specifications still ask for it.
How big a barcode has to be
GS1 sets the size of retail codes. At 100 % an EAN-13 or UPC-A has X = 0.33 mm, is 37.29 mm wide including margins and has bars 22.85 mm tall. For codes scanned at a checkout, GS1 allows 80 % to 200 %. Codes on cartons for warehouses need bars of at least 0.495 mm.
| Magnification | X (narrowest bar) | Width with margins | Bar height |
|---|---|---|---|
| 80 % (smallest) | 0.264 mm | 29.83 mm | 18.28 mm |
| 100 % (standard) | 0.33 mm | 37.29 mm | 22.85 mm |
| 200 % (largest) | 0.66 mm | 74.58 mm | 45.70 mm |
Sources
- GS1 General Specifications (checked Nov 10, 2026)
Pixels: why a barcode image can stop scanning after resizing
Barcode images are often resized on their way into a document or to a printer. We drew each code sharply, scaled it down to fewer pixels per narrow bar, the way a shrunken PNG or a distant camera sees it, and read it back with the decoder in MAXScanner’s barcode scanner.
| Barcode | 3 px per bar | 2 px | 1.5 px | 1.25 px | 1 px |
|---|---|---|---|---|---|
| EAN-13 | Read | Read | Read | Failed | Read |
| UPC-A | Read | Read | Read | Read | Read |
| Code 128 | Read | Read | Failed | Failed | Read |
| Code 39 | Read | Read | Read | Read | Read |
| ITF-14 | Read | Read | Failed | Failed | Failed |
| GS1-128 | Read | Read | Failed | Failed | Read |
What the scaling test means
Two or more pixels per narrow bar read every time. In between, at 1.5 and 1.25 pixels, bar edges fall inside pixels and turn grey, and Code 128, GS1-128 and ITF-14 stopped reading although they still looked like barcodes. At exactly 1 pixel per bar most read again, because every bar lands on whole pixels. So scale a barcode image only by whole numbers, or use SVG or PDF, which keep exact bar widths at any size. MAXScanner’s PNG files round the bar width to whole pixels at the DPI you choose: at 300 DPI, 0.33 mm becomes 4 pixels, which prints at 0.339 mm.
Getting a product number (GTIN)
Retail barcodes encode a GTIN, and GTINs come from GS1, a non-profit standards body with one member organisation per country or region. You license either a single number or a company prefix that lets you number many products. GS1 US, for example, charges $30 once for one GTIN, or $250 plus $50 a year for a prefix that covers 10 products (its prices on 10 November 2026). Elsewhere the local GS1 office sets the fees.
Marketplaces check the number against GS1’s records. Amazon India’s seller guide says Amazon’s systems regularly verify product IDs against the GS1 database and that barcodes bought from resellers often lead to rejected listings; brands in Amazon Brand Registry may qualify for a GTIN exemption.
Sources
- GS1 US: How to get a UPC barcode (checked Nov 10, 2026)
- Amazon India seller blog: How to get a product ID (checked Nov 10, 2026)
What the first digits mean
The first digits of a GTIN show which GS1 office licensed the number, not where the product was made. A company that joined GS1 India gets numbers starting with 890 and may have its goods made in any country. Prefixes in the markets MAXScanner serves:
| Prefix | Licensed by |
|---|---|
| 001–019, 030–039, 060–139 | GS1 US |
| 754–755 | GS1 Canada |
| 750 | GS1 Mexico |
| 778–779 | GS1 Argentina |
| 789–790 | GS1 Brasil |
| 300–379 | GS1 France |
| 400–440 | GS1 Germany |
| 500–509 | GS1 UK |
| 560 | GS1 Portugal |
| 800–839 | GS1 Italy |
| 840–849 | GS1 Spain |
| 450–459, 490–499 | GS1 Japan |
| 880–881 | GS1 Korea |
| 680–681, 690–699 | GS1 China |
| 471 | GS1 Taiwan |
| 622 | GS1 Egypt |
| 628 | GS1 Saudi Arabia |
| 629 | GS1 UAE |
| 890 | GS1 India |
| 894 | GS1 Bangladesh |
| 200–299 | Numbers for use inside one shop or region, such as weighed goods |
| 978–979 | Books (ISBN) |
| 950 | GS1 Global Office, also used in GS1’s examples |
Sources
- Wikipedia: List of GS1 country codes (checked Nov 10, 2026)
The check digit
The last digit of every GTIN is a check digit that catches typing and scanning errors. Multiply the other digits alternately by 3 and 1, starting from the right, add them up and take the amount needed to reach the next multiple of 10. For 950110153000 the weighted sum is 47, so the check digit is 3 and the full number is 9501101530003. MAXScanner’s generator adds a missing check digit and, if you type a wrong one, names the right one and shows the sum. Code 128 carries its own hidden check character, so you never type one.
When our generator is not the right tool
MAXScanner makes the barcode image. Some jobs need more than that.
- It does not issue GTINs. Get those from GS1 first.
- It makes linear barcodes and QR codes only. GS1 DataBar (fresh produce), Data Matrix (medicines, medical devices) and PDF417 (ID cards, boarding passes) need other software.
- Its scan check proves that the code decodes to the right value; it is not a print-quality grade. Retailers who ask for an ISO/IEC 15416 grade need a barcode verifier.
- On a thermal label printer, choose its DPI (203 or 300) in the generator, so the bar width is rounded to whole printer dots.
Frequently asked questions
What is the difference between UPC and EAN?
UPC-A has 12 digits and is used mainly in the US and Canada; EAN-13 has 13 digits and is used in the rest of the world. A UPC-A number is an EAN-13 with a leading 0, and checkout scanners everywhere read both.
Can I make my own barcodes for products?
For your own stock, yes: Code 128 with any text needs no registration. For products sold through shops or marketplaces, the number must be a GTIN licensed to your business by GS1. The barcode image itself can come from any generator, including ours.
Does a barcode show the country of origin?
No. The first digits show which national GS1 office licensed the number. A company can license numbers in one country and make its products in another.
What size should a barcode be?
For EAN-13 and UPC-A, the GS1 standard size is 37.29 mm wide including margins, and checkout codes may range from 80 % (29.83 mm) to 200 %. Carton codes use bars of at least 0.495 mm. For internal Code 128 labels, keep the narrowest bar at 0.33 mm when the label allows it.
Should I use Code 128 or Code 39?
Code 128 for anything new: it holds all keyboard characters and is much shorter, 47.19 mm against 85.47 mm for the same 13 digits in our test. Use Code 39 only when an older system or a customer specification asks for it.
Do I need GS1 barcodes to sell on Amazon?
In most categories, yes. Amazon checks product IDs against GS1 data, and Amazon India’s seller guide warns that barcodes bought from resellers often lead to rejected listings. Brands enrolled in Amazon Brand Registry can apply for a GTIN exemption.
Keep reading
What DPI Means: Pixels, Print Size and KB
DPI only tells software how large to print the pixels. We wrote 72, 300 and 600 DPI into one scan and every file stayed 437,719 bytes. Here is what really changes the size, and the pixels each print needs.
Read the related guide →JPG vs PNG: Which to Use, With Measured Sizes
Use JPG for photos and PNG for signatures, screenshots and transparency. We saved 7 real files both ways: one photo was 786 KB as PNG and 174 KB as JPG with no visible difference.
Read the related guide →