Blog · How it works ·

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

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.

Capacity of a version 40 QR code by character type and error correction level
What you storeL (7%)M (15%)Q (25%)H (30%)
Digits only7,0895,5963,9933,057
Capitals, digits and space $ % * + - . / :4,2963,3912,4201,852
Any text, in bytes2,9532,3311,6631,273
Japanese kanji (kanji mode)1,8171,4351,024784

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:

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:

Characters that fit in a version 40 QR code at level L, by script
Text inBytes eachFit
English and other plain Latin letters12,953
Accented letters (é, ü, ñ), Arabic, Cyrillic, Greek, Hebrew21,476
Chinese, Japanese, Korean, Thai, Hindi3984
A simple emoji4738

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.

QR code capacity by version at error correction M, and bytes at H
VersionSquaresDigitsCapitalsBytesWith logo
121×213420147
225×2563382614
329×29101614224
433×33149906234
537×372021228444
641×4125515410658
745×4529317812264
849×4936522115284
953×5343226218098
1057×57513311213119
1577×77991600412220
2097×971,600970666382
25117×1172,3951,451997535
30137×1373,2891,9941,370742
40177×1775,5963,3912,3311,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:

Size of real QR codes by content, plain (level M) and with a logo (level H)
What the code holdsLengthPlainWith logo
A QR Code Spot short link2325×2529×29
A short link on your own domain, in capitals3225×2529×29
The same link in lower case3229×2933×33
A home page2225×2529×29
A page on the site3729×2937×37
Wi-Fi name and password5533×3341×41
The same page, with tracking tags10745×4557×57
A full contact card (vCard)22561×6181×81
A simple QR code of 25 by 25 squares holding a short link
Short link: 25 × 25
A QR code of 33 by 33 squares holding Wi-Fi details
Wi-Fi: 33 × 33
A dense QR code of 45 by 45 squares holding a link with tracking tags
Link with tags: 45 × 45
A very dense QR code of 61 by 61 squares holding a contact card
Contact card: 61 × 61

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:

Size of each square in a 3 cm QR code, and the width needed to match a short link's squares
CodeSquare at 3 cmWidth to match
Short link
25 × 25
1.20 mm3.0 cm
Wi-Fi
33 × 33
0.91 mm4.0 cm
Link with tags
45 × 45
0.67 mm5.4 cm
Contact card
61 × 61
0.49 mm7.3 cm
Largest code
177 × 177
0.17 mm21.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.

How to make a code hold less

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.

A menu in your guests' languages: how to add them, and what to translate firstHow one printed code shows each guest the menu in their phone's language, which languages to add, what gets translated and what doesn't, and how to write translations guests trust.Don't put a PDF behind your menu QR code: what to do insteadWhy a PDF menu is hard to read on a phone, what guests look for in the first ten seconds, and how to make a menu page you can change any time while the printed code stays the same.Your own domain in your QR codes: what it changes, and what it doesn'tWhy the address a phone shows before you tap matters, how go.yourbusiness.com links work, subdomain or whole domain, and the promises and trade-offs that come with it.

All posts →

Make a code that holds just enough

Free static codes with no account, or editable codes with a short link you can change later.