QR Code Capacity: How Much Data Can a QR Code Hold?
At its largest, a QR code can store 7,089 numeric digits, 4,296 alphanumeric characters, or 2,953 bytes of raw data such as a UTF-8 URL. Those are theoretical ceilings, though — for a code that scans reliably in the real world, keep your payload to a few hundred characters.
The Four Encoding Modes
A QR code does not store text the way a text file does. The QR specification defines four encoding modes, and each one packs data differently:
| Mode | What it stores | Bits per character | Max capacity (Version 40, level L) | | --- | --- | --- | --- | | Numeric | Digits 0–9 only | 3.33 (10 bits per 3 digits) | 7,089 digits | | Alphanumeric | 0–9, A–Z, space, and $ % * + - . / : | 5.5 (11 bits per 2 characters) | 4,296 characters | | Byte | Any 8-bit data, including UTF-8 text | 8 | 2,953 bytes | | Kanji | Shift JIS Japanese characters | 13 | 1,817 characters |
Three practical takeaways from this table:
- Numbers are cheapest. A numeric payload takes less than half the space of the same digits stored in byte mode, because 10 bits can carry three digits.
- The alphanumeric mode is uppercase-only. It covers A–Z but not a–z. This is why lowercase URLs silently switch the encoder into byte mode:
HTTPS://EXAMPLE.COMfits alphanumeric mode, whilehttps://example.comdoes not. - Everything else — accented letters, emoji, Chinese characters in UTF-8 — costs 8 bits or more per character. A single emoji can take 4 bytes.
Scanners detect the mode automatically, so you never choose it directly — but the mode your payload forces determines how much room you have left.
How Version and Error Correction Shrink Capacity
Capacity is not a single number. It depends on two more variables: the QR version and the error correction level.
A QR code has 40 versions. Version 1 is a 21×21 grid of black-and-white modules, and each version adds four modules per side, up to 177×177 at Version 40. Bigger version, more modules, more data.
Error correction is the safety margin that lets a damaged code still scan. There are four levels, and raising the level trades data capacity for resilience. Here is what byte-mode capacity looks like at Version 40:
| Error correction level | Damage recoverable | Byte capacity (Version 40) | | --- | --- | --- | | L (Low) | 7% | 2,953 bytes | | M (Medium) | 15% | 2,331 bytes | | Q (Quartile) | 25% | 1,663 bytes | | H (High) | 30% | 1,273 bytes |
The same payload also jumps across versions as it grows. At level L, byte mode holds 17 bytes in Version 1 and 271 bytes in Version 10. A 60-character URL that fits in Version 3–4 at level M will not fit in Version 1 at all — the generator has to build a larger grid to carry it.
Step-by-Step: Fit Your Payload Into a Scannable QR Code
- Count your exact payload. Copy the exact string you plan to encode — including
https://— and count its characters. A tracking URL likehttps://example.com/promo?utm_source=poster&store=12runs about 52 characters, while a cleanhttps://example.com/promois 25. - Choose the lowest error correction you can justify. For posters or packaging that may get scratched, smudged, or partially covered, use M or Q. For codes shown on screens or printed cleanly at a good size, L or M is fine and buys you capacity.
- Generate and check the version. Most tools report the resulting version. Aim for Version 10 or lower for anything printed — beyond that, modules get small and the scanning distance becomes unforgiving.
- Trim the payload before shrinking the code. Strip UTM parameters for print, drop
www., and remember that most scanners handle a URL withouthttps://— encodingexample.com/promoinstead of the full form saves 8 characters and often one full version. - Test at final size and distance. A reliable rule of thumb: the scanning distance should be no more than 10 times the code's width. A 4 cm code scans comfortably from about 40 cm.
What happens if my text is too long?
The generator either refuses with an error or silently jumps to a higher version. The silent jump is the dangerous one: you get a much denser code with smaller modules that fails to scan in dim light, at distance, or through a smudged phone lens. For printed materials, staying under roughly 300 bytes of payload keeps you in the safe zone.
How long can a URL be in a QR code?
Technically, several thousand characters. Practically, keep URLs at 100 characters or fewer. A short URL of 25–45 characters produces a Version 3–5 code that scans almost instantly; every additional 50 or so characters can push the code up a version, making it visibly denser.
Does a bigger QR code image hold more data?
No. Data capacity depends only on version, encoding mode, and error correction level — never on how large you render the image. Scaling a code up just makes its modules physically bigger and easier to scan from farther away. What matters around the code is the quiet zone: leave a blank margin of at least four modules on all sides, or scanners may fail to find the code at all.
Capacity limits only matter before you generate the code. Count the exact characters in your URL with the Utilvy word counter, then generate the code itself with the free QR code generator, check the version it produces, and test it at your final print size.