Skip to content
Technology / BarcodesLast edited 5 December 2026

Barcodes: 1D and 2D Symbologies, Print Quality, and Sunrise 2027

From aidc.wiki, the free AIDC field guide

A barcode is a pattern of dark and light marks that a scanner turns back into a number or a short piece of text. Linear (1D) barcodes hold tens of characters at most and can be read by laser or camera; two-dimensional (2D) barcodes hold far more and need a camera-based reader. Whether a barcode actually scans depends less on the symbology than on its size, the blank margin around it, and how well it was printed.

A barcode is “a symbol that encodes data into a machine readable pattern of adjacent, varying width, parallel, rectangular or square dark and light spaces,” and GS1 uses the word for both linear and 2D versions[1]. The reader measures reflected light: a laser sweeps a line across the bars, while an imager takes a picture and decodes it in software.

Two dimensions control whether a symbol scans:

  • X-dimension is “the specified width of the narrowest element of a barcode,” and in 2D codes the module is the same unit[2]. Smaller X means a smaller symbol and a harder read.
  • Quiet zone is the clear space before and after a linear barcode or around a 2D one[2]. Text or a label edge inside it can stop a well-printed code from scanning.

Most GS1 numbers end in a check digit, so a scanner can reject a misread rather than pass on a wrong number. The method is on the GS1 identifiers page.

A symbology is “a defined method of representing numeric or alphabetic characters in a barcode; a type of barcode”[2].

Symbology Type What it carries Where you see it Governing spec
UPC-A / UPC-E 1D UPC-A carries a GTIN-12; UPC-E squeezes certain GTIN-12s that start with 0 into six symbol characters Retail checkout ISO/IEC 15420
EAN-13 / EAN-8 1D GTIN-13 or GTIN-8 Retail checkout ISO/IEC 15420
Code 128 1D General-purpose data, variable length (GS1-128 is a restricted subset of it) Internal and non-GS1 labels ISO/IEC 15417
GS1-128 1D GS1 data with Application Identifiers, no more than 48 data characters Case and pallet labels, SSCC ISO/IEC 15417 subset
ITF-14 1D Exactly 14 digits (a GTIN), digits only Printed straight onto corrugated cases ISO/IEC 16390
Data Matrix 2D matrix Up to 3,116 digits or 2,335 alphanumeric characters Regulated healthcare items, very small items ISO/IEC 16022
QR code 2D matrix Up to 7,089 digits or 4,296 alphanumeric characters Consumer packaging, GS1 Digital Link ISO/IEC 18004
PDF417 2D stacked Large text records US driver’s licenses and ID cards ISO/IEC 15438

Sources for the table: carrier rules, capacities (QR at its largest 177 × 177 size, error correction L), the GS1-128 48-character limit, the ITF-14 fixed length and the ISO specs are from the GS1 General Specifications 26.0. AIM is the Association for Automatic Identification and Mobility, an industry body whose agreement with GS1 covers how FNC1 is used. FNC1 (Function 1 Symbol Character) is a special symbol character that GS1 uses to flag GS1 data and to end variable-length fields. By agreement between AIM and GS1, an FNC1 in the first position is reserved for GS1 data, which is how a scanner tells GS1-128 from other Code 128[3]. The American Association of Motor Vehicle Administrators makes PDF417 “the minimum mandatory machine-readable technology that must be present on compliant DL/ID documents”[4].

QR error correction levels L, M, Q and H recover 7%, 15%, 25% and 30% of the codewords[5]. Only the ECC 200 version of Data Matrix supports GS1 data structures[2].

GS1 publishes minimum, target and maximum sizes for each use. For EAN-13 and UPC-A scanned at retail checkout, the X-dimension runs from 0.264 mm to 0.660 mm with a 0.330 mm target. The quiet zone is 11X left and 7X right for EAN-13 and 9X on both sides for UPC-A[6]. For cases scanned only in distribution, ITF-14 and GS1-128 run from 0.495 mm to 1.016 mm with 10X quiet zones and a minimum bar height of 31.75 mm[7].

2D codes have to be printed at 1.5 times the X-dimension allowed for an equivalent linear symbol, because of optical effects in image capture[8]. Data Matrix needs a quiet zone of 1X on all four sides, and QR Code needs 4X[9].

Two ISO standards grade a printed barcode. ISO/IEC 15416:2025 covers linear symbols and replaced the 2016 edition. ISO/IEC 15415:2024 covers multi-row and matrix 2D symbols. The verifiers themselves are specified in ISO/IEC 15426-1 (linear) and 15426-2 (2D)[10].

GS1 writes a grade with its test conditions: “1.5/06/660” means an overall grade of at least 1.5, a measuring aperture of 6 thousandths of an inch, and 660 nm light[2]. GS1 tables show 1.5 as a “C” and 3.5 as an “A” on the older ANSI letter scale[2]. Retail EAN/UPC symbols must meet 1.5/06/660, and logistics ITF-14 and GS1-128 symbols must meet 1.5/10/660[11]. ITF-14 printed directly on corrugate, or on labels, at an X-dimension of 0.635 mm or more is allowed a lower 0.5/20/660[12].

