ISO/IEC 18004 specifies the QR code symbology for automatic identification and data capture, defining structure, encoding, error correction, versions, printing, and micro QR variants.
Overview
Standard Scope
The ISO/IEC 18004 standard defines the QR code bar code symbology used for automatic identification and data capture [4]. It is published by the International Organization for Standardization under the full title Information technology — Automatic identification and data capture techniques — QR code bar code symbology specification [4]. The standard is maintained by the joint technical committee ISO/IEC JTC 1/SC 31 which oversees automatic identification and data capture techniques [2]. The document covers symbol structure, encoding methods, error correction, version specifications, and printing requirements [2]. It provides a normative reference for developers, manufacturers, and integrators worldwide [2]. The specification enables interoperable generation and reading of QR symbols across platforms [2]. Compliance with the standard ensures consistent module placement and decode reliability [2]. The standard has been adopted in industries ranging from logistics to mobile payments [2]. Its scope includes both regular and micro QR code variants [3]. The latest edition was released in 2024 reflecting continued evolution [4].
Document Organization
The standard is organized into clauses that address symbol architecture, data encoding, error correction algorithms, version tables, and print quality metrics [2]. Each clause references the Reed‑Solomon error correction scheme at levels L, M, Q, and H to guarantee data recovery [2]. Version specifications enumerate forty sizes from a 21 × 21 module matrix up to a 177 × 177 module matrix [2]. Printing requirements detail reflectance, contrast, and quiet zone dimensions to support reliable scanning [2]. The micro QR variant is described in a dedicated annex introduced in the second edition published in 2006 [3]. That annex defines reduced overhead modules and a restricted size range suitable for small parts [3]. The standard also notes similarity to QR Code Model 2 while adding a mirror‑image orientation facility for reflectance reversal [1]. An optional alternative specification mechanism is provided for future extensions [1]. The document follows ISO/IEC drafting conventions ensuring clarity and traceability [4]. Maintenance responsibilities rest with ISO/IEC JTC 1/SC 31, which reviews amendments on a regular cycle [2].
Publication History
First Edition and Early Revisions
The standard was first published in 2000 establishing the baseline QR code symbology for global use [2]. Subsequent revisions have been issued to tighten rules around error correction, masking patterns, and maximum data capacity [2]. Each revision refined the Reed‑Solomon parameters to improve robustness against damage [2]. Masking pattern selection criteria were clarified to reduce pattern‑induced decoding failures [2]. Maximum data capacity tables were expanded to accommodate newer version sizes [2]. The second edition in 2006 introduced the micro QR code format as a compact alternative [3]. That edition also updated version tables to include the full set of forty versions [2]. The third edition incorporated enhanced printing guidelines for high‑density modules [2]. The fourth edition aligned terminology with other ISO/IEC automatic identification standards [2]. The most recent edition dated 2024 consolidates all prior amendments into a single authoritative text [4].
Revision Impact on Implementations
Implementers must track revision numbers because each edition may modify module placement rules [2]. Error correction level definitions remain stable across editions but masking algorithm references can change [2]. Version dimension tables are immutable after adoption, ensuring backward compatibility [2]. Printing requirement updates affect label producers who must recalibrate equipment [2]. Micro QR specifications have remained unchanged since the 2006 edition, providing a stable target for small‑form‑factor applications [3]. The mirror‑image orientation facility added in later editions enables light‑on‑dark symbol printing without redesign [1]. Alternative specification options allow vendors to propose extensions while preserving core compliance [1]. Conformance testing suites are updated in step with each edition to verify adherence [2]. Industry adoption curves show rapid migration to the latest edition within twelve months of publication [2]. The 2024 edition is expected to become the de facto reference for new QR code deployments [4].
Maintenance and Governance
Committee Structure
ISO/IEC JTC 1/SC 31 serves as the joint technical committee responsible for automatic identification and data capture techniques including QR code symbology [2]. The committee comprises national bodies that contribute expertise and vote on amendments [2]. Working groups within SC 31 focus on specific aspects such as symbol geometry, error correction, and print quality [2]. Decisions are reached by consensus ensuring broad international acceptance [2]. The committee also coordinates with other SCs handling related barcode standards to maintain harmonization [2]. Maintenance cycles typically span three to five years between major editions [2]. Public comment periods are mandated before any normative change is adopted [2]. The committee publishes technical reports that guide implementers on best practices [2]. Liaison relationships with industry consortia ensure real‑world feedback informs revisions [2]. The governance model guarantees that the standard evolves in line with technological advances [2].
Amendment Process
Amendments to ISO/IEC 18004 follow the ISO/IEC direct‑vote procedure requiring a two‑thirds majority of participating members [2]. Proposals may originate from national bodies, liaison organizations, or the committee’s own working groups [2]. Each proposal undergoes technical review, ballot, and resolution of comments before publication [2]. Minor corrections are issued as technical corrigenda without a full edition cycle [2]. Major functional changes such as new version sizes trigger a new edition release [2]. The micro QR annex was added through an amendment that became part of the second edition in 2006 [3]. Mirror‑image orientation and alternative specification features were introduced via later amendments [1]. All amendments retain backward compatibility with existing deployed symbols [2]. The committee maintains a public register of approved amendments for transparency [2]. Stakeholders can monitor the register to anticipate impacts on their products [2].
Symbol Structure
Finder and Timing Patterns
The standard defines three finder patterns positioned at the upper‑left, upper‑right, and lower‑left corners of the symbol to enable detection and orientation [2]. Timing patterns consisting of alternating dark and light modules run horizontally and vertically between the finder patterns to establish module pitch [2]. Alignment patterns are specified for versions 2 and above to correct distortion in larger symbols [2]. The quiet zone, a four‑module wide margin surrounding the symbol, is mandated to isolate the code from adjacent graphics [2]. Module coordinates are referenced from the top‑left finder pattern origin ensuring deterministic placement [2]. The structure supports both regular and micro QR symbols, with micro QR using a single finder pattern and reduced timing information [3]. All structural elements are described in normative diagrams within the standard [2]. Compliance testing verifies exact module positions against the specification [2]. Deviations beyond tolerance cause decode failures in conformance scanners [2]. The structural definition is unchanged across editions, providing a stable geometric foundation [2].
Data and Format Areas
Data modules occupy the remaining matrix after structural patterns are placed, arranged in a zigzag order defined by the standard [2]. Format information modules encode error correction level and mask pattern identifier, duplicated for redundancy [2]. Version information modules appear in versions 7 through 40, providing decoder version awareness [2]. The standard specifies the exact bit sequences for format and version information to guarantee interoperability [2]. Micro QR symbols embed format data within a compact area adjacent to the single finder pattern [3]. Data capacity tables list maximum alphanumeric, numeric, byte, and kanji characters per version and error correction level [2]. The arrangement of codewords follows the Reed‑Solomon block interleaving scheme described in the encoding clause [2]. Masking patterns are applied to data modules to balance light/dark distribution and avoid problematic patterns [2]. The standard enumerates eight mask patterns and the selection algorithm to minimize penalty scores [2]. Proper masking is essential for reliable scanning under varying illumination [2].
Encoding Methods
Mode Indicators and Character Sets
ISO/IEC 18004 defines four encoding modes: numeric, alphanumeric, byte, and kanji, each identified by a distinct mode indicator bit sequence [2]. Numeric mode packs three digits into ten bits for high density [2]. Alphanumeric mode encodes a 45‑character set using eleven bits per two characters [2]. Byte mode stores 8‑bit values directly, supporting ISO/IEC 8859‑1 and other single‑byte character sets [2]. Kanji mode uses Shift JIS double‑byte codes, packing each character into thirteen bits [2]. The standard also describes Extended Channel Interpretation (ECI) markers for switching character sets within a symbol [2]. Mode switching is permitted within a single symbol to optimize capacity [2]. The encoding clause provides detailed bit‑stream construction rules for each mode [2]. Implementers must follow the prescribed segment termination and padding procedures [2]. Correct mode selection directly influences the achievable data payload for a given version [2].
Segment Construction and Termination
Each data segment begins with a mode indicator followed by a character count indicator whose length depends on version range [2]. The character count field uses nine bits for versions 1‑9, sixteen bits for versions 10‑26, and twenty‑four bits for versions 27‑40 [2]. Data bits are appended according to the mode’s packing rules until the segment ends [2]. A terminator of up to four zero bits is added to signal the end of the last segment [2]. If the bit stream does not fill the available codewords, pad bytes 0xEC and 0x11 are alternately appended [2]. The standard mandates that the final codeword count matches the version‑specific capacity after error correction block division [2]. Micro QR follows a simplified segment structure with reduced count indicator sizes [3]. Proper segment construction ensures that decoders can parse the bit stream without ambiguity [2]. Errors in count indicators or terminators cause decode rejection in conformance tests [2]. The encoding rules are unchanged across editions, providing a stable programming target [2].
Error Correction
Reed‑Solomon Levels
The standard employs Reed‑Solomon error correction at four levels designated L, M, Q, and H, offering approximately 7 %, 15 %, 25 %, and 30 % recovery capacity respectively [2]. Each level determines the number of error correction codewords allocated per block for a given version [2]. Higher levels reduce the net data capacity but increase resilience to damage or dirt [2]. The generator polynomial for each level is defined in the standard’s annex, ensuring identical implementation across vendors [2]. Error correction blocks are interleaved to distribute burst errors across multiple codewords [2]. The standard specifies the exact block division tables for every version and level combination [2]. Decoders must implement the Berlekamp‑Massey algorithm or equivalent to locate and correct errors [2]. Conformance testing includes deliberately damaged symbols to verify correction performance at each level [2]. The four‑level scheme has remained constant since the first edition, providing predictable trade‑offs [2]. Selecting an appropriate level is a design decision based on expected environmental conditions [2].
Masking and Penalty Scoring
Masking patterns are applied after error correction codewords are placed to avoid undesirable module arrangements that hinder scanning [2]. The standard defines eight mask patterns, each a deterministic function of module coordinates [2]. A penalty scoring system evaluates four criteria: adjacent module runs, block patterns, finder‑like patterns, and dark/light module ratio [2]. The encoder selects the mask yielding the lowest total penalty score [2]. The chosen mask identifier is encoded in the format information area for decoder reference [2]. Micro QR uses a reduced set of four masks due to its smaller matrix [3]. Proper mask selection improves decode success rates especially on low‑contrast or curved surfaces [2]. The penalty criteria have been refined in successive revisions to address emerging printing technologies [2]. Implementations must replicate the exact scoring algorithm to guarantee interoperability [2]. The masking process is a critical step in the overall symbol generation pipeline defined by the standard [2].
Version Specifications
Version Matrix Dimensions
ISO/IEC 18004 defines forty versions, each increasing the symbol size by four modules per side starting from version 1 at 21 × 21 modules up to version 40 at 177 × 177 modules [2]. The version number directly determines the total number of modules and thus the maximum data capacity [2]. Version information modules appear only in versions 7 through 40, encoding the version number for decoder auto‑configuration [2]. The standard provides a table mapping version to error correction block counts and codeword capacities for each correction level [2]. Larger versions accommodate more alignment patterns to counteract perspective distortion [2]. Micro QR versions are separate, ranging from M1 (11 × 11) to M4 (17 × 17) modules with their own capacity tables [3]. The versioning scheme is immutable; once a version is assigned, its dimensions never change across editions [2]. This stability enables long‑term product planning for manufacturers [2]. Decoders use the version information to allocate appropriate buffer sizes during scanning [2]. The version tables are a core reference in the standard’s normative annexes [2].
Capacity Tables and Data Types
Capacity tables list the maximum number of characters for numeric, alphanumeric, byte, and kanji modes at each version and error correction level [2]. For example, version 40 at level L can store up to 7 089 numeric characters, while level H stores 4 296 numeric characters [2]. The tables are derived from the total codeword count minus error correction overhead defined by the Reed‑Solomon block structure [2]. Micro QR capacity tables are similarly provided but with lower maxima due to reduced module count [3]. The standard notes that actual payload may be lower when mode switching or ECI segments are used [2]. Designers consult these tables to select the smallest version meeting their data requirements [2]. The tables have been validated through extensive interoperability testing across scanner vendors [2]. Updates to capacity tables only occur when a new version is added, which has not happened since version 40 was defined [2]. The stability of capacity data supports backward compatibility for existing deployments [2]. The standard’s annexes include the complete tables for normative reference [2].
Printing Requirements
Reflectance and Contrast
The standard specifies minimum reflectance values for dark modules (≤ 0.3) and light modules (≥ 0.7) measured under defined illumination geometry [2]. Contrast ratio must exceed 3:1 to ensure reliable edge detection by scanners [2]. Print quality metrics include modulation, defect size, and axial non‑uniformity thresholds [2]. These requirements apply to both regular and micro QR symbols [2]. The quiet zone must be free of any marks and maintain the light module reflectance across its width [2]. Substrate curvature and surface texture are addressed with tolerance limits to prevent distortion beyond decoder correction capability [2]. The printing clause references ISO/IEC 15415 for two‑dimensional symbol grading methodology [5]. Compliance is verified using calibrated verifiers that report a grade from A to F [2]. Manufacturers must certify that production processes meet the specified reflectance and contrast criteria [2]. The requirements have been tightened in later editions to accommodate high‑resolution printing technologies [2].
Quiet Zone and Dimensional Tolerances
References
- cdn.standards.iteh.ai PDF ISO/IEC 18004:2024 - ISO/IEC 18004:2024 - iTeh Standards
- whippetqr.com QR Code Standards: ISO 18004 Explained
- iso.org ISO/IEC 18004:2024 (en), Information technology ? Automatic ...
- standards.iteh.ai ISO/IEC 18004:2024 - QR Code Symbology Specification Standard
- qrtrac.com QR Code ISO Compliance: ISO/IEC 18004 & 15415 | QRTRAC