Published · 8 min read

QR Code Data Capacity: How Much Information Fits in a QR Code?

A maximum-size QR code (Version 40, Level L error correction) can hold exactly 7,089 numeric characters, 4,296 alphanumeric characters, or 2,953 bytes of data.

That is the absolute ceiling defined by the ISO 18004 standard. If you try to encode more than roughly 3 kilobytes into a standard QR code, the generator will simply fail. It physically cannot accommodate any more modules within its structural limits.

However, the theoretical maximum is almost never what you actually want to print. Printing a Version 40 QR code results in a grid so dense—177 by 177 modules—that most smartphones cannot focus on it unless it is printed very large, and ink bleed can easily render it unreadable. The more data you put inside, the larger and denser the grid gets, and the harder it becomes to use in the real world.

This guide covers how QR code capacity actually works, the trade-offs between data size and error correction, and real-world payload benchmarks for common uses, from URLs to JSON strings.


The 4 encoding modes

QR codes don't just store generic bytes. They optimize their storage by using specific encoding modes depending on the type of data you provide. The choice of encoding mode drastically affects the total character limit.

1. Numeric Mode (Max 7,089 characters) The most efficient mode. If your payload consists entirely of digits (0-9), the code packs them tightly. Three digits are encoded into 10 bits. If you are tracking inventory with simple numerical serial numbers, this mode gives you the highest data density possible.

2. Alphanumeric Mode (Max 4,296 characters) Supports numbers 0-9, uppercase letters A-Z, and a few symbols ($ % * + - . / : and space). Note that lowercase letters are not supported in this mode. Two characters are encoded into 11 bits. This mode is excellent for mixed-character tracking numbers and uppercase coupon codes.

3. Byte Mode (Max 2,953 characters) The standard for modern codes. It supports the default ISO-8859-1 character set, and UTF-8 by extension. Any lowercase letter, URL, or JSON payload forces the generator into Byte Mode. One character requires 8 bits. This is what you almost always end up using when linking to websites or creating Wi-Fi networks.

4. Kanji Mode (Max 1,817 characters) Optimized for Shift JIS characters, encoding each into 13 bits. It is rarely used outside Japan, where it significantly compresses the storage space required for Japanese text.

Quiet zone (min 4 modules)One module4 mod

How error correction eats your capacity

Every QR code includes redundant data—Error Correction Codewords—so the code can still be read if it is scratched, dirty, or partially obscured.

You choose the level of error correction when generating the code. The higher the level, the more redundant data is baked into the grid, which leaves less room for your actual data. This is a vital trade-off.

  • Level L (Low): Restores ~7% of data. Maximum capacity. Use this for highly dense data on a pristine digital screen where damage is impossible.
  • Level M (Medium): Restores ~15% of data. The standard default. Good for clean print environments like flyers and packaging.
  • Level Q (Quartile): Restores ~25% of data. A good balance when you anticipate some wear but cannot afford the density of Level H.
  • Level H (High): Restores ~30% of data. Minimum capacity. Use this for industrial asset tags, factory floors, or codes with a logo placed in the middle (where the logo acts as "damage" to the code).

If you generate a code with Level L and one with Level H for the exact same URL, the Level H code will look visibly more complex, because it is storing up to 30% more data just for redundancy. To learn more about this mechanism, refer to our QR Code Error Correction Levels Explained guide.


QR code versions: The capacity table

A QR code "Version" dictates its physical grid size. There are 40 versions in total.

  • Version 1 is 21x21 modules.
  • Version 40 is 177x177 modules. Each subsequent version adds 4 modules to each side (e.g. Version 2 is 25x25).

When you generate a code, the software counts your bytes, checks your requested error correction level, and automatically selects the smallest Version that can fit it.

Here is the maximum byte capacity for key milestones (assuming Byte Mode):

