Skip to content

How to make a QR code for print

· 8 min read

A QR code that scans perfectly on your screen can fail on a printed flyer for reasons that have nothing to do with the code itself: it was exported too small and then enlarged, the white border got cropped to fit a layout, the URL made it too dense to read at arm's length. All of it is avoidable, and almost all of it comes down to a few numbers. Here they are, in the order you need them.

Use SVG and the DPI question disappears

Print shops ask for 300 dpi because they are thinking of photographs, where resolution is fixed when the image is created. A QR code is not a photograph. It is a grid of squares, and an SVG describes those squares as shapes rather than pixels, so it prints perfectly sharp at any size — a business card, a poster, the side of a van — and has no DPI at all.

If the printer or your design software accepts SVG (InDesign, Illustrator, Affinity, Figma, Canva and most print services do), use it and skip the rest of this section. The QR code generator exports SVG directly.

When you have to send a PNG

Work backwards from the printed size. Pixels needed = width in inches × DPI:

Printed width (including the white border)At 300 dpiAt 600 dpi
2 cm (0.8 in) — business card236 px472 px
3 cm (1.2 in) — flyer, menu354 px709 px
5 cm (2 in) — poster at close range591 px1181 px
10 cm (4 in) — poster across a room1181 px2362 px

Never enlarge a small PNG to fill a bigger space. Upscaling blurs the edges of the squares, and blurred edges are what scanners struggle with first. Our generator's largest PNG is 512 pixels, which covers prints up to about 4.3 cm at 300 dpi; for anything bigger, use the SVG.

How small can it be?

Two rules of thumb, and use whichever gives the larger result:

  • At least 2 cm (0.8 in) wide for anything scanned up close — a business card, a label, a table tent.
  • About one tenth of the scanning distance. A code read from 1 metre away wants to be around 10 cm wide; a poster read from across a 3-metre corridor, around 30 cm.

Both assume a reasonably simple code. Which brings up the factor most people never think about.

Shorter content makes a scannable code

A QR code grows with what it encodes. The smallest, version 1, is a 21×21 grid of squares (modules); each version adds four, up to 177×177. For the same printed size, more modules means smaller modules, and smaller modules are harder to read. Two real examples at the default error-correction level:

  • https://keepitlocally.app (25 characters) → a 25×25 grid.
  • The same address with a path and three tracking parameters (102 characters) → 41×41. At 2 cm wide, each square shrinks from about 0.6 mm to 0.4 mm.

So before printing, trim the URL: drop tracking parameters you won't analyse, prefer a short path, and avoid putting a whole paragraph of text in the code. If you need click tracking, a short redirect on a domain you control keeps the code small — and, unlike a third-party "dynamic QR" service, it won't stop working when a subscription lapses. There is more on that trade-off in QR codes that never expire.

Keep the quiet zone

Every QR code needs an empty margin around it — the quiet zone — so the scanner can tell where the code begins. The QR standard (ISO/IEC 18004) specifies four modules on every side. It looks like wasted space in a layout, it gets cropped to make the code "fit", and that is the single most common reason printed codes fail. Our generator includes the full four-module quiet zone in both PNG and SVG; leave it in, and don't let text or a background pattern intrude on it.

Error correction: M is the right default

QR codes carry redundant data so they still scan when partly damaged or dirty. There are four levels:

LevelRecovers roughlyGood for
L7% damageClean screens, smallest codes
M15%Most print — the usual default
Q25%Outdoor use, rough surfaces
H30%Codes with a logo in the middle

Higher is not automatically better: more redundancy means more modules. Our 102-character example grows from 41×41 at level M to 57×57 at level H. For flyers, cards and menus, M is the sensible balance, and it is what our generator produces. Logos placed over the centre of a code eat into the error correction budget, so they need H — and a careful print test.

Colour and contrast

  • Dark modules on a light background. Inverted codes (light on dark) are read by many modern phone cameras but not by every scanner app.
  • Colour is fine; low contrast isn't. A dark navy or burgundy code on white scans well. A mid-grey or a pastel does not. If you are tempted by a brand colour, check it in the contrast checker — aim for the same contrast you would want for small text.
  • Mind the finish. Gloss lamination reflects light straight into a phone camera at certain angles. Matte paper is more forgiving.
  • Flat surfaces. A code wrapped around a bottle or folded over a crease distorts; keep it on the flattest part of the design.

Test before you print the run

Print one copy at the final size, on the final paper if you can, and scan it with at least two phones — one iPhone, one Android — using the built-in camera, not a dedicated scanner app, because the camera is what most people will use. Try it from the distance and angle a real person would, under the lighting where it will hang. Check that the link opens the right page, on mobile data rather than your office Wi-Fi. Five minutes of this costs far less than reprinting 5,000 flyers.

Making one

The QR code generator creates codes for links, Wi-Fi credentials and plain text, previews them live, and exports SVG or PNG. It runs entirely in your browser: the code is generated on your device, with no redirect service inside it and nothing about what you encode sent anywhere. It also reads QR codes from images, which is handy for checking a code someone else sent you before you print it.