Home / QR code sizes, versions and error correction levels

QR code sizes, versions and error correction levels

Updated December 3, 2026

Why some QR codes are small and simple and others dense, and how to choose a level when you make one.

Encoding, not encryption. These tools convert between ways of writing the same information. They are not secure encryption, so do not rely on them to protect anything private. Everything runs in your browser, and what you type is not sent anywhere.

Versions and size

A QR code symbol has a version from 1 to 40, which sets its overall dimensions. The side is 4 × version + 17 dots (modules), so version 1 is 21 × 21 and version 40 is 177 × 177.

QR code size by version (4 × version + 17)
VersionModules per side
121 × 21
225 × 25
537 × 37
1057 × 57
2097 × 97
30137 × 137
40177 × 177

Error correction

QR codes use Reed–Solomon error correction so that the code remains readable even if it is partially damaged. The standard defines four selectable levels, and higher levels add more backup data, which either reduces the amount of data that fits in a given size or requires a larger code for the same message.

Error correction levels (approximate share of codewords that can be restored)
LevelNameAbout
LLow7%
MMedium15%
QQuartile25%
HHigh30%

Whether a damaged code actually scans depends heavily on where the damage occurs, so the percentage is not a promise. Test any code you plan to print.

How much fits

The maximum capacity is at version 40 with level L. For arbitrary bytes, which is what a link or Wi-Fi text uses, that is 2,953 bytes. The generator on this site measured the largest byte payload that fits at each level:

Capacity in bytes, measured with the bundled generator
LevelLargest byte payload at version 40
L2,953
M2,331
Q1,663
H1,273

Numeric-only text can hold 7,089 digits and alphanumeric-only text 4,296 characters at 40-L. The tool picks the smallest version that fits your text at the level you chose.

What a typical code needs

Examples made with the bundled generator
TextLevelBytesVersionSize in modules
https://example.comM19225 × 25
https://example.com/a/longer/path?with=query&and=moreM53433 × 33
https://example.comH19329 × 29
WIFI:T:WPA;S:HomeNet;P:correct horse battery;;M46433 × 33

A longer link needs a bigger code; a higher level needs a bigger code for the same text, as the first and third rows show.

Wi-Fi text

A Wi-Fi code is just text in a fixed format. The special characters backslash, semicolon, comma, double quote and colon are escaped with a backslash:

Wi-Fi code text
NetworkText in the code
Network HomeNet, password secret123, WPAWIFI:T:WPA;S:HomeNet;P:secret123;;
Open network Cafe (no password)WIFI:T:nopass;S:Cafe;;
Hidden network named a;b with password p:wWIFI:T:WPA;S:a\;b;P:p\:w;H:true;;

Make one with the QR code generator.