01Explorer
The 40 versions of the QR code.
Choose a version: its zones are drawn, its capacity and print size calculated. Everything runs in your browser.
Version 7: 45 × 45 modules. Level M: 122 bytes, 178 uppercase letters and digits, or 293 digits.
This drawing is a real QR code: uncheck the colors to scan it.
Empty: the code contains “QR SAMURAI”. Type some text to see which version it fits in.
The zones of version 7
| Zone | Modules | Share |
|---|---|---|
| 147 | 7.3% | |
| 45 | 2.2% | |
| 48 | 2.4% | |
| 150 | 7.4% | |
| 31 | 1.5% | |
| 36 | 1.8% | |
| 992 | 49% | |
| 576 | 28.4% | |
| 0 | 0% | |
| Total | 2,025 | 100% |
Tap a zone to highlight it on the drawing.
Capacity of version 7
| Level | Digits | Uppercase letters and digits | Bytes | Recovers up to |
|---|---|---|---|---|
| L | 370 | 224 | 154 | 10.2% |
| M (chosen) | 293 | 178 | 122 | 18.4% |
| Q | 207 | 125 | 86 | 27.6% |
| H | 154 | 93 | 64 | 33.2% |
- Codewords
- 196
- Data
- 124
- Error correction
- 72
- Blocks
- 4 × 18 codewords
An accented letter takes 2 bytes. “Recovers up to”: share of codewords that can be recovered in this version. How it is counted
Printed size
- Minimum side
- 7.5 cm
- With the quiet zone
- 9 cm
- One module
- 1.7 mm
- Smallest printable size
- 7.65 mm
“Smallest printable size”: 0.17 mm modules (600 dpi laser), without the quiet zone. The minimum side follows a rule not yet measured: how it is calculated.
02The guide
Capacity, zones
and size.
The short answer
A QR code holds at most 7,089 digits, 4,296 alphanumeric characters or 2,953 bytes, in version 40 at level L. Version 1, the smallest, holds from 17 to 41 digits depending on the level.
By QR Samurai · published on · 13 sources · All guides
01What is a version?
A QR code’s version gives the number of modules, the small dark or light squares, on each side: 21 in version 1, 4 more with each version, 177 in version 40[1].
These are the versions of Model 2, today’s QR code. Model 1 stopped at version 14, with no alignment patterns[3].
The generator picks the smallest version that holds the text at the chosen error correction level. The split into modes is not dictated: two programs can draw two different codes for the same text[6].
To find a code’s version, count its modules along one side, without the quiet zone: version = (modules − 17) ÷ 4. Or drop its image into the checker.
02The zones of a QR code
Part of the grid is fixed: it helps the reader find the code, straighten it and measure its modules. The rest carries the data and its error correction.
The guide How a QR code works explains each zone, the mask and error correction step by step.
- Finder patterns: three 7 × 7 module squares in the corners. Their 1:1:3:1:1 ratio, the same in every direction, lets the code be read from any angle[4].
- Separators: a light band one module wide around each finder pattern[9].
- Timing patterns: a row and a column of alternating modules between the finder patterns, on the 7th row and the 7th column. They give the size of one module[9].
- Alignment patterns: 5 × 5 module squares for reading a curved code or one seen at an angle[3]. None in version 1, one from version 2 to 6, then 6, 13, 22, up to 46 in version 40[13].
- Format information: 15 bits written twice near the finder patterns, for the error correction level and the mask, with their own error-correcting code[10]. The encoder adds an always-dark module there[13].
- Version information: from version 7 on, two blocks of 6 × 3 modules near the top-right and bottom-left finder patterns[10]
[13]. - Data and error correction: the rest of the grid. The 8-bit codewords are placed there in a zigzag, in columns two modules wide, from right to left[9]: first the data, then the error correction[13], calculated with the Reed-Solomon method[5].
- Remainder bits: depending on the version, 0, 3, 4 or 7 modules with no codeword[13].
Around the code, a quiet zone of 4 modules is required[7]. It does not count toward the version.
03How many characters?
Capacity depends on the version, the error correction level and the type of characters[1]. At most, in version 40 at level L: 7,089 digits, 4,296 alphanumeric characters, 2,953 bytes or 1,817 kanji[2].
Four ways to pack characters
- Digits (numeric mode), 0 to 9: 10 bits for 3 digits[6]
[13]. - Uppercase letters and digits (alphanumeric mode): digits, the 26 uppercase letters and 9 symbols (space and $ % * + - . / :), 11 bits for 2 characters[6]
[13]. - Bytes: everything else, lowercase letters and accents included, 8 bits per byte[6]. In UTF-8, an accented letter takes 2 bytes[11].
- Kanji, for Japanese: 13 bits per character[6]
[13]. The site’s encoder does not handle this mode.
We recalculated these 480 capacities with the site’s encoder: it accepts each one and rejects one more character[13]. They match DENSO WAVE’s values[1]
Error correction takes up space: in version 10, going from L to H drops the capacity from 271 to 119 bytes[13].
In practice
- A 30-character link, in lowercase, fits in version 2 at level L and in version 3 at level M[13].
- In the days of flip phones, DENSO WAVE estimated that a phone read about 271 bytes, that is version 10 at level L[6].
- A QR code holds 3 KB at most: too little for an image or a sound. For a photo, a video or a PDF, it holds a link to the file[6].
The table of the 40 versions
| Version | Side | Bytes | Uppercase letters and digits | Digits | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| L (bytes) | M (bytes) | Q (bytes) | H (bytes) | L (uppercase letters and digits) | M (uppercase letters and digits) | Q (uppercase letters and digits) | H (uppercase letters and digits) | L (digits) | M (digits) | Q (digits) | H (digits) | ||
| Explore version 1 | 21 | 17 | 14 | 11 | 7 | 25 | 20 | 16 | 10 | 41 | 34 | 27 | 17 |
| Explore version 2 | 25 | 32 | 26 | 20 | 14 | 47 | 38 | 29 | 20 | 77 | 63 | 48 | 34 |
| Explore version 3 | 29 | 53 | 42 | 32 | 24 | 77 | 61 | 47 | 35 | 127 | 101 | 77 | 58 |
| Explore version 4 | 33 | 78 | 62 | 46 | 34 | 114 | 90 | 67 | 50 | 187 | 149 | 111 | 82 |
| Explore version 5 | 37 | 106 | 84 | 60 | 44 | 154 | 122 | 87 | 64 | 255 | 202 | 144 | 106 |
| Explore version 6 | 41 | 134 | 106 | 74 | 58 | 195 | 154 | 108 | 84 | 322 | 255 | 178 | 139 |
| Explore version 7 | 45 | 154 | 122 | 86 | 64 | 224 | 178 | 125 | 93 | 370 | 293 | 207 | 154 |
| Explore version 8 | 49 | 192 | 152 | 108 | 84 | 279 | 221 | 157 | 122 | 461 | 365 | 259 | 202 |
| Explore version 9 | 53 | 230 | 180 | 130 | 98 | 335 | 262 | 189 | 143 | 552 | 432 | 312 | 235 |
| Explore version 10 | 57 | 271 | 213 | 151 | 119 | 395 | 311 | 221 | 174 | 652 | 513 | 364 | 288 |
| Explore version 11 | 61 | 321 | 251 | 177 | 137 | 468 | 366 | 259 | 200 | 772 | 604 | 427 | 331 |
| Explore version 12 | 65 | 367 | 287 | 203 | 155 | 535 | 419 | 296 | 227 | 883 | 691 | 489 | 374 |
| Explore version 13 | 69 | 425 | 331 | 241 | 177 | 619 | 483 | 352 | 259 | 1,022 | 796 | 580 | 427 |
| Explore version 14 | 73 | 458 | 362 | 258 | 194 | 667 | 528 | 376 | 283 | 1,101 | 871 | 621 | 468 |
| Explore version 15 | 77 | 520 | 412 | 292 | 220 | 758 | 600 | 426 | 321 | 1,250 | 991 | 703 | 530 |
| Explore version 16 | 81 | 586 | 450 | 322 | 250 | 854 | 656 | 470 | 365 | 1,408 | 1,082 | 775 | 602 |
| Explore version 17 | 85 | 644 | 504 | 364 | 280 | 938 | 734 | 531 | 408 | 1,548 | 1,212 | 876 | 674 |
| Explore version 18 | 89 | 718 | 560 | 394 | 310 | 1,046 | 816 | 574 | 452 | 1,725 | 1,346 | 948 | 746 |
| Explore version 19 | 93 | 792 | 624 | 442 | 338 | 1,153 | 909 | 644 | 493 | 1,903 | 1,500 | 1,063 | 813 |
| Explore version 20 | 97 | 858 | 666 | 482 | 382 | 1,249 | 970 | 702 | 557 | 2,061 | 1,600 | 1,159 | 919 |
| Explore version 21 | 101 | 929 | 711 | 509 | 403 | 1,352 | 1,035 | 742 | 587 | 2,232 | 1,708 | 1,224 | 969 |
| Explore version 22 | 105 | 1,003 | 779 | 565 | 439 | 1,460 | 1,134 | 823 | 640 | 2,409 | 1,872 | 1,358 | 1,056 |
| Explore version 23 | 109 | 1,091 | 857 | 611 | 461 | 1,588 | 1,248 | 890 | 672 | 2,620 | 2,059 | 1,468 | 1,108 |
| Explore version 24 | 113 | 1,171 | 911 | 661 | 511 | 1,704 | 1,326 | 963 | 744 | 2,812 | 2,188 | 1,588 | 1,228 |
| Explore version 25 | 117 | 1,273 | 997 | 715 | 535 | 1,853 | 1,451 | 1,041 | 779 | 3,057 | 2,395 | 1,718 | 1,286 |
| Explore version 26 | 121 | 1,367 | 1,059 | 751 | 593 | 1,990 | 1,542 | 1,094 | 864 | 3,283 | 2,544 | 1,804 | 1,425 |
| Explore version 27 | 125 | 1,465 | 1,125 | 805 | 625 | 2,132 | 1,637 | 1,172 | 910 | 3,517 | 2,701 | 1,933 | 1,501 |
| Explore version 28 | 129 | 1,528 | 1,190 | 868 | 658 | 2,223 | 1,732 | 1,263 | 958 | 3,669 | 2,857 | 2,085 | 1,581 |
| Explore version 29 | 133 | 1,628 | 1,264 | 908 | 698 | 2,369 | 1,839 | 1,322 | 1,016 | 3,909 | 3,035 | 2,181 | 1,677 |
| Explore version 30 | 137 | 1,732 | 1,370 | 982 | 742 | 2,520 | 1,994 | 1,429 | 1,080 | 4,158 | 3,289 | 2,358 | 1,782 |
| Explore version 31 | 141 | 1,840 | 1,452 | 1,030 | 790 | 2,677 | 2,113 | 1,499 | 1,150 | 4,417 | 3,486 | 2,473 | 1,897 |
| Explore version 32 | 145 | 1,952 | 1,538 | 1,112 | 842 | 2,840 | 2,238 | 1,618 | 1,226 | 4,686 | 3,693 | 2,670 | 2,022 |
| Explore version 33 | 149 | 2,068 | 1,628 | 1,168 | 898 | 3,009 | 2,369 | 1,700 | 1,307 | 4,965 | 3,909 | 2,805 | 2,157 |
| Explore version 34 | 153 | 2,188 | 1,722 | 1,228 | 958 | 3,183 | 2,506 | 1,787 | 1,394 | 5,253 | 4,134 | 2,949 | 2,301 |
| Explore version 35 | 157 | 2,303 | 1,809 | 1,283 | 983 | 3,351 | 2,632 | 1,867 | 1,431 | 5,529 | 4,343 | 3,081 | 2,361 |
| Explore version 36 | 161 | 2,431 | 1,911 | 1,351 | 1,051 | 3,537 | 2,780 | 1,966 | 1,530 | 5,836 | 4,588 | 3,244 | 2,524 |
| Explore version 37 | 165 | 2,563 | 1,989 | 1,423 | 1,093 | 3,729 | 2,894 | 2,071 | 1,591 | 6,153 | 4,775 | 3,417 | 2,625 |
| Explore version 38 | 169 | 2,699 | 2,099 | 1,499 | 1,139 | 3,927 | 3,054 | 2,181 | 1,658 | 6,479 | 5,039 | 3,599 | 2,735 |
| Explore version 39 | 173 | 2,809 | 2,213 | 1,579 | 1,219 | 4,087 | 3,220 | 2,298 | 1,774 | 6,743 | 5,313 | 3,791 | 2,927 |
| Explore version 40 | 177 | 2,953 | 2,331 | 1,663 | 1,273 | 4,296 | 3,391 | 2,420 | 1,852 | 7,089 | 5,596 | 3,993 | 3,057 |
04The real error correction rate
The four levels are advertised as restoring about 7, 15, 25 and 30% of the codewords[2]
Version by version, the calculation gives from 7.7 to 10.5% at L, from 15.4 to 19.2% at M, from 23.1 to 28.0% at Q and from 30.8 to 33.2% at H[13]. In small versions, a few error-correction codewords only detect errors[10]. The “Recovers up to” column shows this real rate.
This rate counts codewords, not area: a damaged finder pattern can block reading, even under this threshold[10].
05What size to print?
The printed side is the number of modules times the size of one module, plus a 4-module quiet zone on each side[7].
DENSO WAVE recommends at least 4 printer dots per module: 0.17 mm on a 600 dpi laser printer, 0.33 mm on a 300 dpi thermal printer[8]. A version 1 on a laser printer thus measures about 3.57 mm without its quiet zone[6]: this is the “Smallest printable size” value.
DENSO WAVE’s example: 50 alphanumeric characters at level M require version 3, that is 29 modules. At 400 dpi and 4 dots per module, the module measures 0.254 mm, the code 7.366 mm, and 9.398 mm with its quiet zone[7].
To scan from farther away, the code must be larger. The explorer applies the site’s size rule, not yet measured by us: how it is calculated.
06How many different QR codes?
Each data codeword carries 8 bits: a version and a level therefore allow 2 to the power of (8 × number of data codewords) bit strings. For the chosen version and level:
Version and level 7-M
124 data codewords, that is 992 bits:
2992 ≈ 4.2 × 10298
A number with 299 digits. Change the version
Version 1 at level L carries 19 data codewords, that is 152 bits: 2152, about 5.7 × 1045 strings. That is nearly 17 million times the number of IPv6 addresses, which have 128 bits[12]. Version 40 at level L carries 23,648 bits: a number with 7,119 digits[13].
This is an order of magnitude: padding and the mask reduce the number of distinct messages. But no one assigns QR codes: they are calculated from their content, and cannot run out.
03Questions
Frequently
asked questions.
How many characters can a QR code hold?
At most 7,089 digits, 4,296 alphanumeric characters or 2,953 bytes, in version 40 at level L; an accented letter counts as 2 bytes. At level H, only 1,273 bytes fit.
What is the largest QR code version?
Version 40: 177 × 177 modules. There is no maximum printed size: only scanning sets the limit.
What is the version of a QR code?
The number of modules on a side: 21 in version 1, 4 more with each version, 177 in version 40. The generator picks the smallest one that holds the text.
How can I find the version of my QR code?
Count the modules along one side, without the quiet zone: version = (modules − 17) ÷ 4. Or drop the image into our checker, which shows the version it reads.
How many different QR codes exist?
An astronomical number: 2 to the power of 152, about 5.7 × 10 to the power of 45, for version 1 at level L alone, and a number with 7,119 digits in version 40. QR codes cannot run out.
Can a QR code hold an image or a video?
No: 3 KB at most, too little for a useful image or sound. The code then holds a link to the file.
Why is my QR code so dense?
Its content is long or its error correction is high. Shorten the link or lower the error correction: the version drops and the modules get larger.
04Sources
Sources
and dates.
Each claim in the guide refers to one of these sources. Figures marked “QR Samurai measurement” are recalculated at each build of the site.
- [1]
Information capacity and versions of the QR CodeDENSO WAVE, inventor of the QR codeNo date shown · accessed November 19, 2026
- [2]
QR Code StandardizationDENSO WAVESummary of the specification: maximum capacities, correction levels.No date shown · accessed November 19, 2026
- [3]
QR Code Model 1 and Model 2DENSO WAVENo date shown · accessed November 19, 2026
- [4]
History of QR CodeDENSO WAVENo date shown · accessed November 19, 2026
- [5]
Error Correction FeatureDENSO WAVENo date shown · accessed November 19, 2026
- [6]
FAQDENSO WAVEQuestions on character modes, the usable capacity of phones, sizes.No date shown · accessed November 19, 2026
- [7]
Point for determining the code areaDENSO WAVE4-module quiet zone and an example of the area calculation.No date shown · accessed November 19, 2026
- [8]
Point for setting the module sizeDENSO WAVEPrinter table and recommended module size.No date shown · accessed November 19, 2026
- [9]
Code QRFrench WikipediaRevision no. 240243056. Cited only in place of the ISO/IEC 18004 standard, which is not free.Date shown: October 10, 2026 · accessed November 19, 2026
- [10]
QR codeEnglish WikipediaRevision no. 1386207351, section “Design”. Cited only in place of the ISO/IEC 18004 standard, which is not free.Date shown: November 17, 2026 · accessed November 19, 2026
- [11]
UTF-8, a transformation format of ISO 10646 (RFC 3629)IETFSection 3: from U+0000 to U+007F, 1 byte; from U+0080 to U+07FF (including accented letters), 2 bytes.Date shown: November 2003 · accessed November 21, 2026
- [12]
IP Version 6 Addressing Architecture (RFC 4291)IETFSection 2: an IPv6 address has 128 bits.Date shown: February 2006 · accessed November 21, 2026
- [13]
Capacities, zones and codewords recalculated with the site’s encoder (uqr 0.1.3), codes read back by ZXing (zxing-wasm 3.1.7)QR Samurai measurementRedone at each build of the site. The 480 capacities (40 versions, 4 levels, 3 modes): the encoder accepts each one and refuses one character more. The zone map is compared module by module with the encoder’s. The 160 codes of the explorer (40 versions, 4 levels) are read back by ZXing.Date shown: November 21, 2026 · accessed November 21, 2026