How Much Data Can a QR Code Hold? - Inside Those Black-and-White Squares

About a 5-minute read

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

Data TypeMaximum CapacityEveryday Comparison
Numbers only7,089 digitsAbout 640 phone numbers
Alphanumeric4,296 charactersAbout 30 X (formerly Twitter) posts
Binary (8-bit)2,953 bytesAbout 3 KB of data
Kanji (Shift_JIS)1,817 charactersAbout 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 have "versions." Higher versions store more data.

VersionModule GridMax Digits (Numbers)Common Use
1 (smallest)21 x 2141Short URLs
537 x 37154Typical URLs
1057 x 57652Business card contact info
2097 x 972,061Long text
40 (largest)177 x 1777,089Bulk 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

Use CaseData InsideApproximate Size
LINE friend requestLINE URL (about 40 characters)About 40 bytes
PayPay / QR paymentPayment URL + tokenAbout 100-200 bytes
Website URLURL stringAbout 30-100 bytes
Wi-Fi loginSSID + password + encryption typeAbout 50-150 bytes
Business card (vCard)Name, phone, email, addressAbout 200-500 bytes
Airline boarding passFlight number, seat, passenger infoAbout 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 LevelRecoverable DamageEffect on CapacityBest For
L (Low)About 7%Maximum capacityClean environments (screens)
M (Medium)About 15%Slightly reducedGeneral printed materials
Q (Quartile)About 25%Noticeably reducedDirty environments
H (High)About 30%Minimum capacityQR codes with logos

At level H, a QR code still scans even if 30% of it is hidden. That is why companies can place their logo right in the center of a QR code. The trade-off is that stronger error correction means less room for data.

QR Codes vs. Barcodes

FeatureBarcode (1D)QR Code (2D)
Data capacityAbout 20 digits maxUp to 7,089 digits
Data directionHorizontal onlyBoth horizontal and vertical
Scan angleFront only360 degrees, any angle
Error correctionNoneYes (up to 30%)
Japanese supportNoYes

A barcode holds about 20 digits at most - just enough for a product ID like a 13-digit JAN code. A QR code stores 350 times more data and supports Japanese characters. When Denso Wave (a Japanese company) invented the QR code in 1994, handling kanji was a key design goal.

QR Code Security Risks

RiskHow It WorksHow to Stay Safe
Fake QR codesA sticker placed over the real codeWatch for suspicious stickers
PhishingCode links to a fake websiteCheck the URL after scanning
MalwareCode links to a malicious app downloadDo 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.

Books about QR codes and information technology are available on Amazon as well.

Share this article