QR Code Barcode: Size, Structure and Check Digit

Barcodes · 2D and stacked codes

QR Code: 2D matrix. Data: Up to 7,089 digits / 4,296 alphanumeric / 2,953 bytes (version 40-L). Error checking: Reed–Solomon, levels L 7 %, M 15 %, Q 25 %, H 30 %. Standard: ISO/IEC 18004. Typical use: URLs, payments, tickets, GS1 Digital Link on packaging.

Type
2D matrix

Drawing

finder patterns in three corners · timing linesversion 1: 21 × 21 modules, 4-module quiet zone
Schematic of the symbol structure, not a scannable code.

QR Code specifications

Type2D matrix
Character setNumeric, alphanumeric, bytes (UTF-8), Kanji
Data lengthUp to 7,089 digits / 4,296 alphanumeric / 2,953 bytes (version 40-L)
Check digit / error correctionReed–Solomon, levels L 7 %, M 15 %, Q 25 %, H 30 %
StandardISO/IEC 18004
Quiet zone4 modules each side
Symbol size21 × 21 (version 1) to 177 × 177 modules (version 40)
Typical useURLs, payments, tickets, GS1 Digital Link on packaging

QR Code has 40 versions; version V is 17 + 4V modules square. The three large squares in the corners are finder patterns that let a scanner find position and rotation; the alternating timing lines and smaller alignment patterns (from version 2) fix the module grid. Choose error correction M (15 %) for clean print and H (30 %) when a logo covers part of the code or the surface may be damaged.

Also known as

QR

All barcode types

Compare all 17 barcode types →

Sources

  1. GS1 General Specifications (Release 24.0): §5 symbol specifications, symbol specification tables
  2. GS1: How to calculate a check digit manually
  3. GS1 Sweden: Barcode size guide (X-dimension and height tables)
  4. GS1 UK: How big should an ITF-14 barcode be?
  5. ISO/IEC 15420 (EAN/UPC), 15417 (Code 128), 16388 (Code 39), 16390 (ITF), 24724 (GS1 DataBar)
  6. ISO/IEC 18004 (QR Code), 16022 (Data Matrix), 15438 (PDF417), 24778 (Aztec Code)
  7. JsBarcode (MIT): Code 128 / Code 39 / Codabar pattern tables used to cross-check the drawings

Values last checked against these sources on November 15, 2026. · How we check data

Reference values for planning and identification. Confirm critical dimensions with the manufacturer's drawing or the current edition of the standard before production.