Barcode Page

Barcode Types Compared

Every barcode symbology compared in one table: Code 128, EAN-13, UPC-A, ITF-14, Data Matrix, QR and PDF417 — with data limits and typical uses.

There are more barcode symbologies than most people need, and choosing the wrong one is the most common reason a printed label will not scan. Pick by who or what will read it and how much space you have.

The short answer

  • Retail product on a shelf → EAN-13 (everywhere) or UPC-A (North America)
  • Shipping carton or pallet → ITF-14
  • Internal label, asset tag, serial number, anything with letters → Code 128
  • Tiny label, or manufacturing and healthcare → Data Matrix
  • A customer will scan it with a phone → QR code

Everything below is the detail behind those five lines.

All symbologies compared

Symbology Type Characters Length Check digit Where you see it
Code 128 1D Full ASCII 1–80 Built in Shipping labels, assets, serials
Code 39 1D A–Z, 0–9, 7 symbols 1–43 Optional mod 43 Industrial, library, ID badges
Code 93 1D Full ASCII 1–47 Built in Defence, some healthcare
EAN-13 1D Digits Exactly 13 Mod 10 Retail products, worldwide
EAN-8 1D Digits Exactly 8 Mod 10 Small retail packages
UPC-A 1D Digits Exactly 12 Mod 10 Retail products, North America
UPC-E 1D Digits 6 + check Mod 10 Small packages in North America
ITF-14 1D Digits Exactly 14 Mod 10 Corrugated cartons, pallets
Codabar 1D Digits and 6 symbols Variable None Blood banks, legacy logistics
MSI 1D Digits Variable Optional Warehouse shelves, inventory
Pharmacode 1D Digits 3–131070 Numeric None Pharmaceutical packaging
GS1-128 1D GS1 Application Identifiers Variable Built in Batch, dates, serials in supply chain
Data Matrix 2D Full ASCII / binary Up to 1558 bytes Reed–Solomon Electronics, parts, medical devices
QR code 2D Full ASCII / binary Up to 2953 bytes Reed–Solomon Consumer scanning, URLs, payments
PDF417 2D stacked Full ASCII / binary Up to 1850 chars Reed–Solomon ID cards, boarding passes, licences
Aztec 2D Full ASCII / binary Up to 1914 bytes Reed–Solomon Transit tickets, some boarding passes

1D or 2D?

A 1D barcode is a row of bars. It holds a short string, needs a clear line to scan, and fails if the label is damaged or curved.

A 2D code is a grid. It holds ten to a hundred times more data in a smaller area, can be read at any angle, and survives partial damage because of error correction. The trade-off is that small 2D codes need a better printer and a better scanner — a cheap laser printer at 300 DPI cannot resolve a 3 mm Data Matrix.

If you are deciding between them: use 1D when a retail or warehouse system expects a specific retail or logistics format, use 2D when space is tight or you need to carry more than about 20 characters.

Why Code 128 is the safe default

Code 128 encodes the entire ASCII set, switches character sets automatically to stay compact, and carries its own check character. That combination means you can put INV-2026-000431/A in it and the symbol stays short enough to fit a 50 mm label.

Code 39 is the traditional alternative, but it is roughly 30% wider for the same data, accepts only capitals and digits, and has an optional check digit that half the world leaves off. Choose it only when an existing system demands it — library systems and some military inventory still do.

The retail family

EAN-13, EAN-8, UPC-A and UPC-E are the same symbology family with different digit counts. The check digit is a modulo-10 calculation and is mandatory in all four. See UPC vs EAN for how they map onto each other.

The one thing to remember: the number you encode has to be licensed from GS1 if a retailer is going to accept it. A generator draws the symbol; it cannot issue the identifier. GS1 explains how GTINs are assigned →

The low-volume corner

Some symbologies survive only because one industry standardised on them years ago. Codabar is still used by blood banks. MSI is on warehouse shelves. Pharmacode prints on pharmaceutical cartons as a simple number of bars. None of them are worth choosing for a new project, but if you are replacing labels in an existing system, matching the old symbology is usually cheaper than changing the scanners.

Generate any of these

The barcode generator covers Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, Codabar, MSI and Pharmacode. Data Matrix has its own page. QR codes are a different tool entirely and are not what this site is for.

For batches, bulk barcode generator takes a list and returns a ZIP. For exact label sizes, barcode maker works in millimetres and DPI.

Make the barcode now — pick the symbology, type the value, export at print size. No signup.

Open the generator