QR Code Generator › Guides

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

Open the tool: QR Code Generator

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.

Our generator, tested from its screen

The first table on this page came from the library itself. To check what a visitor actually gets, we used our QR code generator page in Chromium 157: we pasted links of different lengths into the text box, picked each error-correction level from the menu, pressed Download SVG and counted the modules in the file, then measured the preview picture at each PNG size (the Download PNG button saves that same picture).

LowMediumHigh20 characters25252960 characters333345100 characters374157200 characters535777300 characters616989500 characters7785113
Modules per side at Low, Medium and High — chart drawn from the table below.
Link lengthLowMediumQuartileHigh
20 characters25252529
60 characters33333745
100 characters37414957
200 characters53576577
300 characters61698189
500 characters7785101113

You can download every value we used. Each file is plain CSV with a header row, so it opens in any spreadsheet:

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)

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. Chromium and Wi-Fi are trademarks of their owners; GlowHalo is not affiliated with them.

More guides

Text & developerIs minifying JSON still worth it once gzip or Brotli is on?JSON indented with 2 spaces was 26 to 140% bigger than minified in our test. After gzip the gap was 3 to 21%, and after Brotli 2 to 8%. When minifying matters and when it does not.Read guide →Text & developerWhy do word counters disagree? One text counted four ways in seven languagesWe counted the same document with four common rules. In English they were less than 0.4% apart. In French the gap reached 10%, and in Japanese one rule found 92 words and another 2,171.Read guide →Text & developerDoes Base64 really make data 33% bigger? We measured it before and after compressionBase64 added about 33% to every file we tried. After gzip the cost was under 1% for images and 40 to 65% for text. What that means for data URIs, JSON and email.Read guide →