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.
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.
| Version | Modules per side |
|---|---|
| 1 | 21 × 21 |
| 2 | 25 × 25 |
| 5 | 37 × 37 |
| 10 | 57 × 57 |
| 20 | 97 × 97 |
| 30 | 137 × 137 |
| 40 | 177 × 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.
| Level | Name | About |
|---|---|---|
| L | Low | 7% |
| M | Medium | 15% |
| Q | Quartile | 25% |
| H | High | 30% |
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:
| Level | Largest byte payload at version 40 |
|---|---|
| L | 2,953 |
| M | 2,331 |
| Q | 1,663 |
| H | 1,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
| Text | Level | Bytes | Version | Size in modules |
|---|---|---|---|---|
| https://example.com | M | 19 | 2 | 25 × 25 |
| https://example.com/a/longer/path?with=query&and=more | M | 53 | 4 | 33 × 33 |
| https://example.com | H | 19 | 3 | 29 × 29 |
| WIFI:T:WPA;S:HomeNet;P:correct horse battery;; | M | 46 | 4 | 33 × 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:
| Network | Text in the code |
|---|---|
| Network HomeNet, password secret123, WPA | WIFI:T:WPA;S:HomeNet;P:secret123;; |
| Open network Cafe (no password) | WIFI:T:nopass;S:Cafe;; |
| Hidden network named a;b with password p:w | WIFI:T:WPA;S:a\;b;P:p\:w;H:true;; |
Make one with the QR code generator.