Education2 min read

Before you print a QR code: a checklist

Seven checks before a QR code goes to print: quiet zone, contrast, colours, logo size, eye shapes, print size and a test scan, with numbers from our scan study.

Line drawing of a printed QR code on a card beside a checklist of five ticked rows

Run through these seven checks before a QR code goes on a menu, a box, a poster or a sign. The numbers come from our scan study, where we read 12,108 test images with three open-source decoders: jsQR, ZXing-C++ and zbar. Each check links to the results it's based on.

The checklist

  1. Leave a light border around the code. Give it at least 2 modules of light margin, the quiet zone, whenever it sits on anything but plain light paper. The QR standard asks for 4. Printed straight onto a dark or busy surface with no border, codes were read in 0 to 38% of captures. One module of border brought every decoder to 98% or more, but it leaves nothing for a trimmer that cuts close. Quiet zone results

  2. Print dark on light, at a contrast of 4.5:1 or more. 4.5:1, the WCAG minimum for body text, cleared all three decoders. At 3:1, jsQR read one image in three. Don't invert the code: zbar, with its default settings, read none of 300 light-on-dark codes, so a scanner built on it won't read yours. Contrast results

  3. Judge colours by brightness, not hue. Red on white was read every time. Red on green, about as bright as each other, never was. Check every colour pair with a contrast checker, and leave some room above 4.5:1, because ink on paper shifts colours. Colour results

  4. Keep the logo within what error correction can repair. At error correction level H, a centred logo up to 39% of the code's width (15% of its area) was read in at least 80% of captures by all three decoders. At M the limit was 24% of the width, and at L, 17%. One module wider and most reads failed. Stay a few modules short of the limit, because a scratch or glare has to fit in the same budget. Logo results

  5. Be careful with round or decorative corner eyes. Dot patterns made no difference. But circle, gear, shield and message eye frames lost 25 to 37% of reads with all three decoders together. If you use them, test on more phones. Shape results

  6. Print it big enough for the distance. A decoder needs at least 2.25 camera pixels per module once a phone's sensor blur is counted, so plan on 2.5. In the study's example (a frame 1,280 pixels across, a 70° field of view and a phone 30 cm away), that means modules of at least 0.8 mm, so a 29-module code at least 2.4 cm wide. More content means more modules, and a bigger code. Work out yours with the print size calculator or the size guide. Size results

  7. Test the real thing. Check the scan score in the QRdx editor or the scan checker before you download, then scan a printed proof with two or three phones from where people will stand. Blur is a cliff: codes read fine at a blur of 0.3 module and not at all at 0.6, so a slightly soft print can fail completely. Blur results

One decision to make first

A static code holds the link itself, so it can't change after printing. A dynamic code points to a short link you can change later, so if the page might move, it saves a reprint.

ShareXLinkedIn
Ritesh Bucha

Founder, QRdx

Ritesh Bucha is a designer and full-stack developer, and the founder of QRdx. Ritesh builds the QRdx web app, the qrdx library and the @qrdx/cli tool in the open on GitHub, and writes here about how QR codes work and how QRdx is made.

Read more

Line drawing of four QR codes in cards beside a chart whose line stays high and then drops sharply

Education

What stops a QR code from scanning? A test of 12,108 images

How big a logo can be, how much contrast and margin a code needs, whether coloured and light-on-dark codes scan, and how…

Ritesh Bucha14 min read
Line drawing of the same QR code printed at three sizes on stands, with a tape measure along the floor and a blue dimension line beside the largest

Education

How big should a QR code be?

Minimum QR code sizes by scanning distance and content, plus the quiet zone, contrast and error-correction rules that…

Ritesh Bucha9 min read
Line drawing of a chat window where an assistant calls the design_qr tool, beside a styled QR code on a stand

Education

How to make a QR code with ChatGPT or Claude

Image models draw QR codes that don't hold your link. Connect QRdx's free MCP server to ChatGPT or Claude for a real…

Ritesh Bucha5 min read