Skip to content
StylQR home
Barcode Guides

Different Types of Barcodes Explained with Examples

A plain guide to the main types of barcodes: retail EAN and UPC, Code 128, Code 39, ITF-14, GS1-128, Data Matrix, PDF417 and QR, with what each one is for.

By StylQR Editorial TeamPublished 6 min read

StylQR blog cover: Different Types of Barcodes Explained with Examples, illustrated with a grid of barcode and QR code types with layers on a violet background
Table of contents

The types of barcodes split into two families. 1D (linear) barcodes such as EAN-13, UPC-A, Code 128 and Code 39 store a short number or code in the widths of vertical bars. 2D barcodes such as QR, Data Matrix and PDF417 store far more in a grid or stack of cells.

Within those families, each type (called a symbology) was built for a job: checkout, shipping, warehouses, hospitals or mail. Below is a tour of the ones you'll meet most, with an example of what each encodes and where it belongs.

How barcode types differ

Before comparing names, it helps to know the four things that set one symbology apart from another:

  • Character set. Some encode digits only (EAN, UPC, ITF). Others handle letters and symbols (Code 39, Code 128).
  • Length. Retail codes have a fixed number of digits. Industrial codes are variable length.
  • Check digit. Retail codes always carry one. In some industrial codes it's optional.
  • Who controls the numbers. Retail barcodes carry GS1 numbers you license. Internal barcodes carry anything you like.

That last point matters most. Drawing a barcode is easy; using the right number in it is what makes it work at a retailer. If you're new to the topic, what a barcode is and how it works covers the basics first.

Retail barcodes for products

These are the codes printed on goods sold in shops. They all carry a GTIN (Global Trade Item Number) issued under a GS1 company prefix.

EAN-13

Thirteen digits, used on consumer products almost everywhere outside North America, and read by checkouts worldwide. Example: 8906123456781. The first digits are a GS1 prefix (890 belongs to GS1 India), then the company and item number, then a check digit. Full details are in the EAN-13 barcode guide.

UPC-A and UPC-E

UPC-A holds 12 digits and is the standard product barcode in the US and Canada. Example: 098765432105. UPC-E is a compressed six-digit form for very small packs, made by suppressing zeros in certain UPC-A numbers. See what a UPC barcode is for the structure.

EAN-8

An eight-digit version for packs too small for EAN-13, such as a lip balm. GS1 organizations issue EAN-8 numbers individually and only when the pack genuinely can't fit an EAN-13.

ISBN, ISSN and ISMN

Books, magazines and printed music use EAN-13 symbols too. An ISBN-13 starts with 978 or 979, an ISSN-based code with 977. You can make them on the ISBN barcode page.

Logistics and shipping barcodes

Cartons and pallets need different codes from the single item on a shelf.

ITF-14

A 14-digit code printed on outer cartons, often straight onto corrugated board. It carries a GTIN-14: an indicator digit plus the item's number with a new check digit. Its thick bars and optional bearer bars (a frame around the code) tolerate rough printing.

GS1-128

A Code 128 barcode with a special start character (FNC1) that tells the scanner the data is structured with GS1 Application Identifiers. One label can hold a GTIN, a batch number and an expiry date, for example (01)18906123456788(10)LOT42(17)271231. It's the standard for shipping labels and the 18-digit SSCC pallet number. What a GS1 barcode is explains Application Identifiers in full.

GS1 DataBar

A compact family used on fresh produce, variable-weight items and coupons. Some versions can carry extra data such as weight or expiry date alongside the GTIN.

Industrial and internal barcodes

These don't need GS1 numbers. You choose what goes in them.

Code 128

High-density and able to encode all 128 ASCII characters. It's the default choice for asset tags, warehouse locations, parcel labels and anything with mixed letters and digits. Example: WH-A12-0034.

Code 39

Older and wider, but simple. It encodes uppercase A to Z, digits 0 to 9, space and the symbols - . $ / + %, framed by an asterisk at each end. It's still common in automotive and defence labeling and on ID badges. Our Code 128 vs Code 39 comparison covers when each is the right pick.

Code 93, Interleaved 2 of 5 and Codabar

