Guides

Printing QR Codes That Scan: Size, Contrast and Format

Published · 5 min read

A QR code that works perfectly on your screen can fail once it is printed. It may be too small for the distance people stand from it, squeezed against a photo, printed in a pale color, or exported as a blurry low-resolution image. Reprinting a batch of flyers or a shop sign because the code does not scan is an expensive way to learn this.

This guide walks through the decisions that matter before you send a QR code to print: physical size, the empty margin around the code, colors, error correction, the difference between static and dynamic codes, and which file format to hand to your printer.

Choose the size from the scanning distance

The right size depends mainly on how far away people will be when they point their phone at the code. A widely used rule of thumb is a ratio of about 10 to 1: the scanning distance should be no more than roughly ten times the width of the code. Put the other way round, divide the expected distance by ten to get a minimum width. A code read from 50 cm should be around 5 cm wide; a code on a poster read from 2 metres should be around 20 cm wide; a sign seen from across a car park needs to be much larger still.

Treat this as a starting point, not a guarantee. Phone cameras, lighting and the density of the code all change the result. For very close reading, such as a business card or a product label held in the hand, many designers avoid going below about 2 cm (roughly 0.8 inch) per side, and give more room when the code contains a long URL.

Density matters as much as size. The more data you encode, the more modules (the small squares) the code contains, and the smaller each module becomes at a given print size. A short URL produces large modules that phones lock onto quickly; a long tracking link with many parameters produces a fine pattern that needs a bigger print or a closer phone. Shortening the content is often the easiest way to make a small code reliable.

Respect the quiet zone and the contrast

The quiet zone is the empty margin around the code. Scanners use it to find where the code starts and ends. The QR specification calls for a margin of four modules on each side. When a code is placed tightly against text, a border or a busy photograph, the scanner may confuse the surrounding pattern with the code itself. If you set the margin to zero in a generator, make sure the layout provides that blank space instead.

Contrast is the second common cause of failure. Scanners are designed to read dark modules on a light background. Black on white is the safest choice, but brand colors work too as long as the foreground is clearly darker than the background: a dark navy, deep green or burgundy on white or cream usually scans fine. Avoid light colors on a light background, gradients across the code, and inverted codes (light modules on a dark background), which some phones and older scanning apps still fail to read.

Pay attention to the surface as well. Glossy lamination can reflect light and hide part of the code under a bright spot; matte finishes are easier to scan. On curved surfaces such as bottles or cups, keep the code small relative to the curvature so it does not bend out of the camera's view.

Pick the right error correction level

QR codes include redundant data so that a scanner can rebuild parts that are damaged or hidden. There are four levels: L restores about 7% of the code, M about 15%, Q about 25% and H about 30%. The trade-off is density: for the same content, a higher level adds modules and makes each one smaller.

For a clean indoor print such as a flyer or a menu, M is a good balance. Level H is worth the extra density when the code will face wear or partial obstruction: outdoor signs exposed to rain and dirt, packaging that gets handled and scratched, stickers on equipment, or a design where a small graphic element will be placed over part of the code. If you raise the level, compensate by printing slightly larger or shortening the content.

Static or dynamic: know what you are printing

A static QR code contains your content directly: the URL, the text, the Wi-Fi credentials or the contact details are written into the pattern. It needs no service to keep working and never expires, but it cannot be edited once printed. If you print a static code with a typo in the URL, the only fix is a new code.

A dynamic QR code contains a short link that belongs to a QR service, which then redirects to your real destination. That lets you change the destination later and count scans, but the printed code depends on the service staying online and, often, on a paid subscription. If the account lapses, every printed code can stop working at once.

The Toolvance QR Code Generator creates static codes only: no redirect, no tracking and no expiry. If you need flexibility, a simple approach is to encode the address of a page you control, for example yoursite.com/menu, and update that page whenever the content changes. The code stays the same and keeps working as long as your page exists.

Export the right file format: SVG for print, PNG for screens

A PNG is made of pixels. If you enlarge a small PNG for a poster, the edges of the modules become blurry or jagged, which can make scanning harder. A PNG is perfect for websites, emails, slides and social posts, where it is displayed at a known size.

An SVG describes each module as a vector shape. It stays perfectly sharp whether it is printed on a business card or a banner, and design tools and print shops handle it easily. For any printed material, send the SVG. If your printer or software only accepts bitmap files, export the PNG at the largest size available and do not scale it beyond that.

Test before you print the whole batch

Testing on your own phone is not enough. Different camera apps and models behave differently, especially with colored or dense codes. Before approving a print run, go through a short checklist:

  • Scan the final exported file, not just the preview, with at least two or three different phones, ideally including an older one and both iOS and Android.
  • Print a proof at the real size and scan it from the real distance, under lighting similar to the final location.
  • Check that the code opens exactly the right destination, and that the page loads well on mobile.
  • For Wi-Fi codes, confirm that the phone actually joins the network; for contact codes, check that every field lands in the right place in the address book.
  • Add a short call to action next to the code, such as Scan to see the menu, and, for URLs, consider printing the address in text as a fallback.