Barcode Types: 1D and 2D Explained
Complete guide to barcode formats — Code 128, EAN, UPC, QR, Data Matrix, PDF417, and Aztec.
Published:
Tags: barcode types explained, 1D 2D barcode formats, barcode standards guide
Barcode Types: 1D and 2D Explained Part of our complete guide to this topic — see the full series. There are over 30 active barcode symbologies in use across retail, logistics, healthcare, and manufacturing. Most people encounter only a few. This guide covers the formats most likely to appear in real-world scanning. --- What is The Two Families? 1D (Linear) Barcodes Encode data as a sequence of bars and spaces of varying width. A scanner reads the code along a single horizontal line. Data capacity is limited — typically 8 to 80 characters. Strengths: Compatible with all laser scanners Cheaper to print (low resolution required) Widely understood by retail POS systems globally Limitations: Low data density No error correction (one damaged bar = unscannable) Cannot encode binary data…
Frequently Asked Questions
What are the different types of barcodes?
Barcodes split into two families: 1D (linear) barcodes encode data as varying-width bars readable in one axis, and 2D (matrix) barcodes encode data as a 2D pattern readable in any direction. Common 1D formats are Code 128, EAN-13, and UPC-A. Common 2D formats are QR Code, Data Matrix, and PDF417.
What is the difference between 1D and 2D barcodes?
1D barcodes encode a short alphanumeric string (typically 8–40 characters) in a single line of bars. 2D barcodes encode hundreds to thousands of characters in a 2D matrix, support error correction (damaged codes still decode), and are readable from any angle without needing to align to an axis.
What is a Code 128 barcode?
Code 128 is a high-density linear (1D) barcode that can encode all 128 ASCII characters. It's the standard for shipping labels (GS1-128), serial numbers, and any application requiring a compact alphanumeric barcode. Code 128 supports three character sets to maximize density for different data types.
What is a Data Matrix barcode?
Data Matrix is a 2D matrix barcode capable of encoding up to 3,116 numeric or 2,335 alphanumeric characters in a small area. It's the dominant format in healthcare (GS1 DataMatrix on medication), electronics assembly (PCB component tracking), and postal systems because of its compact size and strong error correction.
What barcode format should I use for my product?
For retail products sold internationally, EAN-13 (or UPC-A for North America) is the standard. For shipping labels, use GS1-128 (Code 128 with GS1 Application Identifiers). For anything requiring more data — URLs, serial numbers, electronic components — use QR Code or Data Matrix. GS1 allocates EAN/UPC prefixes; register at gs1.org.
All articles · theproductguy.in