Print size and contrast for QR codes
A printed QR code that is too small, too pale or pressed against an edge will not scan, and the problem usually shows up once the print run has been delivered. Three rules prevent most failures: match the size to the scanning distance, keep strong contrast between dark modules and a light background, and leave a white margin all around the code. The calculator below helps you apply the first two.
Size and contrast calculator
Enter the scanning distance and your two colours: the calculator gives the recommended minimum width and the contrast ratio.
- Recommended minimum width
- 10 cm
- Contrast ratio
- 21 : 1
Excellent for print.
Cautious rules of thumb to confirm with a printed test. The calculation runs in your browser: nothing is sent.
The distance ÷ 10 rule of thumb
A practical rule used by many printers is to make the code about one tenth of the scanning distance. A poster read from 2 metres needs a code about 20 cm wide; a table tent read from 30 cm, a code about 3 cm wide. For anything held in the hand, do not go below about 2 cm.
This rule assumes a sparse code, like one for a short link. A static code holding a long address has more modules: each module is smaller for the same overall size, so you need to go bigger. That is one more reason to use a short address.
Contrast: dark on light, always
QR code readers look for dark modules on a light background. Navy or burgundy on white works very well; pale yellow, light grey or pastels on white cause problems. Inverted codes (light on a dark background) are only read by some phones: avoid them on anything printed in large quantities.
The calculator measures the contrast ratio between your two colours, using the same formula as web accessibility guidelines. We treat a ratio below 3 as risky and aim for 7 or more for print: that is a cautious rule of thumb, not an official standard, and it leaves room for variations in ink and lighting.
The quiet zone
The QR code standard calls for an empty margin around the code, the quiet zone, four modules wide. Without it, the reader confuses the edge of the code with the design around it. Do not place text, frames or photos right against the pattern, and do not let the trimming eat into that margin.
Steps before sending files to the printer
- Measure the real distance from which people will see the code (on the floor, on a table, in a window).
- Work out the minimum size with the calculator and round up.
- Check the contrast of your colours; when in doubt, go back to black on white.
- Export the code as vector (SVG or PDF) so it stays sharp when enlarged.
- Print a proof at real size, on the actual paper, and scan it with at least two phones under the venue’s lighting.
Materials and finishes
A gloss laminate can create glare that blinds the camera under fluorescent lights or in the sun; a matte finish is safer. Heavily textured paper, fabric and raw wood can distort small modules: make the code larger and test on the material itself. On a curved surface such as a bottle, keep the code small relative to the curve so it stays almost flat to the camera.
A concrete example
A gym wants to show its class schedule on a poster at the back of the lobby, about 3 metres from where people walk. With the distance ÷ 10 rule, the code should be at least 30 cm wide. The first draft, with an 8 cm code at the bottom of the poster, would have forced members to walk right up to the wall. The designer enlarges the code and cuts back the decorative text.
Preparing the file for the printer
A good code can be damaged at the very last step, in the file sent to the printer. Place the code as vector artwork in your layout without cropping or stretching it, and make sure no effect is applied to it: drop shadow, transparency, gradient or filter. Tell your designer that the white margin is part of the code and must not be trimmed to save space.
If the printer converts colours, ask for a colour proof: a navy blue can come out lighter than expected on some papers. For very large formats, such as a banner or a shop window, first print a section of the code at real size to check that the module edges are sharp.
- Keep the code in a single solid colour, with no gradient.
- Do not overlap text or images onto the quiet zone.
- Archive the final code file with the date and the address it contains.
Frequently asked questions
Does the calculator send my colours anywhere?
No. The size and contrast calculation runs entirely in your browser; nothing is sent to our servers.
What is the minimum size for a QR code?
For something held in the hand, about 2 cm wide for a sparse code. Beyond that, apply the scanning distance ÷ 10 rule of thumb and test a printed proof.
Can a QR code be printed in colour?
Yes, as long as the modules are clearly darker than the background. A dark colour on white works; a pale colour or an inverted code causes problems.
Does a QR code need a white margin?
Yes. The standard calls for a quiet zone four modules wide around the code. Without it, scanning becomes unreliable.
PNG or SVG for the printer?
SVG or vector PDF stays sharp at any size. A PNG is fine for screens or small prints if its resolution is high enough.
Useful tools and pages
Create your first QR code today
Free forever, no card. Try Pro for 7 days whenever you like: your account goes back to Free on its own.
Create my first QR