QR Codes on Invoices: Print Size, a 22% Logo, and the Amount to Encode
A 37-character payment link needs 16.4 mm of printed width at a 0.4 mm module and 56 characters need 19.6 mm; a 24-character link fits in 14.8 mm. Adding a logo forces error correction to H and widens the same code by about 20%, while the white panel covers 7.4% of the surface and leaves the finder patterns clear. Print dark modules on white at 4.5 : 1 contrast or better and never invert. The amount in the code is the VAT-inclusive total (₩1,000,000 plus 10% is ₩1,100,000), not the net.
Key takeaways
- 1The payload sets the version and the version sets the width. At error correction H, 24 characters are version 3 (29 modules, 14.8 mm), 37 characters are 16.4 mm, 56 characters are version 6 (41 modules, 19.6 mm) and 65 characters are 21.2 mm. Without a logo and at level M the same links come out one or two versions smaller.
- 2Printed width is (modules + 8) × module size, because the standard asks for a four-module quiet zone on each side. The module floor is 0.4 mm on coated stock and 0.5 mm on uncoated, and scan distance runs to about ten times the width. A 20 mm footer on an A4 invoice takes 56 characters with a logo; 15 mm on a receipt takes about 24.
- 3The logo is 22% of the width and its white panel is 27.2% of the width and 7.4% of the area. On a version 6 symbol it covers 12.3 modules, about 9.0% of the symbol, and never touches a finder pattern. H recovers roughly 30% of codewords, which is a different unit from covered modules but leaves real headroom.
- 4Contrast is measured in greyscale. Black on white is 21 : 1, navy 10.4 : 1, blue 5.2 : 1, green 3.3 : 1 and amber 2.2 : 1. Keep 4.5 : 1 as the floor, and do not invert: iPhones read inverted codes, many Android cameras and most payment terminals do not.
- 5The downloaded PNG carries a two-module border against the standard's four. At a 0.4 mm module the compliant footprint of a version 6 code is 19.6 mm against the file's 18.0 mm, so the layout adds 0.8 mm of white per side.
- 6The amount belongs to the invoice, not to the code's convenience. A ₩1,100,000 invoice that encodes ₩1,000,000 collects 100,000 short, and the same applies to €1,210 of a Spanish invoice or ¥110,000 of a Japanese one.
A QR code that reads perfectly on a laptop screen is often the one that fails on paper. Three things cause it, and none of them is the design: the payload is long enough that each module shrinks, the ink and the paper sit too close in brightness, or the code has too little white space around it. This guide works those three out with the numbers the QR code generator actually produces, so that an invoice, a receipt or a label can be sized before it goes to the printer. The generator gained logo upload on 22 November 2026, so the cost of a logo — in printed width — is worked out here as well.
Every figure below comes from two places. The QR versions and module counts come from running the same qrcode library the generator page runs; the structural rules and the minimum module size come from ISO/IEC 18004 and a 2026 study of QR printing. The arithmetic is written out, so any link can be re-checked against the tables.
1. The length of the payload sets the smallest size the code can be printed at
A QR symbol grows in versions. Version 1 is 21 modules on a side, and every version adds 4 modules until version 40 at 177. Put the same payload into a smaller printed width and each module gets smaller, and small modules are where scanning starts to fail. So "how many millimetres does my QR code need" is really two questions: how many characters are in the link, and how much error correction is switched on.
These are the figures the generator returns with error correction at H (the maximum, 30% recovery). The module column counts the eight modules of quiet zone as well.
| Payload (characters) | QR version | Modules incl. quiet zone | Minimum print width at 0.4 mm |
|---|---|---|---|
| https://smartpaycalc.com (24) | 3 | 37 | 14.8 mm |
| https://example.com/pay/INV-2026-0142 (37) | 4 | 41 | 16.4 mm |
| https://example.com/pay/invoice/2026-11-0142?amt=1100000 (56) | 6 | 49 | 19.6 mm |
| The same link with &cur=KRW&ref=nov (65) | 7 | 53 | 21.2 mm |
Without a logo, error correction stays at M (15%) and the same payloads come out one or two versions smaller. The 56-character link is then version 4, 33 modules, 16.4 mm; the 65-character one is version 5, 37 modules, 18.0 mm. Adding the logo therefore widens the printed code by about 20% for the same link.
Shortening the link is the reliable fix. Point the code at https://yourdomain.com/p/1142 and 24 characters keeps you at version 3, 29 modules, where even a 15 mm print leaves room for the logo. Uppercase letters and digits alone let a URL use QR's alphanumeric mode and drop a version at the same character count, but a path that is case-sensitive on the server will return a 404, so it is not worth doing for a payment link.
2. Printed width is (modules + 8) × module size
The standard asks for a quiet zone of at least four modules on every side, which is where the extra eight modules come from. The module size itself is a print decision. For a phone held close, 0.4 mm per module is the practical floor; on uncoated paper, labels or anything where ink spreads, 0.5 mm. A 2026 study of thermal-transfer printing puts the recommendation for close-range mobile scanning at 0.4–0.5 mm and warns that below about 0.36 mm modules start to merge.
Minimum printed width from those floors, with scan distance as roughly ten times the width under good light:
| QR version | Modules incl. quiet zone | Minimum at 0.4 mm | Minimum at 0.5 mm | Working scan distance |
|---|---|---|---|---|
| 3 | 37 | 14.8 mm | 18.5 mm | 15 cm |
| 4 | 41 | 16.4 mm | 20.5 mm | 16 cm |
| 6 | 49 | 19.6 mm | 24.5 mm | 20 cm |
| 7 | 53 | 21.2 mm | 26.5 mm | 21 cm |
| 10 | 65 | 26.0 mm | 32.5 mm | 26 cm |
Applied to the places an invoice actually puts a code:
| Where it goes | Width available | Largest version that fits | Longest link with a logo |
|---|---|---|---|
| A4 invoice footer, 20 mm | 50 modules | Version 6 (41) | about 56 characters |
| 58 mm receipt paper, 15 mm | 37 modules | Version 3 (29) | about 24 characters |
| 40 × 30 mm label, 20 mm | 50 modules | Version 6 (41) | about 56 characters |
| Window sticker, 60 mm | 150 modules | Version 31 (141) | no real limit |
Twenty millimetres at the foot of an A4 invoice takes a 56-character link with a logo. On a receipt where only 15 mm is free, the link has to come down to about 24 characters, or the logo has to go: without it, the same 24-character link is version 2, 25 modules, and prints at 13.2 mm.
3. The logo takes 22% of the width and its white panel 7.4% of the area
The generator places the logo at 22% of the code's width, centred, on a white rounded panel with 12% padding around the image. In the 1024 px output that is a 225 px logo and a 279 px panel: 27.2% of the width, 7.4% of the area.
On a version 6 symbol the panel is 12.3 modules across, so about 9.0% of the symbol's modules sit under it. Error correction at H recovers roughly 30% of codewords, which leaves headroom, though the two numbers are not the same unit — recovery is counted in codewords, damage in modules — and the useful part is the placement: the panel sits in the middle, well clear of the three finder patterns the scanner looks for first.
Push the logo larger and the numbers move quickly. At 30% of the width the panel is 37.2% of the width and 13.8% of the area; at 35% it is 43.4% and 18.8%. Past that, test at the real print size rather than trusting the margin.
What actually breaks a logo code is rarely the logo's size. It is small print where the logo smears into the panel, a background colour that fails section 4, or glare from coated stock. Because the generator forces error correction to H while a logo is set, removing the logo also lets the level fall back to M, which is where the 20% width saving in section 1 comes from.
4. Keep the modules dark, and measure the contrast
A scanner converts the image to greyscale and looks for light-dark edges, so two colours that look different to you can be identical to the camera if their brightness matches. These are the relative-luminance contrast ratios of values the generator's colour pickers offer.
| Module colour | Background | Contrast |
|---|---|---|
| #000000 black | white | 21.0 : 1 |
| #1E3A8A navy | white | 10.4 : 1 |
| #2563EB blue | white | 5.2 : 1 |
| #E11D48 rose | white | 4.7 : 1 |
| #16A34A green | white | 3.3 : 1 |
| #94A3B8 grey | white | 2.6 : 1 |
| #F59E0B amber | white | 2.2 : 1 |
Treat 4.5 : 1 as the floor and 7 : 1 as the target. Amber and light grey are already in the risky range. ISO/IEC 15415, the grading standard print shops use, agrees in its own units: symbol contrast of 70% or more is grade 4, 40% is the bottom of grade 2, and below 20% the symbol fails.
Inversion is the other trap. The QR standard describes dark modules on a light background and records no polarity flag inside the symbol. An iPhone reads inverted codes; many Android camera apps and most embedded readers — payment terminals, access-control pads, warehouse guns — decode once, expecting dark on light, and give up. A code that works on your phone and not on the customer's is the usual outcome. On a dark layout, put the code on a light panel that includes the full quiet zone, and print dark modules on that.
Red and orange deserve their own line. Many scanners illuminate with red light, so red-toned modules collapse into the background. GS1's colour guidance for its checkout codes says the same: dark elements on a light background, avoid red and orange, and do not invert.
5. The downloaded PNG carries a two-module border
The generator exports the code with two modules of white around it, while the standard asks for four. At a 0.4 mm module a version 6 symbol is 16.4 mm wide and its compliant footprint 19.6 mm, which is 1.6 mm of clear white on each side; the file supplies 0.8 mm of that, so the layout has to add another 0.8 mm per side. Inside a bordered table cell, that is the space to reserve.
Resolution is not the constraint. At 20 mm the 1024 px file prints at about 1,300 dpi, and at 300 mm a module measures 6.7 mm with 22.8 file pixels behind it, so the edge is as clean as the paper allows. The generator exports PNG only, so a large sign that a print shop wants as vector art needs a different tool.
6. The amount in the code is the VAT-inclusive total
If the code opens a payment page that will accept a pre-filled amount, the number to encode is the invoice total, not the net. On a Korean invoice the supply amount of ₩1,000,000 with 10% VAT becomes ₩1,100,000, and a code carrying ₩1,000,000 collects ₩100,000 short, which then has to be chased.
| Market | Tax on the invoice | Net to total | Withholding on a payment to an individual |
|---|---|---|---|
| Korea | VAT 10% | ₩1,000,000 → ₩1,100,000 | 3.3% on personal-service income |
| Japan | Consumption tax 10% (8% reduced) | ¥100,000 → ¥110,000 | 10.21% on fees and royalties |
| Germany | VAT 19% (7% reduced) | €1,000 → €1,190 | none on domestic B2B services |
| Spain | VAT 21% | €1,000 → €1,210 | 15% IRPF (7% for the first three years) |
| United Kingdom | VAT 20% | £1,000 → £1,200 | none outside construction CIS |
| United States | No federal VAT; state sales tax | depends on state and item | none; 1099-NEC reporting only |
Withholding does not change the invoice. The document shows the total, and the payer deducting tax is a separate event that decides what lands, not what you bill. The Korean 3.3% settlement and the May refund are worked through in the 3.3% invoice guide.
If the client is abroad, fix one currency for both the invoice and the link. A dollar invoice that opens a won payment page shows the customer a second, exchange-rate number, and the mismatch becomes a query.
One European detail belongs in this section. The EPC QR code that euro-area banking apps read for a SEPA transfer — the Girocode in Germany — is fixed at error correction M and version 13, so a logo, which forces H, produces a different code from the one the bank app expects. Build that one without a logo, and test it in the app before the invoice goes out.
7. What the code cannot do
- It cannot be edited after printing. This generator writes the URL into the symbol — a static code — so a changed link means a reprint. Point it at a permanent address you control, not a temporary host.
- It cannot count scans. No redirect server sits in the middle, which is also why nothing expires. If you need the number, count it at the payment page.
- A Wi-Fi code carries the password in plain text. Fine taped to a wall in the shop, not fine to post as a photo.
- The logo must be uploaded as a file, so start with an original large enough for print resolution.
8. Seven checks before the print run
- Print one sheet at the exact final size. A screen preview is not a proof.
- Scan with an iPhone and an Android phone. One device hides polarity and old-camera problems.
- Scan once in dim light. Shop lighting and outdoor light are not the same.
- Cover the edge of the code with a thumb. It is the fastest test of whether the error correction has real headroom.
- If the piece will be laminated or shrink-wrapped, scan it after coating. Gloss adds glare and a curve moves the focal plane.
- Measure the scan distance you actually need. A 20 mm code is good to about 20 cm.
- If the code sits inside a table, check that 1.6 mm of white survived around it.
Sources
- QR code generator — the tool these figures come from
- DENSO WAVE — QR Code standardization — versions 1–40, four modules per version, L/M/Q/H recovery rates
- ISO/IEC 18004 — QR symbol structure and the four-module quiet zone
- ISO/IEC 15415:2024 — 2D print quality grading and symbol contrast
- Majnarić et al., Print Quality Assessment of QR Code Elements Achieved by the Digital Thermal Transfer Process, Journal of Imaging 2026, 12(2), 86 — 0.4–0.5 mm modules recommended, risk below 0.36 mm
- GS1 — colours for a QR code with GS1 Digital Link — dark elements, avoid red and orange, no inversion
- EPC — Quick Response Code guidelines for SEPA credit transfers (EPC069-12) — the payment QR European banking apps read
- Korean National Tax Service — 10% VAT, 3.3% withholding on personal-service income
Next step: run your own numbers
Frequently asked questions
Can I change the link after the code is printed?+
No. The generator writes the URL straight into the symbol, so it is a static code with no redirect server behind it. Nothing expires, and nothing can be edited either: a changed link means a new print run. Point the code at a permanent address on a domain you control, and if the payment page moves, keep the old address redirecting.
Does a logo stop the code from scanning?+
Not at the size the generator uses. The logo occupies 22% of the width and its white panel covers 7.4% of the surface, while level H recovers around 30% of codewords. The risks are a small print where the logo smears, a dark or low-contrast brand colour behind it, and glare from coated paper. Print one copy at the final size and scan it with two different phones.
What is the smallest size a QR code can be printed at?+
It depends on the payload, not on the code itself. With 0.4 mm modules, a 24-character link needs 14.8 mm, a 37-character link 16.4 mm and a 56-character link 19.6 mm of width, quiet zone included. On uncoated paper use 0.5 mm modules, which adds about 25% to each of those widths.
Should the QR code carry the amount?+
If the payment page accepts a pre-filled amount, yes, and it should carry the invoice total including tax. A code that opens a page showing the net invites the customer to pay the net, and the difference has to be invoiced again. If the payment provider does not support amounts in the link, point the code at the invoice page and let the customer confirm the figure there.
Why does my QR code scan on an iPhone but not on an Android phone?+
Usually because the code is inverted — light modules on a dark background. Apple's camera tries both polarities; many Android cameras and most embedded readers decode once, expecting dark on light. The second cause is contrast that looks fine to the eye, and the third is print size below the minimum for the payload. Fix the polarity first, then the contrast, then the width.
Do I always need error correction H?+
No. M is the default and is enough for a clean print on white paper, and it saves one or two versions — about 20% of printed width on the example links. Use H when there is a logo, when the code goes on a label or packaging that gets handled, or when the print quality is uncertain. The generator switches to H by itself while a logo is set.
Why does the downloaded PNG have such a thin white border?+
The export uses a two-module margin, while ISO/IEC 18004 asks for four. At a 0.4 mm module, two modules are 0.8 mm, so the layout has to add another 0.8 mm of white on each side and the finished code ends up 19.6 mm wide for a version 6 symbol. Inside a bordered table cell or a coloured panel that margin is the difference between a code that scans and one that needs reprinting.