Code 93 is a denser cousin of Code 39. Interleaved 2 of 5 encodes pairs of digits and is the basis of ITF-14. Codabar turns up on older library cards and blood bank labels.

2D barcodes

2D codes store data in both directions, so they hold far more in less space and can include error correction. They need an imager or phone camera; the laser scanners still found at many checkouts can't read them.

TypeWhat it looks likeTypical use
QR codeSquare with three corner squaresLinks, payments, marketing, GS1 Digital Link on packs
Data MatrixSquare or rectangle with an L-shaped borderElectronics parts, pharmaceuticals, direct part marking
GS1 DataMatrixData Matrix using GS1 Application IdentifiersMedicines, medical devices, Sunrise 2027 retail packs
PDF417Stacked rows of wide bar patternsDriving licenses, boarding passes, ID cards
AztecSquare with a bullseye in the centerTransport tickets, boarding passes
MaxiCodeHexagon grid with a central bullseyeParcel sorting
Micro QR and rMQRSmall square or long rectangular QR variantsTiny or narrow labels

For the trade-offs between the two families, read 1D vs 2D barcodes.

Healthcare and postal barcodes

Two areas have their own symbologies. Healthcare uses HIBC (Health Industry Bar Code) variants of Code 128, Code 39 and Data Matrix, plus Pharmacode on pharmaceutical packaging lines. Postal services run their own codes: USPS Intelligent Mail in the US, Royal Mail 4-State and Mailmark in the UK, and others in Australia, Japan and the Netherlands. You'd normally use these only when the carrier or regulator tells you to.

Picking a type in one minute

Tip: If the product will be sold in a shop, use EAN-13 (or UPC-A in North America) with a GTIN from your national GS1 organization. For anything internal with letters, use Code 128. If you need lots of data in a small space, use a 2D code.

A rough guide:

  1. Selling through retailers or marketplaces: EAN-13 or UPC-A with a licensed GTIN.
  2. Cartons to a distributor: ITF-14 or GS1-128, as your customer specifies.
  3. Batch and expiry tracking: GS1-128 or GS1 DataMatrix.
  4. Stock, assets and locations you control: Code 128.
  5. A link or contact details for people with phones: a QR code.

StylQR doesn't issue GTINs, so for retail codes you supply the number from GS1 and the generator draws it with the correct check digit.

Making the barcode you need

The StylQR barcode generator covers retail, logistics, industrial, 2D, healthcare and postal symbologies, each with its own page and live validation. Pick the type, enter your data, set the bar width and height in millimeters, and download PNG, SVG or an exact-size PDF. When you're not sure which format fits your situation, how to choose the right barcode format walks through the decision.

Frequently asked questions

What is the most common type of barcode?

On consumer products, the EAN-13 barcode, along with UPC-A in the US and Canada. They are the symbols scanned at almost every supermarket checkout.

Can one scanner read every type of barcode?

No. Laser scanners read only 1D barcodes, and many scanners have some symbologies switched off by default. A 2D imager reads both 1D and 2D codes, but you may still need to enable less common types in its settings.

Is ISBN a separate barcode type?

No. A book's ISBN-13 is printed as an EAN-13 barcode. Its first three digits, 978 or 979, mark it as a book number instead of a company product number.

Which barcode type holds the most data?

2D codes hold far more than any 1D barcode. A QR code can store up to 7,089 digits at its largest size, while a Code 128 barcode is practical for a few dozen characters.

Share this guide

StylQR blog cover: 1D vs 2D Barcodes: Key Differences Explained, illustrated with a one-dimensional barcode beside a two-dimensional code with width arrows on a ocean background

Barcode Guides

1D vs 2D Barcodes: Key Differences Explained

1D vs 2D barcodes compared: how much data each holds, error correction, scanner needs, print size and cost, with clear advice on when to use each type.

· 4 min read

StylQR blog cover: How Do Supermarkets Scan Barcodes?, illustrated with a shopping cart with a barcode, a scanner frame and a receipt on a plum background

Barcode Guides

How Do Supermarkets Scan Barcodes?

How barcode scanners work at the supermarket checkout: laser and camera scanners, how the number becomes a price, weighed items, and why some codes won't scan.

· 5 min read