Barcodes come in two families: 1D (linear) codes with bars of different widths, which usually hold a short number, and 2D codes with a grid or stacked rows, which hold text, links or whole records. Each type exists because some industry needed it, so where you see a code tells you a lot about what’s in it.
The common types at a glance
| Type | 1D / 2D | What it holds | Where you see it |
|---|---|---|---|
| EAN-13 | 1D | 13-digit product number (GTIN-13) | Groceries and retail products worldwide |
| EAN-8 | 1D | 8-digit product number | Small packs, such as gum or cosmetics |
| UPC-A | 1D | 12-digit product number | Retail in the US and Canada |
| UPC-E | 1D | A UPC-A number squeezed into 8 digits | Small packs in the US and Canada |
| ISBN (as EAN-13) | 1D | 13-digit book number starting 978 or 979 | Back covers of books |
| Code 128 | 1D | Letters, digits and symbols, densely | Shipping labels, warehouses |
| GS1-128 | 1D | Code 128 with GS1 fields (GTIN, batch, dates, SSCC) | Cartons, pallets, healthcare |
| Code 39 | 1D | Upper-case letters, digits, a few symbols | Industrial labels, badges, asset tags |
| Code 93 | 1D | Like Code 39, more compact | Industrial and logistics labels |
| ITF / ITF-14 | 1D | Digits only, in pairs; ITF-14 holds a GTIN-14 | Corrugated cartons and outer cases |
| Codabar | 1D | Digits and - $ : / . + |
Some libraries, blood banks, older forms |
| QR Code | 2D | Text, links, Wi-Fi, contacts, payments | Everywhere |
| Micro QR | 2D | Short data, one corner square | Small parts and tight spaces |
| rMQR | 2D | Rectangular QR for narrow strips | Labels on thin edges |
| Data Matrix / GS1 DataMatrix | 2D | Text or GS1 fields in a small square | Electronics, parts, medicine packs |
| PDF417 | 2D | Stacked rows, up to a page of data | Boarding passes, driver’s licenses |
| Aztec | 2D | Text, with a bull’s-eye center | Train and airline tickets |
| MaxiCode | 2D | Fixed-size hexagon grid with a bull’s-eye | Parcel sorting labels |
| GS1 DataBar | 1D (and stacked) | GTIN plus extras like weight or expiry | Fresh produce, coupons |
Product barcodes: EAN, UPC and ISBN
EAN-13 and UPC-A are the barcodes at the checkout. Both hold a GTIN (Global Trade Item Number), a number a company licenses from GS1 for each product. The last digit is a check digit worked out from the others, so a misread usually fails instead of ringing up the wrong item. UPC-E and EAN-8 are shorter forms for small packs.
A small extra barcode to the right is an add-on: EAN-2 (often an issue number on magazines) or EAN-5 (often a suggested price on books, such as 51299 for $12.99, or 90000 for no price).
Books carry their ISBN as an EAN-13 starting with 978 or 979, so a book barcode is a product barcode too.
Logistics barcodes: Code 128, GS1-128 and ITF-14
Code 128 packs letters and digits into a short space, which makes it the default on shipping labels. GS1-128 is the same symbology with GS1 Application Identifiers in brackets, so one label can say “this GTIN, batch ABC, expiry date 31 December” in a form any GS1 system understands. ITF-14 is the chunky code with a thick frame printed on corrugated cartons, holding the 14-digit GTIN of the case.
Older and specialist linear codes
Code 39 and Code 93 are found on industrial labels, badges and asset tags. Codabar starts and ends with a letter from A to D and is still seen in some libraries and blood banks. These older codes have weaker built-in checks than EAN or Code 128, so good scanners take a second look before accepting a read.
2D codes
- QR Code holds the most varied content: links, Wi-Fi details, contact cards, payment data. Micro QR and rMQR are smaller and rectangular variants for tight spaces.
- Data Matrix fits a lot into a tiny square and is common on electronics and parts. GS1 DataMatrix carries GS1 fields and appears on medicine packs in many countries.
- PDF417 looks like a stack of short barcodes and holds a lot of data. It’s used on many boarding passes and on driver’s licenses in the US and Canada.
- Aztec has a bull’s-eye in the middle and needs no blank margin, which suits tickets shown on a phone screen.
- MaxiCode has a fixed size and a bull’s-eye, built for fast sorting of parcels on conveyor belts.
- GS1 DataBar is a slim code for loose produce and coupons, able to carry a weight, price or expiry date with the GTIN.
Retail is also moving toward QR codes that carry product data as a web address; see GS1 Digital Link.
Reading and making barcodes
Most phone cameras read QR codes directly, and many read EAN and UPC. A scanner app handles the rest. QR App for Android reads QR, Micro QR, rMQR, Data Matrix, Aztec, PDF417, MaxiCode, GS1 DataBar, EAN and UPC with add-ons, Code 128, Code 39, Code 93, ITF and Codabar, from the camera, a photo or a PDF. It shows product data such as batch and expiry, and boarding passes, in readable fields, and recognizes book (ISBN) barcodes.
It also creates EAN-13, EAN-8, UPC-A and UPC-E (with EAN-2 or EAN-5 add-ons), ITF-14, GS1-128, Code 128, Code 39, Code 93, Codabar, ITF, Data Matrix, GS1 DataMatrix, PDF417 and Aztec, and works out the check digit for you. The generator on this site makes QR codes only. For printing many codes on label sheets, see printing QR code labels.