Guides › Text & developer

How big should a printed QR code be? What data length and error correction do to it

A QR code that scans instantly on screen can fail on a poster across the room or on a business card printed slightly blurred. Whether it scans depends mostly on one number: how many small squares, called modules, it has to fit into the space you give it. That number is decided by the amount of data and the error-correction level. We generated codes for five real-world payloads at every level with the same library our QR code generator uses and counted the modules.

Short answer: keep the content short. A 20-character web address produced a 25 × 25 grid; a 123-character tracking link needed 41 to 61 modules per side depending on the error-correction level. Fewer modules means each one can be printed larger, which is what makes a code easy to scan.

Versions, modules and error correction in one paragraph

QR codes come in 40 sizes called versions. Version 1 is 21 × 21 modules and each step adds 4 modules per side, up to 177 × 177 for version 40. A generator picks the smallest version that holds your data. Error correction adds redundant data so a code can still be read when part of it is dirty, damaged or covered: according to DENSO WAVE, the inventor of the QR code, level L can restore about 7% of the codewords, M about 15%, Q about 25% and H about 30%. More redundancy means more data to store, so a higher level can push the code into a larger version.

What we measured

Each payload was encoded as UTF-8 bytes in byte mode, letting the library choose the smallest version. The cell shows the version and the grid size in modules.

PayloadBytesL (7%)M (15%)Q (25%)H (30%)
Short URL https://glowhalo.org20v2 · 25v2 · 25v2 · 25v3 · 29
Wi-Fi login (network name and password)47v3 · 29v4 · 33v5 · 37v6 · 41
Product URL with one parameter61v4 · 33v4 · 33v6 · 41v7 · 45
Same URL with five UTM tracking tags123v6 · 41v8 · 49v9 · 53v11 · 61
Contact card (vCard with phone, email, address)196v9 · 53v10 · 57v12 · 65v15 · 77

What the table tells you

From modules to centimetres

The printed width of a code is the number of modules plus a quiet zone, a blank margin of 4 modules on each side that scanners need to find the edges. So a version 4 code (33 modules) needs 41 modules of width in total. Printed 2.5 cm wide, each module is about 0.6 mm. A version 11 code (61 + 8 = 69 modules) at the same width has modules of only 0.36 mm, small enough that slight ink spread or a phone camera's focus limit can make neighbouring modules blur together.

Grid (incl. quiet zone)Module size at 2.5 cmModule size at 4 cm
25 + 8 = 330.76 mm1.21 mm
33 + 8 = 410.61 mm0.98 mm
49 + 8 = 570.44 mm0.70 mm
61 + 8 = 690.36 mm0.58 mm

Many printing guides use a rough rule that the scanning distance should be no more than about ten times the code's width: a code meant to be scanned from 1 metre away should be at least 10 cm wide. Treat that as a starting point and test with an actual phone at the actual distance.

Checklist before you print

  1. Shorten the content: a short URL, no unnecessary parameters.
  2. Pick error correction by environment: M for screens, flyers and cards; Q or H for outdoor signs, stickers on products, or if you plan to put a small logo in the middle (the logo covers modules that error correction must rebuild).
  3. Download as SVG for print. Our generator offers SVG, which stays sharp at any size; a small PNG enlarged by a print shop can blur.
  4. Keep the quiet zone white and keep strong contrast: dark modules on a light background. Inverted (light on dark) codes are not read by every scanner.
  5. Print a test copy at the final size and scan it with two different phones, in the lighting where it will be used.
  6. Check where the link goes on a phone that is not logged in to your accounts.

Common questions

Do QR codes expire?

A QR code is just encoded text and does not expire. Codes that "stop working" usually point to a redirect service whose subscription ended. A code that contains your own URL works as long as that URL does.

Can I put a logo in the middle?

Yes, if you raise the error-correction level and keep the logo small, so the remaining modules can still be decoded. Always test the final printed version, because a logo removes data on purpose.

Why did my code change when I only added one character?

If the extra character pushed the data past the capacity of the current version, the generator moved to the next version, which has a different grid and pattern. That is normal.

References

  1. DENSO WAVE: QR Code error correction feature
  2. DENSO WAVE: QR Code version (size) and information capacity
  3. ISO/IEC 18004:2024 QR Code bar code symbology specification
  4. qrcode-generator by Kazuhiko Arase (the library our tool uses)

Written and checked by Ria Kim for GlowHalo; figures without a source link come from the steps shown on this page. Companion tool: QR Code Generator. Spotted an error? Write to help@glowhalo.org. “QR Code” is a registered trademark of DENSO WAVE INCORPORATED.

More guides

Text & developerUUID v4 or v7 as a database primary key? We inserted a million rows of eachRandom v4 keys were 3–4.7 times slower to insert than time-ordered v7 keys in our SQLite test. What causes the gap and when it matters.Read guide →Text & developerIs your random picker really fair? Modulo bias, measured on 6.2 million drawsA common shortcut made eight characters 25% more likely than the rest in our test. How fair random picks are made, and how to check a tool.Read guide →Text & developerUp 20%, down 20%, and you've lost money: five percentage traps, worked throughWe ran common percentage mistakes through our calculator: why +20% then -20% leaves 96, why 3% to 4% is a 33% rise, and how to remove tax from a price correctly.Read guide →