How to use the QR Code Capacity Calculator
- Paste the text or link you want to encode. To plan before you have the text, leave it empty and enter a character count.
- Leave Content type on Detect from the text, or pick Numeric, Alphanumeric or Byte yourself.
- Read the result at level M, then compare the table for L, M, Q and H.
- Make the code in the QR code generator, and print it large enough that each module stays crisp. Test the printed code with a real phone before you print a batch.
Versions, modules and error correction
A QR code comes in 40 versions. Version 1 is 21 x 21 modules (the small squares) and each version adds 4 per side, so the size is 4 x version + 17: version 4 is 33 x 33, version 10 is 57 x 57 and version 40 is 177 x 177.
Error correction adds spare codewords so a scanner can rebuild data from a damaged or dirty code. Level L recovers about 7% of the codewords, M about 15%, Q about 25% and H about 30%. A higher level means fewer data codewords, so less text fits in the same version.
How capacity is worked out
Each version and level has a fixed number of data codewords of 8 bits. The code stores a 4-bit mode indicator, a character count and then the data. The count field is 10, 12 or 14 bits wide for numeric (by version band 1-9, 10-26, 27-40), 9, 11 or 13 for alphanumeric and 8, 16 or 16 for byte.
Numeric mode packs 3 digits into 10 bits, alphanumeric packs 2 characters into 11 bits, and byte mode uses 8 bits per byte. Worked example, version 1 at level L, which has 19 data codewords = 152 bits: for numeric, 152 - 4 - 10 = 138 bits; 13 groups of 3 digits use 130 bits (39 digits) and the last 8 bits hold 2 more digits (7 bits), so 41 digits. For byte, 152 - 4 - 8 = 140 bits, which is 17 bytes. These match the published table of 41 digits and 17 bytes.
Another example: a 60-character link is 60 bytes. At level M, version 3 holds 42 bytes and version 4 holds 62, so it needs version 4, a 33 x 33 code. At level H it needs version 7 (45 x 45), which is bigger to print at the same module size.
Maximums and why short is better
The largest code, version 40 at level L, holds 7,089 digits, 4,296 alphanumeric characters or 2,953 bytes. Non-ASCII text such as accented letters or emoji uses more than one byte per character in UTF-8, so those characters cost more.
Bigger versions mean smaller modules at a given print size and harder scanning. Shorten links, drop tracking text and use level L or M for printed codes on clean surfaces. Choose Q or H only when the code may get dirty or carry a logo.
Frequently asked questions
How many characters can a QR code hold?
At most 7,089 digits, 4,296 uppercase alphanumeric characters or 2,953 bytes, at version 40 with error correction level L. Lower versions and higher levels hold less.
What is alphanumeric mode?
A compact mode for digits, uppercase A to Z, space and $ % * + - . / : only. A link in lowercase uses byte mode instead, unless you write it in capitals where the site is not case sensitive.
Which error correction level should I choose?
M is the usual default. Use L for short codes on clean screens, and Q or H for printed codes that may be scuffed or have a logo over the middle.
Why is the number different from my QR generator?
This tool gives the capacity of a code with a single mode for the whole text. A generator that mixes modes inside one code can fit slightly more.
Does it include Kanji mode?
No. Kanji mode exists in the standard but is rare; this tool covers numeric, alphanumeric and byte.
Sources
- Denso Wave: QR Code versions and data capacity (as of November 2026)
- Denso Wave: QR Code error correction (as of November 2026)
Last reviewed