CodeBox Hub
FREE

How Much Data Can a QR Code Hold?

How much data fits in a QR code? The ISO/IEC 18004 capacity matrix for versions 1-10 at L/M/Q/H, plus measured examples of URL, vCard and WiFi payloads.

# How Much Data Can a QR Code Hold?

A QR code holds 17 bytes at minimum (version 1, level L) and 2,953 bytes at maximum (version 40, level L) in byte mode. In numeric mode the maximum is 7,089 digits. A typical website URL of 20-50 characters fits in versions 2-5, a full vCard needs about version 11-16, and a 1,000-digit batch ID needs version 16-22.

The capacity matrix, versions 1-10

The numbers below come from Annex A of ISO/IEC 18004. We re-verified every cell by generating test payloads in our tool and cross-checked them against a second, independent open-source encoder — all values matched.

Each cell reads numeric / alphanumeric / byte mode, in digits, characters or bytes:

VersionLMQH
141 / 25 / 1734 / 20 / 1427 / 16 / 1117 / 10 / 7
277 / 47 / 3263 / 38 / 2648 / 29 / 2034 / 20 / 14
3127 / 77 / 53101 / 61 / 4277 / 47 / 3258 / 35 / 24
4187 / 114 / 78149 / 90 / 62111 / 67 / 4682 / 50 / 34
5255 / 154 / 106202 / 122 / 84144 / 87 / 60106 / 64 / 44
6322 / 195 / 134255 / 154 / 106178 / 108 / 74139 / 84 / 58
7370 / 224 / 154293 / 178 / 122207 / 125 / 86154 / 93 / 64
8461 / 279 / 192365 / 221 / 152259 / 157 / 108202 / 122 / 84
9552 / 335 / 230432 / 262 / 180312 / 189 / 130235 / 143 / 98
10652 / 395 / 271513 / 311 / 213364 / 221 / 151288 / 174 / 119
407089 / 4296 / 29535596 / 3391 / 23313993 / 2420 / 16633057 / 1852 / 1273

The version 40 row is the maximum the standard allows — see what a QR code is for the 40-version scheme and the 4v + 17 grid formula.

Why the same code holds different amounts

Two levers change the answer to "how much fits":

  • Encoding mode. Numeric mode packs three digits into 10 bits; alphanumeric packs two characters into 11; byte mode stores one byte per 8 bits. A 1,000-digit ID is 3,338 bits as numeric data but 8,000 bits as text — 2.4× larger in byte mode. Smart encoders, including the QR code generator, split mixed content into segments and use the densest mode per segment.
  • Error-correction level. Level H stores about 30% of the symbol as correction data, so the same payload needs a bigger grid. The table below shows what the upgrade costs, measured in our generator:
LevelRecoveryVersion needed for 150 bytesVersion needed for 500 bytes
L (7%)7% of modules damaged715
M (15%)15%817
Q (25%)25%1021
H (30%)30%1224

The deeper mechanics — how Reed-Solomon correction actually reconstructs missing modules — are on the QR error correction page.

Real payloads, measured

We ran 15 payload types through the generator and recorded the smallest version each one needs:

PayloadBytesVersion at MVersion at H
Hello511
Hello, world!1312
https://codeboxhub.com2223
https://codeboxhub.com/wifi2734
https://codeboxhub.com/qr-generator/qr-wifi/4445
https://codeboxhub.com/barcode-generator/ean13/4746
+8613800138000 (phone)1412
WIFI:T:WPA;S:CodeBox Hub;P:MySecret123;;4035
WIFI:T:WPA2;S:CodeBox-Guest-5G;P:LongSecret!2026;;5346
vCard, 8 fields2451116
1,000-digit batch ID (numeric mode)3,338 bits1622
500-byte structured payment string5001724

Three patterns stand out. First, URLs are cheap: even our longest generator URL (47 characters) stays at version 4-6. Second, the H upgrade is the surprise: the 245-byte vCard moves from version 11 (61×61 modules) to version 16 (81×81) — 33% more modules for the same data. Third, pure-digit content is the densest of all: 1,000 digits in numeric mode fit in the same version where 1,000 bytes of text would not. For batch work — one code per row, each with its own length — the batch QR generator reports the version per code in its result file, so you can spot the outliers before printing.

Rules of thumb

  • URL under 30 characters: version 1-3 at level M.
  • URL under 50 characters: version 4-6 at level M.
  • WiFi string (SSID + WPA2 password): version 3-6.
  • Standard vCard (8 fields): version 11 at M, version 16 at H.
  • 1,000-digit identifier: version 16 at M in numeric mode.
  • Never sure? Generate it — the generator shows the version live before you download.

Capacity is half the story; the other half is print size, because a version 16 grid needs roughly three times the area of a version 1 grid. The version-by-version minimum print sizes are on the minimum QR code size page, and if you are weighing a QR code against a 1D barcode for the same data, the capacity gap is the single biggest factor in the QR code vs barcode comparison.

Why Your QR Code Is Not Scanning (Common Causes)

  • Module width below the camera's resolution. Below ~0.25 mm, a phone camera at arm's length stops resolving modules — the symbol is valid, but the decoder sees a blur. For print at 30 cm+ read distance, keep modules at 0.33 mm or larger and grow the symbol rather than the version.
  • Version 40 as a crutch. Teams hitting a payload limit sometimes force a bigger version instead of trimming content or splitting the data. A 120 mm symbol on a product label is the symptom: the eye cannot read it, and neither can the camera at normal distance.
  • No quiet zone. The format needs a 4-module white border. A logo, frame or color background inside that border gets decoded as data — the classic "scans on one phone, not another" bug, because decoder tolerance for a dirty border varies.
  • Error correction chosen for looks. H survives the most damage, but at a given payload it forces a denser pattern and a shorter reliable range. Choose H for scratched metal tags and laminates, and L or M for clean, controlled print.
  • Contrast inversion and color prints. A color QR code on a dark background needs the dark modules light, not just inverted at export time — many tools invert the colors but keep the quiet zone dark. Check that the border stays light.
  • Stretching to fit the layout. Scaling the symbol non-uniformly (taller than wide) breaks module geometry. Resize uniformly and let the version, not the aspect ratio, absorb the layout.

FAQ

What is the maximum capacity of a QR code?

2,953 bytes in byte mode, or 7,089 digits in numeric mode — both at version 40 with level L error correction, the limits of ISO/IEC 18004.

How many characters of text can a QR code hold?

Up to 2,953 in byte mode (version 40, level L); most real-world text is well below that — a typical URL needs only 20-50 characters.

How many digits can a QR code store?

7,089 digits in numeric mode at version 40 level L, and even more compactly than the same digits stored as text.

How much data does a WiFi QR code need?

The WIFI: string for a WPA2 network is usually 30-60 bytes, which lands in versions 2-6 — well inside the standard.

What is the smallest capacity a QR code has?

Version 1 at level H holds 7 bytes in byte mode, or 10 digits in numeric mode.

Why does the same payload need a bigger code at level H?

Level H reserves about 30% of the grid for Reed-Solomon correction data, so the payload gets fewer data modules and must move to a higher version.

Can a QR code hold 1,000 characters?

Yes. 1,000 digits in numeric mode fit in version 16 at level M, and 1,000 bytes of text fit at level L — but check the print size, because version 16 is an 81×81 grid.

How do I find the version of an existing QR code?

Versions 7 and up print a version-information block next to the top-left finder pattern; easier, scan it with the QR scanner or re-generate the payload in the generator and read the version it reports.

Keep reading

Contact us