Last updated:
How Much Data Can a QR Code Hold? - Inside Those Black-and-White Squares
Paying at a convenience store, boarding a train, adding a friend on LINE. You use QR codes every day, but do you know how much data fits inside those tiny black-and-white squares? The answer: up to about 1,800 kanji characters. That is roughly 4.5 pages of Japanese manuscript paper packed into one small square.
Data Capacity of a QR Code
The figures below are the ceilings for version 40, the largest size, with error correction set to the weakest level (L). These are the standard values as of 2026. Real QR codes are built at much smaller versions, so they almost never come close to these numbers.
| Data Type | Maximum Capacity | Everyday Comparison |
|---|---|---|
| Numbers only | 7,089 digits | About 640 phone numbers |
| Alphanumeric | 4,296 characters | About 15 X (formerly Twitter) posts of 280 characters |
| Binary (8-bit) | 2,953 bytes | About 3 KB of data |
| Kanji (Shift_JIS) | 1,817 characters | About 4.5 manuscript pages |
Numbers-only mode fits 7,089 digits, but kanji drops to 1,817 characters. As explained in Characters vs. Bytes, kanji takes more bytes per character, so fewer characters fit in the same space.
QR Code Versions and Sizes
QR codes come in versions numbered 1 through 40, and a higher version stores more data. Each side starts at 21 modules for version 1 and grows by 4 modules per step, so the number of modules per side is 4 x version + 17. The capacities in the table below are numbers-only ceilings at the weakest error correction level (L).
| Version | Module Grid | Max Digits (Numbers, Level L) | Common Use |
|---|---|---|---|
| 1 (smallest) | 21 x 21 | 41 | Short URLs |
| 5 | 37 x 37 | 255 | Typical URLs |
| 10 | 57 x 57 | 652 | Business card contact info |
| 20 | 97 x 97 | 2,061 | Long text |
| 40 (largest) | 177 x 177 | 7,089 | Bulk data (rarely used) |
Version 40 is made up of 177 x 177 = 31,329 black-and-white modules. In practice, almost nobody uses version 40. The more data you pack in, the bigger and more complex the code becomes, making it harder for phone cameras to scan.
What Everyday QR Codes Actually Contain
Here is what the QR codes you meet every day are carrying, organized by use case. The sizes are rough estimates based on the length of the URLs and parameters seen in 2026, not values that the services publish as specifications (for some of these uses, no specification is public at all).
| Use Case | Data Inside | Approximate Size |
|---|---|---|
| LINE friend request | LINE URL (about 40 characters) | About 40 bytes |
| PayPay / QR payment | Payment URL + token | About 100-200 bytes |
| Website URL | URL string | About 30-100 bytes |
| Wi-Fi login | SSID + password + encryption type | About 50-150 bytes |
| Business card (vCard) | Name, phone, email, address | About 200-500 bytes |
| Airline boarding pass | Flight number, seat, passenger info | About 100-300 bytes |
Most QR codes you scan every day use less than 10% of the maximum capacity. A LINE friend request is about 40 bytes - just 1.4% of the 2,953-byte limit.
Error Correction in QR Codes
One of the coolest features of QR codes is that they still work even when part of the image is dirty or covered.
| Error Correction Level | Recoverable Share | Data That Fits at the Same Size | Best For |
|---|---|---|---|
| L (Low) | About 7% | The most | Clean environments (screens) |
| M (Medium) | About 15% | Slightly less | General printed materials |
| Q (Quartile) | About 25% | Considerably less | Dirty environments |
| H (High) | About 30% | The least | QR codes with logos |
These percentages are not the share of the area you can cover up. They describe how many of the codewords (the units the data is split into, 8 bits each) can be restored. At level H, the original data can still be recovered when roughly three codewords in ten are unreadable, which is what lets companies lay a logo over the center of a QR code. Note, though, that if the finder patterns (the three large squares in the corners) are damaged, the scanner cannot lock onto the code in the first place, so recovery never gets a chance. That keeps the area you can cover to the middle of the symbol. And because stronger error correction leaves less room for data at the same size, the choice is a trade-off between tolerance for dirt and how much you can store.
QR Codes vs. Barcodes
| Feature | Barcode (1D) | QR Code (2D) |
|---|---|---|
| Data capacity | About 20 alphanumeric characters | 7,089 digits / 4,296 alphanumeric characters |
| Data direction | Horizontal only | Both horizontal and vertical |
| Scan angle | Front only | 360 degrees, any angle |
| Error correction | None | Yes (up to 30%) |
| Japanese support | No | Yes |
A barcode holds about 20 alphanumeric characters at most - just enough for a product ID such as a 13-digit JAN code. A QR code takes 4,296 alphanumeric characters, so on a like-for-like comparison it carries more than 200 times as much, and it can hold kanji and kana directly.
That gap is exactly why the QR code exists: barcodes were no longer big enough for the factory floor. It was announced in 1994 by Denso (the QR code business is handled by Denso Wave today), and the work was done by a two-person team led by Masahiro Hara. The name stands for Quick Response, because the design aimed at reading speed rather than sheer capacity. The square finder patterns in three corners are the heart of that: their black-and-white widths follow a 1 : 1 : 3 : 1 : 1 ratio, a pattern that hardly ever turns up elsewhere in print. A scanner can therefore pin down the position of the code no matter which direction it sweeps from, which is what makes reading from any angle possible.
QR Code Security Risks
| Risk | How It Works | How to Stay Safe |
|---|---|---|
| Fake QR codes | A sticker placed over the real code | Watch for suspicious stickers |
| Phishing | Code links to a fake website | Check the URL after scanning |
| Malware | Code links to a malicious app download | Do not scan unknown QR codes carelessly |
QR codes are convenient, but their weakness is that you cannot see what is inside before scanning. A written URL lets you spot a suspicious site, but a QR code hides it until you scan. Just like password length and security, balancing convenience and safety matters.