Featured

Complete Guide to Barcode Types: Which One Do You Need?

A comprehensive guide to every major barcode type — EAN-13, UPC-A, Code 128, QR Code, ITF-14, and more. Learn which barcode format is right for your product, industry, and use case.

By BarcodeGenerate Team ·

Barcodes are everywhere — on groceries, shipping boxes, book spines, hospital wristbands, and event tickets. But not all barcodes are created equal. Each symbology (the technical term for a barcode type) was designed for specific use cases, data capacities, and industries.

This guide explains every major barcode type so you can choose the right one for your needs.

1D vs 2D Barcodes: The Fundamental Difference

Before diving into specific types, understand the two categories:

1D (one-dimensional) barcodes encode data as a series of parallel lines of varying widths. They store data horizontally only — typically 10–80 characters. Scanners read them by passing a laser across the lines.

2D (two-dimensional) barcodes encode data in both horizontal and vertical directions using patterns of squares, dots, or other shapes. They store far more data (up to thousands of characters) and can be read by camera-based scanners and smartphones.


EAN-13 — The International Retail Standard

Data: 13 numeric digits Used for: Consumer products sold internationally Standard: GS1

EAN-13 (European Article Number, now officially International Article Number) is the global standard barcode for retail products. You’ll find it on virtually every product on supermarket shelves outside North America — and increasingly on products in North America too, since most modern scanners read both EAN-13 and UPC-A.

Structure of an EAN-13 number:

  • Digits 1-3: GS1 Prefix (country/region code)
  • Digits 4-12: Company prefix + item reference
  • Digit 13: Check digit (calculated automatically)

When to use EAN-13: If you’re selling products internationally or in European markets, you need an EAN-13. Register with your national GS1 organization to get a legitimate company prefix.

Generate a free EAN-13 barcode →


UPC-A — North American Retail

Data: 12 numeric digits Used for: Consumer products in the United States and Canada Standard: GS1

UPC-A (Universal Product Code) is functionally equivalent to EAN-13 with a leading zero — making it a special case of EAN-13. Developed in the United States in the 1970s, it remains the standard for retail products in North America.

Structure of a UPC-A number:

  • Digits 1-11: Company prefix + item reference (assigned by GS1 US)
  • Digit 12: Check digit

If you’re selling on Amazon, Walmart, Target, or any major US retailer, you’ll need a legitimate UPC-A from a GS1-registered company prefix. Beware of counterfeit UPCs sold on secondary markets.

Generate a free UPC-A barcode →


Code 128 — The Versatile Workhorse

Data: Full ASCII (0–127), variable length Used for: Shipping, logistics, inventory, healthcare Standard: ISO/IEC 15417

Code 128 is the most widely used linear barcode for industrial and logistics applications. It can encode the entire ASCII character set — letters, numbers, and special characters — at extremely high data density.

Three subtypes (automatically selected for optimal encoding):

  • Code 128A: Control characters + uppercase letters + digits
  • Code 128B: Full ASCII including lowercase letters
  • Code 128C: Numeric-only data stored in pairs (most space-efficient for numbers)

Code 128 is the basis for GS1-128 (formerly UCC/EAN-128), used in supply chain shipping labels. You’ll see it on FedEx, UPS, and USPS shipping labels.

Generate a free Code 128 barcode →


QR Code — The 2D Universal Format

Data: Up to 4,296 alphanumeric characters; URLs, text, binary Used for: URLs, contact info, WiFi, payments, tickets Standard: ISO/IEC 18004

The QR (Quick Response) code was invented in 1994 by Denso Wave for tracking automotive parts. Today it’s the most recognized 2D barcode format, readable by any smartphone camera without a dedicated app.

Key advantages of QR codes:

  • Stores far more data than 1D barcodes
  • Readable from any angle
  • Built-in error correction (survives damage up to 30%)
  • Free to generate and use

Error correction levels:

  • L (Low): 7% — smallest size
  • M (Medium): 15% — recommended default
  • Q (Quartile): 25% — outdoor/industrial use
  • H (High): 30% — use when embedding a logo

