Technology 6 min read

QR Code Character Limits: How Encoding Modes Change the Size

By Arvind Sharma Published 2026-11-29 Updated 2026-11-29
Arvind Sharma — Founder, QRPress QR Code GeneratorArvind built QRPress to give small businesses free, print-ready QR codes without scan caps, ads, or expiry. He writes guides focused on practical deployment — payments, printing, and shop-level security.

Two QR codes with the same number of characters can have very different grids. That is because the standard stores data in modes, and each mode uses a different number of bits per character. Understanding the modes explains why a short link is better than a long URL, and why a string of digits fits on a much smaller label.

The Four Modes

QR codes support numeric, alphanumeric, byte and kanji modes. Numeric mode stores digits in groups of three using ten bits. Alphanumeric mode covers upper-case A-Z, digits, space and a small punctuation set ($ % * + - . / :). Byte mode stores arbitrary bytes, usually UTF-8 text. Kanji mode uses Shift JIS X 0208.

In rough terms, numeric mode uses about three and a third bits per character, alphanumeric about five and a half, byte eight, and kanji thirteen. A 30-digit number is much cheaper to encode than a 30-character URL.

Generators choose the mode automatically. The practical consequence is that character count alone does not predict grid size: the character set does.

Why URLs Are Byte Mode

A URL contains lower-case letters, slashes, dots, hyphens and query parameters. Lower-case letters are not in the alphanumeric set, so the whole payload falls back to byte mode. That costs more bits per character.

Upper-casing the domain and path does not reliably help, because query values are often case-sensitive and URLs in byte mode gain little from a few upper-case letters. Do not break a working URL to save a few modules.

What does help is shortening. A 25-character short URL uses about a third of the bits of a 75-character tracking URL, and that can drop the code by one or two versions.

Error Correction Multiplies the Effect

Higher error correction levels reserve more codewords for recovery. A payload that fits in a version 3 code at level L might need version 5 at level H.

For print, this is a good trade: the extra modules buy tolerance for scuffs and logos. But more modules at a fixed physical size mean smaller modules, so make the code larger when you raise the level.

The error correction guide lists the levels and their approximate recovery percentages.

Special Characters and Encoding Errors

Non-ASCII text in byte mode needs UTF-8, and some older readers expect ISO/IEC 8859-1. A name with an accent can display incorrectly on an older phone even though the code scans. Test with the devices your audience uses.

Line breaks inside a vCard or a text payload add bytes. Use CRLF where the format expects it, and avoid pasting text with hidden formatting into the generator.

A URL containing an ampersand in a query string is fine in a QR code; the ampersand is a byte. Problems usually come from the destination dropping the parameter, not from the encoding.

Design to the Grid, Not the Character Count

  1. Choose the shortest payload that does the job.
  2. Pick an error correction level appropriate to the surface.
  3. Generate the code and check the module count or version.
  4. Multiply the module count by the minimum module size for your print process.
  5. Print a proof and scan at the real distance.

The capacity guide lists the maximum numbers, but a legible print is decided by module size, not by the ceiling.

Frequently Asked Questions

Why does my short URL produce a bigger code than expected?

URLs use byte mode because of lower-case letters. A numeric payload of the same length would be smaller. Shortening the URL is the practical fix.

What characters are allowed in alphanumeric mode?

Upper-case A-Z, digits 0-9, space, and $ % * + - . / :. Lower-case letters and most other punctuation force byte mode.

Do special characters break QR codes?

Not usually, but non-ASCII text needs UTF-8 and some older readers expect a different default encoding. Test the decoded text on real devices.

How do I make the printed code smaller?

Shorten the payload first, then check whether a lower error correction level is acceptable. Never shrink the physical size without checking the module size.

Is there a fixed character limit?

No single number. The limit depends on mode, version and error correction level. The maximum at version 40-L is 7,089 numeric, 4,296 alphanumeric or 2,953 byte characters.

Create Your QR Code Instantly

Generate a compact QR code and check the decoded payload before printing. Use our secure, no-registration static systems or spin up a dynamic tracker campaign in seconds.

Create Short QR Code