ficklestudio26

Home › Blog

How QR Codes Work

ficklestudio26 · Facts checked November 28, 2026

A QR code is a grid of black and white squares that stores text, usually a web address. Its design includes a repair system, which is why a code can still scan when partly damaged.

ficklestudio26 QR code generator Make a QR code
Create a code for a link, text or Wi-Fi, on your device.
Open the tool →

Where it came from

The QR code was invented in 1994 by Masahiro Hara at the Japanese company Denso Wave, to label automobile parts. Its standard is ISO/IEC 18004. The company holds patents but has used them in a limited way: use is free as long as the code follows the published standard.

Versions and size

QR codes come in versions 1 to 40. Version 1 is 21 × 21 modules (the small squares), and each step adds 4 modules per side, so the size is 4 × version + 17. Version 40 is 177 × 177. Bigger versions hold more data. At level L, version 40 holds up to 7,089 digits, 4,296 letters and digits, or 2,953 bytes.

The four error correction levels

The code stores extra repair data. The level sets how much of the code can be restored if it is dirty or covered:

The trade-off is simple: a higher level means more repair data, so the same text needs a denser, larger-version code.

Tips for a code that scans

How the repair data works

Denso Wave, the company that makes the QR code, explains that the code carries extra data so it can be restored when it is dirty or damaged. The method is Reed-Solomon coding, which adds redundant "codewords" (small groups of bits) to the real data. It works on whole bytes and copes well with a burst of damage in one spot, such as a smudge or a tear. Denso Wave gives this example: if 50 of 100 data codewords must be correctable, 100 redundant codewords are added, so 50 of 200 total can be restored, which is 25 percent, or level Q.

What each level costs

More repair data means less room for your message, so a higher level needs a bigger or denser code for the same text. Denso Wave notes that M is the most commonly chosen level, suggests Q or H for dirty environments such as factories, and L for clean settings where a lot of data must fit.

Capacity by kind of data

Denso Wave lists the largest amounts one QR code can hold, in its biggest size (177 × 177 modules):

Kind of dataMaximum characters
Numbers only7,089
Letters and numbers (uppercase only)4,296
Binary (bytes, as used for most web addresses and text)2,953
Kanji1,817

A code can mix these kinds. In practice a short web address uses a small fraction of that capacity, which is why most codes you see are small and easy to scan.

Size by version (our own arithmetic)

Using the rule that a code's width is 4 × version + 17 modules:

VersionWidth and height in modules
121 × 21
537 × 37
1057 × 57
25117 × 117
40177 × 177

If you print a code at a fixed width, say 3 cm, a bigger version means smaller modules. A 21-module code at 3 cm has modules of about 1.4 mm; a 57-module code at the same width has about 0.5 mm, which many phones will struggle with from arm's length. Keeping the text short is the easiest way to keep modules large.

From a standard to your phone camera

Denso Wave's standards page lists the approval steps: an industry standard from AIM in October 1997, a Japanese industry standard in March 1998, the Japanese national standard JIS X 0510 in January 1999, and the international standard ISO/IEC 18004 in June 2000. Its patent right on standardized QR Codes has been waived, and the specification is public, which is why anyone can generate a code without a license fee. The full ISO text itself is sold by ISO.

Static codes keep your text inside the image

A plain ("static") QR code stores your text or address directly in the pattern, so it works as long as the printed code is readable, with no service in the middle. Some paid services instead print a short redirect link and charge to keep it alive; if you stop paying, the code can stop working. If you want a code that lasts, check which kind you are creating.

ficklestudio26 QR code generator Make a QR code
Create a code for a link, text or Wi-Fi, on your device.
Open the tool →

Sources

Checked on November 28, 2026. We summarize in our own words and only state what these sources support.

More from the blog