Quick answer
Size a printed QR code by its modules, the small squares it's made of, not by one overall width. The more a code holds, the more modules it has, so the same printed width gives smaller modules.
- Size: QR vendors suggest modules of about 0.4 to 0.5 mm for phone scanning (QR Code Generator: 10 QR Code Design Rules). In this guide's test, that works out at a code about 1.5 cm wide for a short link and about 3 cm for a long tracking link.
- Colour: keep a dark code on a light background with strong contrast. Avoid light-on-dark designs unless you've tested them on the phones your readers use.
- Logo: a logo is workable if the generator raises error correction, but it still makes the code bigger and less tolerant. Test it.
- Testing: a file that decodes on your computer proves the data is right, not that the print will scan. Print a proof at the final size, on the final paper, and scan it with at least two different phones from the real distance and in the real lighting.
- Backup: print a short web address beside the code, and check that the scanned link opens the right page.
In FreeToolsKit's QR Code Generator, choose URL, type the link in Website URL, keep the code dark on a light background, choose Print under Download size and SVG under File format, then choose Download SVG.
The test codes used in this guide
All four codes point to one made-up address, example.com/spring-fair, for a fictional spring fair. The tool's help text under Website URL says "https:// is added if you leave it out", so the code holds https://example.com/spring-fair (31 characters).
- A. Plain: Code color
#000000, Background#FFFFFF, Frame Square, Download size Print. - B. With a logo: A plus a 400 × 400 pixel PNG logo (a white flower on a green rounded square), added with Add a logo — PNG, JPEG or WebP, max 1 MB.
- C. Colour choices: A with an amber Code color
#F59E0B, and separately the built-in Midnight theme, which puts a white code on dark navy. - D. A long link: A with a 158-character link to the same fictional page, carrying four tracking parameters (
utm_source,utm_medium,utm_campaignandutm_content).
Each was downloaded with Download PNG and Download SVG. The status line read "Saved qr-code-url.png (1200×1200 px)." or "Saved qr-code-url.svg (vector)."
What the tool produced
The tool shows the version only in a note on very dense codes, so these module counts come from the downloaded PNGs:
- A, plain: version 3, 29 × 29 modules, each 32 pixels in the 1,200-pixel file. No warning.
- B, logo: version 4, 33 × 33 modules. The logo panel says "With a logo, maximum error correction (H) is used so the code still scans". The extra error correction made the same link need a larger version. The logo covered a 9 × 9 block of modules in the centre, clear of the three corner squares.
- C, amber: version 3, with the warning "Low contrast (2.1:1) — many phones won't scan this. Use a darker code or lighter background." A darker amber,
#D97706, gave "Contrast is only 3.2:1 — test-scan before printing." - C, Midnight: version 3, with the warning "Light code on a dark background — most phone cameras read it, but some scanner apps can't. Test before printing."
- D, long link: version 11, 61 × 61 modules, each 17 pixels. No warning or note.
Codes A to D each had a margin of 4.2 to 4.8 modules of plain background on each side, the quiet zone. Vendor guidance calls for a four-module quiet zone (QR Code Generator: 10 QR Code Design Rules), and the tool sets it from the real module count (renderOptions). A separate test with a 741-character link made a version 26 code and showed the note "This QR code is dense (version 26); print it at least 4 cm wide."
Versions run from 1 (21 × 21 modules) to 40 (177 × 177), each adding four modules per side (DENSO WAVE: Information capacity and versions), and a higher error correction level makes a code larger (DENSO WAVE: Error correction feature).
How small you can print it
Work out the module size: the width of the dark square, not counting the margin, divided by the number of modules. At the same 2 cm code width, the test codes gave very different modules:
- A, short link (29 modules): 20 ÷ 29 = 0.69 mm.
- B, with logo (33 modules): 0.61 mm.
- D, long link (61 modules): 0.33 mm.
- The dense test (121 modules): 0.17 mm at 2 cm, and 0.33 mm at the 4 cm the tool suggests.
The QR code's developer, DENSO WAVE, says "The larger the module is, the more stable and easier to read with a QR Code scanner it becomes". It recommends at least four printer dots per module, which on a 300 dpi printer is 0.33 mm (DENSO WAVE: Point for setting the module size). So at 2 cm, code D sits right at that printer floor, while code A's modules are about twice as wide.
To reach the 0.5 mm modules vendors suggest, multiply the number of modules by 0.5 mm. That gives about 1.5 cm for A, 1.7 cm for B and 3 cm for D. Other figures you'll meet:
- 2 cm floor: vendors give 2 × 2 cm as a minimum for a typical web address at close range (Deloitte myQR: What is the minimum size of a QR Code?; Uniqode: QR Code Size Guide). The tool page also says to print codes at least 2 cm wide. For a long link like D, that floor isn't enough.
- Retail barcodes: GS1's minimum module of 0.396 mm applies to QR codes scanned at retail checkouts, not to phone scanning (GS1: Solution provider 2D readiness).
- Distance: vendors use a rule of thumb that the code should be about a tenth of the scanning distance, such as 2 cm for 20 cm or 10 cm for 1 metre (Deloitte myQR). The accessibility consultancy TetraLogical repeats it only as "a rough estimate" from those guides (TetraLogical: Accessibility and QR codes). No standards body source for it was found. Treat it as a starting point, and remember that it ignores how much the code holds.
Measure the dark square, not the image. In the downloaded files the margin takes up part of the width: the dark square was 77% of the image for A and 86% for D. If you place the image 2 cm wide, A's code is only about 1.5 cm.
Use shorter links. Removing tracking parameters you don't need is the simplest way to get larger modules at the same size. Code D held five times as many characters as A and needed more than twice as many modules per side.
What a software check shows, and what it can't
Each downloaded PNG was checked with three open-source decoders: zbar 0.23.93 (through pyzbar), OpenCV 5.0's QR code detector and ZXing-C++ 3.1.1. They read the files on a computer, not through a camera.
- Full size: all three read A, B, D and the amber code exactly, including the full 158-character link. The amber code decoded despite its 2.1:1 warning. A clean digital file has no glare, ink spread or dim light, so that says little about the print.
- Light on dark: zbar and OpenCV couldn't read the Midnight code at any size. ZXing-C++ read it only with its option to try an inverted image switched on (on by default in the version tested). With that option off, it failed even at full size.
- Shrunk files: each file was scaled down so that each module was a few pixels wide, tested at four slightly different pixel alignments, with and without mild blur. At 3 pixels per module or more, all three decoders read every sharp copy of A, B, D and the amber code, and only OpenCV missed a few blurred ones. At 2 pixels, zbar and ZXing-C++ read nearly every copy, but OpenCV missed many. At 1 pixel per module, 86 of 96 attempts failed.
That matches Google's guidance for its ML Kit barcode scanner: "the smallest meaningful unit of the barcode should be at least 2 pixels wide" in the image it reads (Google for Developers: Scan barcodes with ML Kit on Android). A phone camera has to resolve each module from your reader's distance, through its lens, focus and lighting. At the same printed size, D's modules are half the width of A's, so a phone gets about half as many pixels per module from the same distance. That is geometry, not a measured camera test.
None of this replaces a print test. A software decode tells you the file holds the right link and can be read. It can't tell you how ink, paper, glare, curved surfaces, distance or an older phone will affect a scan. The US government's Section508.gov names print problems a file can't show: a code that is "too small, printed with poor resolution, or placed in areas with low visibility or lighting" (GSA Section508.gov: Accessibility Bytes No. 8).
Colour, contrast and light-on-dark codes
- Keep the code darker than the background. The tool flags designs under 3:1 as low contrast and under 4.5:1 as fair, and flags light-on-dark designs separately (
readabilityin its code). The 4.5:1 figure comes from accessibility guidance for text, which Section508.gov recommends applying to QR codes (GSA Section508.gov). No source found gives a contrast ratio that guarantees a scan. - Avoid inverted codes. One vendor's advice is to avoid them because "Some scanners handle them, but many struggle" (QR Code Generator: 10 QR Code Design Rules). In ZXing, a widely used open-source decoder, reading an inverted image is a separate setting:
ALSO_INVERTED"also tries to decode as inverted image" (ZXing: DecodeHintType). The Midnight test fits that: two of three decoders couldn't read it. If you need a light code on a dark design, test it on the phones your readers use. - Watch the finish. Glossy coatings and reflections can lower contrast after printing (QR Code Generator). Google's Pixel help also says to avoid "shadows or glare on the code" when scanning (Pixel Phone Help: Scan QR codes).
If the warning appears, pick a darker shade of your brand colour, for example with the Color Picker & HEX/RGB/HSL Converter, until the warning goes.
Logos and decorative styles
The tool always uses error correction Q, or H with a logo (eccFor in its code). DENSO WAVE says about 25% of codewords can be restored at Q and about 30% at H (DENSO WAVE: QR Code Standardization). A logo uses up part of that capacity before any real damage, so a logo code has less left for scuffs, folds and glare.
- The cost: in the test, the logo moved the same link from 29 to 33 modules per side, so the modules are smaller at the same width.
- Decoding: all three decoders read the logo code at full size and at 3 pixels per module. In the shrunk-file test it failed slightly sooner than the plain code.
- The developer's caution: DENSO WAVE warns that QR codes that are "distorted due to image processing or decorated ones" may not be readable (DENSO WAVE: Generating a QR Code).
- Public-sector practice: Nottinghamshire County Council's guidance says to "Avoid decorative or stylised QR codes" and not to "stretch, skew or distort" the code (Nottinghamshire County Council: Using QR codes).
The tool's patterns and corner styles show their own note, for example "Decorative patterns read fine on phone cameras but can trip up some older scanner apps — test-scan before printing." For print, the plain Square pattern and corners are the cautious choice.
The default Round frame leaves the image's corners transparent, without touching the quiet zone. Choose Frame Square for a plain rectangle of background colour on coloured paper.
PNG or SVG for print
- SVG: choose SVG under File format. The council guidance says to "export the QR code as SVG for the best print quality" (Nottinghamshire County Council). In the test, the SVG drawn at 1,200 pixels matched the 1,200-pixel PNG exactly, pixel for pixel, and it scales to any size.
- PNG: choose Print (1,200 px). It suits small and medium prints, with 32 pixels per module for code A and 17 for code D. For large posters and signs, use the SVG: "Scaling a low-resolution raster file makes the blur larger, not sharper" (QRStuff: What Size Should a QR Code Be?).
- Keep the margin: don't crop the quiet zone or let text, borders or trim edges eat into it. The council says to "leave a clear space around the code" (Nottinghamshire County Council).
Test before you print
- Print a proof at the final size, on the final paper or material, with the same printer or print shop if you can.
- Scan it with the phone's own camera. On an iPhone, open the Camera app, "Hold your device so that the QR code appears, then tap the link" (Apple Support: Scan a QR code with your iPhone or iPad). On a Pixel, make sure "the entire code shows on your screen" (Pixel Phone Help).
- Use more than one phone. The council's advice is to "Test the code on more than one device" (Nottinghamshire County Council). Include an older or cheaper phone if you can.
- Recreate the real conditions: the distance people will stand at, the lighting where it will hang, and any curve, fold or glossy finish.
- Read the link before you open it. Check that the address the phone shows is exactly yours, then open it and check that the page loads on a phone.
- If it struggles, make it bigger, shorten the link, remove the logo or decoration, or raise the contrast, then print a new proof.
Put the address beside the code
Not everyone can or will scan a code. Nottinghamshire County Council's rule is "Never use a QR code on its own — always include a short URL", and to remove "https://" when showing it (Nottinghamshire County Council). Section508.gov also says to "Include a URL in print media formats" (GSA Section508.gov). For the test page, that would be "example.com/spring-fair" printed under the code, with a short label such as "Scan to see the programme".
This tool makes static codes: the link is fixed in the pattern. The council prefers static codes because they "contain the final URL", while dynamic codes rely on a redirect "controlled by another service, which can break or change" (Nottinghamshire County Council). So make sure the page will stay at that address for as long as the print is in use.
If your code is on public display, check it now and then. The FBI has warned that criminals replace codes, for example "with a sticker placed on top of the original code", and advises people to "check the URL to make sure it is the intended site" (FBI IC3: Cybercriminals Tampering with QR Codes). A printed address lets your readers make that check.
Before you send it to print
- Module size: the dark square's width divided by its module count is at least about 0.4 to 0.5 mm, or more for viewing from a distance.
- Short link: you've removed parameters you don't need.
- Contrast: the tool shows no contrast warning, and the code is dark on a light background.
- Quiet zone: the margin around the code is clear on all four sides after trimming.
- File: you're using the SVG, or the Print PNG for a small or medium print.
- Proof: a printed proof scanned on at least two phones at the real distance and in the real light.
- Destination: the scanned address matches yours, and the page opens on a phone.
- Backup: the short web address is printed beside the code.

