How much data can a QR code hold? Every size, in numbers
The largest QR code holds up to 7,089 digits, 4,296 capital letters or 2,953 bytes of text. Most codes hold far less, and should. Here is the capacity of every size, worked out with the same library our generator uses, and what those numbers mean for the code you print.
The short answer
- Largest code: version 40, 177 × 177 squares. It holds 7,089 digits, 4,296 capitals and digits, or 2,953 bytes at error correction L.
- With the most error correction (H), the same code holds 3,057 digits, 1,852 capitals or 1,273 bytes.
- Smallest code: version 1, 21 × 21 squares, holds 17 bytes at L and 14 at M.
- A typical short link of 23 characters fits a 25 × 25 code. A long link with tracking tags needs 45 × 45, and a full contact card 61 × 61.
- One byte isn't always one letter. The largest code holds 2,953 English letters, 1,476 Arabic or Cyrillic letters, or 984 Chinese characters.
The largest QR code: version 40
QR codes come in 40 sizes, called versions. Version 1 is 21 squares wide, and each version adds 4, up to 177 squares at version 40. How much a version holds depends on two more things: what kind of characters you store, and how much error correction the code keeps.
| What you store | L (7%) | M (15%) | Q (25%) | H (30%) |
|---|---|---|---|---|
| Digits only | 7,089 | 5,596 | 3,993 | 3,057 |
Capitals, digits and space $ % * + - . / : | 4,296 | 3,391 | 2,420 | 1,852 |
| Any text, in bytes | 2,953 | 2,331 | 1,663 | 1,273 |
| Japanese kanji (kanji mode) | 1,817 | 1,435 | 1,024 | 784 |
The percentages are how much of the code can be damaged or covered and still be read. More error correction leaves less room for your content.
What counts as a character
A QR code stores text in one of a few modes, and the denser the mode, the more fits:
- Numeric: digits 0 to 9 only. The most compact, about 3⅓ bits a digit.
- Alphanumeric: 45 characters: digits, capital letters A to Z, the space and
$ % * + - . / :. About 5½ bits a character. No lower case. - Byte: anything else, as UTF-8 bytes. This is the mode for most links, Wi-Fi details and contact cards.
- Kanji: Japanese characters, 13 bits each. Few generators use it.
In byte mode, the number of characters depends on the language, because UTF-8 uses more bytes for some scripts. Our generator stores text as UTF-8 so every language and emoji keeps working, and here is what that means for the largest code at level L:
| Text in | Bytes each | Fit |
|---|---|---|
| English and other plain Latin letters | 1 | 2,953 |
| Accented letters (é, ü, ñ), Arabic, Cyrillic, Greek, Hebrew | 2 | 1,476 |
| Chinese, Japanese, Korean, Thai, Hindi | 3 | 984 |
| A simple emoji | 4 | 738 |
Accented text mixes both: in French or Spanish most letters take 1 byte and only the accented ones take 2. Some emoji, like flags and family groups, are several characters joined together and take 8 bytes or more.
Every common size, and what it holds
Most printed codes are between version 2 and version 10. This table shows how much each size holds at level M, the level our generator uses for a plain code. The last column is bytes at level H, the level it uses when a logo or icon sits in the middle.
| Version | Squares | Digits | Capitals | Bytes | With logo |
|---|---|---|---|---|---|
| 1 | 21×21 | 34 | 20 | 14 | 7 |
| 2 | 25×25 | 63 | 38 | 26 | 14 |
| 3 | 29×29 | 101 | 61 | 42 | 24 |
| 4 | 33×33 | 149 | 90 | 62 | 34 |
| 5 | 37×37 | 202 | 122 | 84 | 44 |
| 6 | 41×41 | 255 | 154 | 106 | 58 |
| 7 | 45×45 | 293 | 178 | 122 | 64 |
| 8 | 49×49 | 365 | 221 | 152 | 84 |
| 9 | 53×53 | 432 | 262 | 180 | 98 |
| 10 | 57×57 | 513 | 311 | 213 | 119 |
| 15 | 77×77 | 991 | 600 | 412 | 220 |
| 20 | 97×97 | 1,600 | 970 | 666 | 382 |
| 25 | 117×117 | 2,395 | 1,451 | 997 | 535 |
| 30 | 137×137 | 3,289 | 1,994 | 1,370 | 742 |
| 40 | 177×177 | 5,596 | 3,391 | 2,331 | 1,273 |
A generator picks the smallest version your content fits, so you never choose a version yourself. You choose it indirectly, by what you put in.
How long can a link in a QR code be?
In theory, 2,953 characters. In practice, every extra character makes the code denser. These are real examples, run through our generator:
| What the code holds | Length | Plain | With logo |
|---|---|---|---|
| A QR Code Spot short link | 23 | 25×25 | 29×29 |
| A short link on your own domain, in capitals | 32 | 25×25 | 29×29 |
| The same link in lower case | 32 | 29×29 | 33×33 |
| A home page | 22 | 25×25 | 29×29 |
| A page on the site | 37 | 29×29 | 37×37 |
| Wi-Fi name and password | 55 | 33×33 | 41×41 |
| The same page, with tracking tags | 107 | 45×45 | 57×57 |
| A full contact card (vCard) | 225 | 61×61 | 81×81 |
Two things stand out. The tracking tags alone took the code from 29 × 29 to 45 × 45. And writing a short link in capitals let it use the compact alphanumeric mode: HTTPS://GO.LAGOONCAFE.COM/K7M2XQ fits 25 × 25, while the same link in lower case needs 29 × 29. Web addresses aren't case sensitive in the domain, and our short links aren't either, so both open the same page.
Why a code that holds less scans better
A code printed at a given size has a fixed amount of room. More squares means each square is smaller, and small squares are what make a code slow or impossible to scan from a distance, in dim light or on a crumpled flyer. The table shows each square in a code printed 3 cm wide, and how wide each code must be printed for its squares to match the short link's:
| Code | Square at 3 cm | Width to match |
|---|---|---|
| Short link 25 × 25 | 1.20 mm | 3.0 cm |
| Wi-Fi 33 × 33 | 0.91 mm | 4.0 cm |
| Link with tags 45 × 45 | 0.67 mm | 5.4 cm |
| Contact card 61 × 61 | 0.49 mm | 7.3 cm |
| Largest code 177 × 177 | 0.17 mm | 21.2 cm |
So a contact card needs to be printed about 2.4 times as wide as a short link to scan as easily. Our printing guide gives a rule of thumb, a code about a tenth of the scanning distance, which works for simple codes. For a dense code, print bigger.
Error correction costs room
Error correction is spare data that lets a phone read a code that's scratched, dirty or partly covered. The four levels keep roughly 7% (L), 15% (M), 25% (Q) and 30% (H) of the code recoverable. The price is capacity: the largest code holds 2,953 bytes at L but 1,273 at H.
- A plain code: level M. It survives normal wear and keeps the squares big. That's what our generator uses.
- A logo or icon in the middle: level H, because the logo covers squares. Our generator switches to H as soon as you add one, and checks the code still scans before you can download it. We explain how in what's inside our QR code engine.
- Level L only makes sense for screens and clean prints where nothing covers the code.
How to make a code hold less
- Use a short link. An editable code stores a 23-character link whatever the page behind it, and you can change the page later without reprinting.
- Drop tracking tags you don't need. An editable code counts scans without them.
- Link to the page, not the content. A long text, a menu, a PDF or a photo doesn't belong inside the code. Put it online and link to it.
- Trim contact cards. Every field adds squares. Name, phone and email are usually enough, and a vCard code with fewer fields scans more easily.
- Leave the white border. The 4-square quiet zone around a code isn't part of the data, but a phone needs it to find the code.
Our generator shows the size of each code as you make it, so you can see the difference before you print.
Questions
How much data can a QR code hold?
The largest QR code, version 40 with 177 × 177 squares, holds up to 7,089 digits, 4,296 capital letters and digits, or 2,953 bytes of any text at the lowest error correction (L). At the highest level (H) that falls to 3,057 digits, 1,852 capitals or 1,273 bytes.
How long can a URL in a QR code be?
Up to 2,953 characters in theory, at version 40 and error correction L. In practice keep it short: a 23-character short link fits a 25 × 25 code, while a 107-character link with tracking tags needs 45 × 45, and the squares get smaller at the same print size.
How many characters fit in the smallest QR code?
Version 1 has 21 × 21 squares and holds 41 digits, 25 capitals and digits, or 17 bytes at level L. At level M, the usual level for a plain code, it holds 14 bytes, too few for most web addresses.
Does a QR code hold less in Chinese, Arabic or with emoji?
Yes. Text is stored as UTF-8 bytes. An English letter takes 1 byte, Arabic, Cyrillic and Greek letters take 2, Chinese, Japanese and Thai characters take 3, and a simple emoji takes 4. So the largest code holds 2,953 English letters but only 984 Chinese characters. Japanese can use the kanji mode instead, up to 1,817 characters.
Does a logo reduce how much a QR code can hold?
Yes, indirectly. A logo covers part of the code, so it needs error correction H, which keeps about 30% of the code as spare data. At version 40, level H holds 1,273 bytes against 2,953 at level L, about 43%.
Can a QR code store a file, a photo or a PDF?
Not in any useful way. 2,953 bytes is under 3 KB, smaller than a thumbnail photo. A QR code for a PDF, photo or video holds a link to the file stored online, and the phone downloads it from there.
More from the blog
Make a code that holds just enough
Free static codes with no account, or editable codes with a short link you can change later.