Generate a free QR code →


Code 39 — Legacy Industrial Barcode

Data: A-Z, 0-9, and special characters (-.$/+%) Used for: Automotive, government, military, healthcare Standard: AIAG, MIL-STD-1189

Code 39 is one of the oldest barcode symbologies still in active use. It’s named for its structure: 3 wide bars among 9 total bars per character. Originally popular for industrial tracking, it’s been largely superseded by Code 128 due to lower data density.

Code 39 still dominates in some specific industries (US military, automotive supply chains using AIAG standards) where legacy systems haven’t migrated.


ITF-14 — Outer Shipping Cartons

Data: 14 numeric digits (GTIN-14) Used for: Outer shipping cartons, pallets, bulk packaging Standard: GS1

ITF-14 (Interleaved 2 of 5, 14 digits) is used on shipping cartons rather than individual products. It encodes a 14-digit GTIN (Global Trade Item Number) and is designed to be readable by omnidirectional scanners even when printed on rough corrugated cardboard.

The distinctive “bearer bars” (thick lines surrounding the barcode) provide structural integrity and ensure consistent scanning. If you’re a manufacturer shipping to distributors or big-box retailers, you’ll need ITF-14 on your outer cases.


EAN-8 — Small Package Barcode

Data: 8 numeric digits Used for: Small consumer products where EAN-13 won’t fit Standard: GS1

EAN-8 is a shortened version of EAN-13 for products too small to fit a standard barcode — cosmetics, small candy bars, and pocket-sized items. Companies must apply to GS1 to use EAN-8 format.

Generate a free EAN-8 barcode →


UPC-E — Compressed UPC for Small Packages

Data: 8 characters (compressed from 12-digit UPC-A) Used for: Small retail packages in North America

UPC-E suppresses leading zeros to create a shorter barcode. It’s derived from a standard UPC-A number using a specific compression algorithm. Most retailers accept UPC-E on small packages where a full UPC-A wouldn’t fit.

Generate a free UPC-E barcode →


ISBN — Book Barcodes

Data: 13 digits (ISBN-13 = EAN-13 with 978/979 prefix) Used for: Books and book-like publications Standard: ISO 2108

ISBN (International Standard Book Number) barcodes are simply EAN-13 barcodes with the GS1 prefix 978 or 979 (called “Bookland”). If you’re self-publishing, you need to obtain an ISBN from your national ISBN agency (Bowker in the US) and then generate the barcode.

Our ISBN generator accepts both ISBN-10 (older format, still used pre-2007) and ISBN-13, converting automatically.

Generate a free ISBN barcode →


Choosing the Right Barcode: Quick Reference

Use CaseRecommended Barcode
Retail product (international)EAN-13
Retail product (North America)UPC-A
Shipping / logistics labelsCode 128
Outer shipping cartonITF-14
URL / digital contentQR Code
WiFi sharingQR Code
BooksISBN (EAN-13 variant)
Small product (no room for EAN-13)EAN-8 or UPC-E
Industrial / military trackingCode 39 or Code 128
Healthcare wristbandsCode 128

Do You Need a Registered Barcode Number?

For consumer retail products (EAN-13, UPC-A), yes — you need to register with GS1 to get a legitimate company prefix. Counterfeit or recycled UPCs from secondary markets can cause problems with major retailers and inventory systems.

For internal use (warehouse tracking, inventory management, event tickets), no — you can use any data you want.

For QR codes, no — you own whatever you generate, and no registration is required.


Summary

The barcode landscape has evolved over 50 years to serve different industries and data needs. For most everyday uses:

  • EAN-13 / UPC-A for retail products
  • Code 128 for shipping and internal tracking
  • QR Code for digital content and smartphone scanning
  • ITF-14 for outer case packaging

Use our free barcode generator to create any of these formats instantly — no registration, no watermarks.

Topics: barcode typesEANUPCCode 128QR codeguide

Try the free barcode generator

Create professional barcodes and QR codes instantly. No registration required.