Guide

QR code versions and capacity

QR codes come in 40 sizes called versions, from 21 × 21 squares (version 1) to 177 × 177 (version 40). The largest holds 7,089 digits, 4,296 uppercase letters and digits, or 2,953 bytes of ordinary text at the lowest error correction level. Most web links fit in version 2 to 6.

Where everyday payloads land

You never pick a version. The encoder takes the smallest one your data fits at the chosen error correction level. These are the versions our encoder picked for real payloads:

What's in the codeLengthLMQH
tel:+919876543210171122
https://example.com192223
https://example.com/menu/today302334
upi://pay?pa=cafe@okaxis&pn=Cafe&cu=INR393345
WIFI:T:WPA;S:Cafe Guest;P:espresso-2024;;413345
A link with three UTM tracking tags905689
A contact card with address (vCard 3.0)23810111316

Our generator uses level M, or H when you add a logo. So a plain menu link comes out as version 3 (29 × 29), and the same link with a logo as version 4 (33 × 33).

What a version is

A version is a size, counted in modules (the small squares). Version 1 is 21 × 21, and each step adds 4 modules per side, so version N is 4N + 17 across. Version 40 is 177 × 177 (Denso Wave).

Bigger versions carry extra fixed parts. From version 2 there's a small alignment square near the bottom-right corner, and more of them as the code grows. From version 7, two blocks of version information sit beside the corner squares. The interactive explainer shows them appearing as you type.

Capacity table

Capacity depends on the version, the error correction level and the encoding mode:

  • Numeric: digits 0–9 only.
  • Alphanumeric: digits, uppercase A–Z, space and $ % * + - . / :.
  • Byte: everything else, stored as UTF-8. Any lowercase letter, ?, = or & puts text here, so this is the column that applies to links.

Maximum characters at levels L and M:

VersionGridNumeric LNumeric MAlphanumeric LAlphanumeric MByte LByte M
121 × 21413425201714
225 × 25776347383226
329 × 2912710177615342
433 × 33187149114907862
537 × 3725520215412210684
641 × 41322255195154134106
745 × 45370293224178154122
849 × 49461365279221192152
1057 × 57652513395311271213
1577 × 771,250991758600520412
2097 × 972,0611,6001,249970858666
25117 × 1173,0572,3951,8531,4511,273997
30137 × 1374,1583,2892,5201,9941,7321,370
40177 × 1777,0895,5964,2963,3912,9532,331

Maximum characters at levels Q and H:

VersionNumeric QNumeric HAlphanumeric QAlphanumeric HByte QByte H
127171610117
2483429202014
3775847353224
41118267504634
514410687646044
6178139108847458
7207154125938664
825920215712210884
10364288221174151119
15703530426321292220
201,159919702557482382
251,7181,2861,041779715535
302,3581,7821,4291,080982742
403,9933,0572,4201,8521,6631,273

We filled every cell by asking our encoder for the longest string of each kind that fits, and the results match the capacity tables in ISO/IEC 18004. They assume the whole message uses one mode. A good encoder mixes modes (a run of digits in numeric, the rest in bytes), which can squeeze in a little more.

Why "2,953 characters" is usually wrong

The byte column counts bytes, not letters. Plain English letters take one byte each in UTF-8, accented letters like é take two, and most emoji take four. A message full of emoji fits about a quarter of the number in the table.

The alphanumeric column trips people up the other way. Its 4,296 looks like the limit for text, but one lowercase letter moves that part of the message into byte mode.

What to do with this

Keep what goes in the code short, and the version stays low and the modules stay big. If a code looks dense, the cause is almost always a long link or a full contact card. The QR code size guide turns a version into a print width.

For tiny parts there's also Micro QR, with four sizes from 11 × 11 to 17 × 17. Phone cameras don't read it.

Written by Last updated