Standards & Formats

The ISO/IEC 18004 QR Code Standard, Explained

QR codes are defined by an open international standard, ISO/IEC 18004. Here's what the standard covers and why it matters.

The ISO/IEC 18004 standard is the shared rulebook that makes QR codes work everywhere — it defines exactly how a QR code is built, encoded, and decoded, so any compliant scanner on Earth can read any compliant code.

Every time you scan a QR code on a poster in one country with a phone bought in another, you're relying on an invisible agreement written down in a document called ISO/IEC 18004. It's the reason a QR code isn't a proprietary gadget but a genuine open standard. Let's unpack what that standard actually says, and why having one matters so much. 🐾

What is ISO/IEC 18004?

ISO/IEC 18004 is the international standard that specifies the QR Code symbology — the technical name for the QR code "language." It's published jointly by the International Organization for Standardization (ISO) and the International Electrotechnical Commission (IEC), the two bodies that maintain most of the world's information-technology standards.

The first edition was published in 2000, only a few years after Denso Wave invented the QR code in 1994. It has been reviewed and revised since then to add new features and clarify details, but the core has stayed remarkably stable. Because the format is frozen in an open standard, a code you generate today will still scan decades from now — no vendor can quietly change the rules underneath you.

What does the standard actually define?

A standard like this has one big job: to remove ambiguity. If two engineers on opposite sides of the world both follow it, their encoder and decoder will agree perfectly. To do that, ISO/IEC 18004 pins down every layer of a QR code.

  • Symbol structure — the sizes (called versions), the module grid, and the fixed function patterns like finder, timing, and alignment patterns.
  • Encoding of data — how text and numbers become bits, using the numeric, alphanumeric, byte, and Kanji modes.
  • Error correction — the Reed–Solomon scheme and the four levels (L, M, Q, H) that let damaged codes still be read.
  • Data masking — the eight mask patterns that keep the pixels evenly mixed so scanners aren't confused.
  • Format and version information — the small protected regions that tell a reader the error level, mask, and size.
  • A reference decoding algorithm — a step-by-step recipe a scanner can follow to turn an image back into the original data.

If you want a friendly tour of those physical regions, our anatomy of a QR code guide names every part, and how QR codes work walks through the full scan.

Structure: versions, modules, and function patterns

The standard defines QR codes in versions from 1 to 40. Version 1 is a 21×21 grid of modules (the little squares); each step up adds four modules per side, so version 40 is a hefty 177×177. The bigger the version, the more data it holds.

Within every symbol, certain areas are reserved. The three big corner finder patterns let a scanner locate and orient the code; the dotted timing patterns act as a ruler; and alignment patterns (from version 2 onward) help correct for tilt and warp. The standard specifies precisely where each of these sits, so decoders always know where to look.

Encoding: turning text into bits

ISO/IEC 18004 defines four main encoding modes, each tuned for a different kind of content. Numeric mode packs digits tightly (10 bits per 3 digits), alphanumeric handles a 45-character set (11 bits per 2 characters), byte mode carries arbitrary bytes such as UTF-8 text, and Kanji mode compactly stores Japanese characters (13 bits each). An encoder can even switch modes mid-message to stay efficient. Our deep dive on QR code encoding modes shows how that works, and character encoding and QR codes covers the text side.

A good standard doesn't just say "store the data." It says exactly which bit goes where — that precision is what makes global interoperability possible.

Error correction: the reference for reliability

One of the standard's most valuable contributions is a rigorous error-correction scheme based on Reed–Solomon codes. It defines four levels of protection — roughly 7% (L), 15% (M), 25% (Q), and 30% (H) of the code recoverable — and specifies exactly how the recovery bytes are calculated and interleaved with your data. This is the maths behind QR codes that still scan when scratched, smudged, or partly covered by a logo. See QR code error correction and Reed–Solomon error correction for the details minus the heavy algebra.

The reference decoding algorithm

A subtle but important part of ISO/IEC 18004 is that it describes a reference decode procedure: locate the finder patterns, build the sampling grid, read the format information, remove the mask, extract the codewords, run error correction, and finally interpret the data according to its mode. Publishing this recipe means every scanner maker starts from the same understanding of what "correct" looks like, which is why reader quality is so consistent across cheap and expensive devices alike.

Editions and models

The QR family has grown over time, and the standard has grown with it. The original 1994 design is now called Model 1. The version used almost everywhere today is Model 2, which added alignment patterns and other refinements for better scanning at larger sizes. Later editions of ISO/IEC 18004 also brought in Micro QR, a compact single-finder variant for tiny spaces.

Other members of the family — such as rectangular rMQR and the high-density iQR — are covered by their own related standards but share the same DNA. Our guide to QR code variants introduces the whole clan.

Why open standards matter

It's easy to take interoperability for granted, but it's the whole game. Because QR is defined by an open, published standard rather than a secret format:

  • Anyone can build an encoder or decoder without permission or licensing hoops.
  • Codes are future-proof — the rules can't be revoked by a single company.
  • Competition happens on quality and features, not on locking users in.
  • A code made with one tool reads perfectly on any other tool's scanner.

This openness is exactly why a project like QR Puppy can exist: the format belongs to everyone. We generate plain, standard-compliant static codes with no tracking and no expiry — read our manifesto if you'd like to know why we care. Ownership of the technology is worth understanding too; see who owns the QR code.

Where the standard sits among its cousins

QR codes aren't the only 2D symbology with an ISO home. Data Matrix lives in ISO/IEC 16022, PDF417 in ISO/IEC 15438, and Aztec in ISO/IEC 24778. Each was standardized so that different industries — logistics, aviation, healthcare — could rely on a stable, shared format. If you're comparing options, our articles on QR code vs Data Matrix and Aztec and PDF417 codes line them up side by side.

Want to see the standard in action? You can create a free QR code with QR Puppy — fully compliant with ISO/IEC 18004, and yours to keep forever.

Frequently asked questions

Is ISO/IEC 18004 free to read?

The QR technology it describes is free to use, but the official standard document itself is sold by ISO and national standards bodies, like most ISO publications. The good news is you don't need to buy it to make or scan codes — countless open-source libraries already implement it faithfully.

What's the difference between Model 1 and Model 2?

Model 1 is the original 1994 QR code. Model 2 is the refined version used almost universally today; it added alignment patterns and other tweaks that make larger codes scan more reliably. When people say "QR code," they nearly always mean Model 2.

Does following the standard mean every QR code is identical?

No — it means every code is compatible. Two codes can hold different data, use different sizes, error levels, and masks, yet still be readable by the same scanner because they all obey the same rulebook.

Who maintains the standard?

ISO and IEC maintain it jointly through their technical committees, with input from industry experts. It's reviewed periodically and updated when new features or clarifications are needed, while keeping backward compatibility.

Are Micro QR and rMQR part of ISO/IEC 18004?

Micro QR is included in the QR Code standard. Rectangular rMQR and the high-density iQR are defined in their own closely related standards but come from the same family and design principles. See our QR code variants guide for the full lineup.

Make a QR code the honest way 🐾

Free forever, no tracking, no expiry — generated right in your browser.

🎨 Create a QR code →