Version Grid Size Level L (Bytes) Level M (Bytes) Level H (Bytes)
V1 21x21 17 14 7
V3 29x29 53 42 22
V5 37x37 106 84 46
V10 57x57 271 213 122
V20 97x97 858 666 382
V30 137x137 1,894 1,452 842
V40 177x177 2,953 2,331 1,273

As you can see, requiring Level H error correction on a Version 40 code slashes its byte capacity from 2,953 down to 1,273.


Real-world payload benchmarks

How do these byte limits translate to everyday use cases? Let's look at what common payloads actually require.

1. The Standard URL (15–50 bytes)

A URL like https://www.etchedqr.com/ easily fits into a Version 2 or 3 code. It scans instantly and can be printed quite small. If you use a standard free QR code generator, this is what you are creating. These codes are lightweight and almost universally fast to scan.

2. Wi-Fi Credentials (30–100 bytes)

A standard Wi-Fi string looks like WIFI:T:WPA;S:MyNetwork;P:MyPassword;;. This usually fits in a Version 3 or 4 code. Because Wi-Fi codes are often taped to routers or walls, keeping the password reasonable helps keep the QR code simple. You can easily test this with a Wi-Fi QR Code Generator.

3. Contact Cards / vCards (150–400 bytes)

A vCard contains a name, phone number, email, and address. Because this is plain text formatted with standard tags (BEGIN:VCARD), it is relatively heavy. A detailed vCard usually pushes the code to Version 8 or 10. If you add a profile image encoded in base64, you will blow past the capacity limits completely. Try creating one using a vCard QR Code Generator.

4. Asset Tracking JSON (100–300 bytes)

Industrial use cases often encode raw JSON arrays for offline scanning, storing machine specs or maintenance records. Expect a Version 6 to 9 code, depending on how much metadata you embed. These denser codes require careful printing. See our QR Code Asset Tags guide for more industrial context.

5. Bulk Generation (Variable)

If you are generating thousands of codes for serial numbers or serialized URLs, your capacity needs will fluctuate based on the longest string in your dataset. Generating them via a Bulk QR Code Generator requires you to ensure the longest row doesn't push the code into an un-scannable Version number.


The "Density Penalty"

The physical size of a QR code module (one of the tiny black squares) dictates whether a camera can see it.

If you print a Version 2 code (25x25) at 1 inch wide, each module is roughly 1mm wide. This is very easy for any smartphone to scan. If you print a Version 20 code (97x97) at 1 inch wide, each module is ~0.25mm wide. Ink bleed on porous paper will easily blur adjacent modules together, and a cheaper smartphone camera will fail to resolve the grid entirely.

This is the Density Penalty: the more data you encode, the larger you must print the code to maintain scannability.

A very dense code cannot be printed on a small business card. It requires a poster-sized canvas to keep the modules physically distinct. Always test your densest code on a real printer before committing to a massive production run.

2 cm20 cm dist10 cm1 m dist30 cm3 m dist

Best practices to keep codes compact

If you want a fast, reliable scan, you want the lowest Version possible. Here are several strategies to keep your QR codes as simple and readable as they can be.

  1. Use URLs instead of raw text. Instead of encoding a 500-word block of text directly into the code, put the text on a web page and encode the 30-character URL. This drastically drops the code's complexity.
  2. Shorten your URLs. If your URL is yoursite.com/category/product/variant-12345?utm_source=print&utm_medium=poster, use a URL shortener or a redirect to reduce the footprint.
  3. Drop error correction to L or M. Unless you are putting a logo in the middle of the code or printing it on a forklift that will get scraped, you do not need Level H error correction. Dropping to Level M shrinks the physical grid.
  4. Use uppercase alphanumeric where possible. If you are encoding a serial number, SN-1234ABCD uses the Alphanumeric mode. sn-1234abcd forces Byte mode, eating more capacity for the exact same string length.

A dense code is a slow code. Encode the minimum data required to get the scanner to the destination, and your users will thank you with higher engagement rates.