Verification is not “it scanned”: GS1 defines it as assessment “based on ISO/IEC standards using ISO/IEC compliant barcode verifiers”[13]. A forgiving scanner can read a symbol that fails at a customer’s dock.

GS1 states that “industry has set a goal that, by the end of 2027, all retail POS systems should be capable of reading and processing a defined set of 2D barcodes conformant with GS1 standards, in addition to the existing linear barcodes”[14]. The defined set is GS1 DataMatrix, Data Matrix carrying a GS1 Digital Link URI, and QR Code carrying a GS1 Digital Link URI[15].

GS1 US’s Sunrise 2027 page calls it a “milestone” and an “initiative” and doesn’t call it a mandate. It says “it is not necessary to implement all the capabilities of 2D by that date”[16]. Its first step for retailers is to “install optical scanners that are Sunrise-capable to read 2D barcodes and extract the GTIN at POS,” and for brands to add 2D codes and make sure existing QR codes carry the GTIN using GS1 Digital Link[17]. It doesn’t retire the UPC: the GS1 goal keeps linear barcodes alongside 2D.

GS1 DataMatrix and GS1 QR Code “are read by two-dimensional imaging scanners or vision systems,” and “most other scanners that are not two-dimensional imagers cannot read” them and GS1 restricts them to applications “that will involve imaging scanners throughout the supply chain”[18]. Outside retail, GS1 notes that trade items move through mixed scanning environments with both laser and image-based readers[2]. A 2D code on a case, without a linear code beside it, will fail wherever a laser scanner is still in service.

  • Quiet zone crowding. Artwork or label edges inside the 7X–11X margin on EAN/UPC symbols[19].
  • Shrinking below minimum X. Below 0.264 mm, a retail symbol is out of specification[19].
  • Too much data in GS1-128. Past 48 data characters, the data has to move to a second symbol or a 2D code[2].
  • Faded direct thermal labels. See label printing.
  • 2D-only marking where laser scanners remain. See above.
  1. Retail item: UPC-A or EAN-13 carrying a GTIN. Add a GS1 DataMatrix or a QR code with GS1 Digital Link if you need lot, expiry or serial data on pack.
  2. Case for distribution: ITF-14 if it’s printed on the corrugate and only the GTIN is needed. GS1-128 if you need lot, dates or an SSCC.
  3. Serialized or very small item: GS1 DataMatrix, if every reader in the chain is an imager.
  4. Internal use only: Code 128 or a plain QR code, without GS1-looking numbers that aren’t real GS1 keys.
  5. Before you ship labels to a trading partner: verify a sample against the grade they require, using an ISO/IEC 15426-compliant verifier.
  1. ^ GS1 General Specifications 26.0, glossary · GS1 General Specifications, Release 26.0 (January 2026)
  2. a b c d e f g h GS1 General Specifications · GS1 General Specifications, Release 26.0 (January 2026)
  3. ^ GS1 General Specifications, Release 26.0 (January 2026)
  4. ^ AAMVA DL/ID Card Design Standard 2025, D.3 · AAMVA DL/ID Card Design Standard (2025)
  5. ^ GS1 General Specifications, 5.7 · GS1 General Specifications, Release 26.0 (January 2026)
  6. ^ GS1 General Specifications, Table 5-44 · GS1 General Specifications, Release 26.0 (January 2026)
  7. ^ Table 5-47 · GS1 General Specifications, Release 26.0 (January 2026)
  8. ^ GS1 General Specifications, symbol specification table notes · GS1 General Specifications, Release 26.0 (January 2026)
  9. ^ GS1 General Specifications, Table 5-46 · GS1 General Specifications, Release 26.0 (January 2026)
  10. ^ GS1 General Specifications, normative references · GS1 General Specifications, Release 26.0 (January 2026)
  11. ^ Tables 5-44 and 5-47 · GS1 General Specifications, Release 26.0 (January 2026)
  12. ^ GS1 General Specifications, Table 5-47 note · GS1 General Specifications, Release 26.0 (January 2026)
  13. ^ GS1 General Specifications, glossary · GS1 General Specifications, Release 26.0 (January 2026)
  14. ^ GS1, Single 2D barcode for private label products, 2025 · GS1, Single 2D barcode for private label products (2025)
  15. ^ GS1, Single 2D barcode for private label products (2025)
  16. ^ GS1 US, Sunrise 2027 · GS1 US, What is GS1 Sunrise 2027?
  17. ^ GS1 US · GS1 US, What is GS1 Sunrise 2027?
  18. ^ GS1 General Specifications, 5.6 and 5.7 · GS1 General Specifications, Release 26.0 (January 2026)
  19. a b Table 5-44 · GS1 General Specifications, Release 26.0 (January 2026)