How to make a QR code for flyers and business cards: decide the print size, error correction, colors and quiet zone, then check that it scans
A walkthrough for making QR codes for shop flyers, business cards and posters with a QR code generator that runs in your browser. It measures how the Version and module count change with URL length, shows how to work out the printed size as "modules × module size", explains how to choose an error correction level, saves an SVG that stays sharp at any size, tests inverted colors, pale colors and a missing quiet zone that make codes unreadable, and shows how to write a QR code for joining a Wi-Fi network.
Contents
You want to put a QR code for your booking page on a shop flyer, add your portfolio URL to a business card, or send people from an event poster to a sign-up form. There are plenty of QR code services, but once the code is headed for print, the hard part is usually not making it. It is deciding how large to print it and whether it will still scan if you change the colors. The familiar failure — it scanned fine on screen, but the printed copy gets no reaction from a phone — almost always comes from these decisions.
The other thing worth checking is what is actually inside the QR code. Some free generators do not encode the URL you typed. They encode a redirect URL on their own service instead. That lets you change the destination later, but if the service shuts down or moves that feature to a paid plan, every flyer you have already printed now carries a dead QR code.
The QR Code Generator encodes the text you enter exactly as it is. There is no redirect in between, so the code never expires, and all processing stays inside your browser. Using a URL meant for a flyer as the example, this article goes step by step through making and saving the QR code, deciding the print size and confirming that it scans.
The size of a QR code is set by its number of modules
A QR code is a grid of small black and white squares called modules (sometimes “cells”). How many there are is determined by the “Version”. Version 1 is 21×21 modules, each step up adds 4 modules to each side, and Version 40 is 177×177 modules (DENSO WAVE, “Information capacity and versions of the QR Code”; DENSO WAVE is the company that invented the QR code).
The longer the text you put in, and the stronger the error correction described below, the more modules are needed and the higher the Version. The printed size is the number of modules multiplied by the size of one module. In other words, at a given printed size, more modules means smaller modules, and smaller modules are harder to scan. Before thinking about how big to print, you need to know how many modules your own QR code has.
Making a QR code for a flyer
As the example, take a URL that sends flyer readers to a blog article, with UTM parameters added so that analytics can tell visits from the flyer apart from other traffic.
https://www.ixam.net/blog/2026/11/remove-photo-location-exif/?utm_source=flyer&utm_medium=print&utm_campaign=2026winter
1. Enter the URL and check the Version and ECL
Open the tool and paste the URL into the text box under “Input & settings”. There is no button to press: the QR code appears in the preview on the right as soon as you type. Below the preview, a line such as “Version 7 / ECL M / 45×45 modules” shows the Version that was chosen, the error correction level (ECL) and the number of modules.
This 119-character URL came out at 45×45 modules (Version 7) with the default error correction M. The bare home page URL without UTM parameters, https://www.ixam.net/ (21 characters), needs only 25×25 modules (Version 2). Excluding the margin, that is 1.8 times as many modules per side, so at the same printed size each module differs in size by the same factor.
On business cards and shop cards, where there is little room for the code, shortening the URL makes the biggest difference. Using short values for the UTM parameters, or pointing to a page with a short path instead of a long article URL, cuts the module count considerably.
2. Choose an error correction level
Error correction lets a reader recover the original data even when some modules are dirty or missing. There are four levels — L, M, Q and H — which you switch in the “Error correction” menu. DENSO WAVE’s explanation says Q or H may be chosen where codes are likely to get dirty, L may be chosen in clean environments with a lot of data, and M (15%) is the most commonly used level (About error correction).
Stronger error correction adds recovery data, which means more modules. With H selected, the same URL grew to 57×57 modules (Version 10).
Here are the module counts I measured for a few strings at each level. “Actually” means the tool used a different level from the one selected.
| Text encoded | L | M | Q | H |
|---|---|---|---|---|
https://www.ixam.net/ (21 characters) |
25×25 (actually M) | 25×25 | 29×29 (actually H) | 29×29 |
| The UTM URL above (119 characters) | 41×41 | 45×45 | 53×53 | 57×57 |
| Wi-Fi string (45 characters, see below) | 29×29 | 33×33 (actually Q) | 33×33 | 41×41 |
東京都千代田区丸の内1-9-1 (a Tokyo street address; 15 characters, 35 bytes) |
29×29 (actually M) | 29×29 | 33×33 | 37×37 |
Where the table says “actually”, a stronger level than the one selected was used. The tool automatically raises the error correction as far as it can without increasing the Version. Since the module count is the same either way, the stronger level is a free gain, so treat the level you select as a minimum. The ECL shown under the preview is the level actually used.
Characters outside ASCII take more than one byte each in UTF-8 — Japanese and Chinese characters take 3 bytes, accented Latin letters 2 — so text like this needs more modules than its character count suggests. Rather than encoding an address or shop name directly, encoding the URL of a page that shows it usually gives a smaller code.
For something people hold in their hands, like a flyer, the default M is usually enough. Consider Q or H where dirt or scratches are expected, such as an outdoor poster or a product label that gets rubbed. Those levels add modules, so choose them on the assumption that you will print larger.
3. Set the colors and size, then save as SVG
“Foreground” and “Background” change the colors. On a white background, a dark color with clear contrast will scan even if it is not black (how far you can go is tested in a later section). The next screenshot uses navy (#1e3a8a) to match a brand color.
There are two ways to save: “Download PNG” and “Download SVG”.
- SVG is saved as shapes, so you can place it in page layout or word processing software and scale it to the size you need without blurring the edges. Use this for print.
- PNG is exported at the number of pixels per module set in “Size”. With the settings above, that is 45 modules plus 4 modules of margin on each side, 53 modules × 10 pixels, for a 530×530-pixel image. That is fine for a web page or a slide. If you enlarge a PNG for print, the module edges can blur depending on the scaling factor. If you do need to print a PNG, the print size and pixel calculator works out how many pixels you need from the finished size and resolution.
The SVG file also says width="530", but the shapes inside are drawn in module coordinates, so they shrink with the frame when you resize it after placing it.
Working out the printed size
The length of one side when printed is:
QR code side = modules × module size
Side including margin = (modules + 4 margin modules × 2) × module size
DENSO WAVE explains it in the same order: once the Version and the module size are decided, the size of the QR code itself is decided (Points for determining the code area). For example, printing each module at 0.5 mm gives these sizes for the codes made in this article.
| Encoded | Modules | QR code area | Side including margin |
|---|---|---|---|
https://www.ixam.net/ (M) |
25×25 | 12.5 mm | 16.5 mm |
| UTM URL (M) | 45×45 | 22.5 mm | 26.5 mm |
| UTM URL (H) | 57×57 | 28.5 mm | 32.5 mm |
Working the other way, if the space on the page is fixed at 20 mm per side, the UTM URL at M (53 modules including the margin) gets about 0.38 mm per module. The short URL at 33 modules gets about 0.61 mm.
The module size that a phone can reliably read depends on the camera and the reading distance, and no single figure is given. DENSO WAVE’s FAQ says that about 0.17 mm per module is the minimum with an ordinary laser printer, but that is the limit of what can be printed, not the size that someone can casually scan with a phone in hand (QRcode.com FAQ, in Japanese). Anything read from a distance, such as a poster, needs to be larger still in proportion to the distance. Either way, the reliable approach is to print a test copy at the final size and try reading it with several phones from the distance you expect.
Colors and margins that make a code unreadable
Using the same URL (https://www.ixam.net/, error correction M), I made PNGs with different colors and margins and read them two ways. One was loading the image into the QR code reader (which uses ZXing internally); the other was OpenCV 5.0 in Python (cv2.QRCodeDetector). Both read the image files directly. These are not results from photographing printed copies with a camera.
| Foreground | Background | Margin | Reader tool | OpenCV |
|---|---|---|---|---|
| Black | White | 4 modules | Read | Read |
Navy (#1e3a8a) |
White | 4 modules | Read | Read |
| Black | Yellow (#ffd400) |
4 modules | Read | Read |
| White | Black (inverted) | 4 modules | Not read | Not read |
Pale gray (#bbbbbb) |
White | 4 modules | Not read | Read |
Pale pink (#f4a6b8) |
White | 4 modules | Not read | Read |
| Black | White, placed on a pattern | 0 modules | Not read | Not read |
| Black | White, placed on a pattern | 1–4 modules | Read | Read |
The inverted code, with black and white swapped, could not be read by either method. If the design calls for a dark background, put a white square behind the QR code and print the code in a dark color on top of it.
Pale colors split the results depending on the decoder. If one method reads it and another does not, it is not fit for a flyer, because you cannot choose which phone your readers will use. DENSO WAVE’s FAQ also says the basic approach is to print black on a white background, and that combinations such as red on white cannot be read (FAQ, in Japanese). If you add color, use one with a large difference in lightness from the background, such as navy or dark green.
The last two rows simulate placing a QR code on a checked photo or illustration. With the margin (Quiet zone) at 0, the decoder could not tell where the QR code began, and it failed. In this image a 1-module margin was enough, but the specification requires a margin of at least 4 modules on every side (Points for determining the code area). Do not reduce the tool’s default of 4 modules, and when laying out the page, keep other text and borders away from the code.
Reading the saved QR code to confirm it
Before sending the file to print, check that the saved image contains the text you intended. In the QR code reader, choose the saved PNG under “Image file” in the “Choose a QR code image” section, and the decoded text is shown.
What to look for is whether the URL is complete to the very end. If the end of a long URL got cut off when you copied it, or a stray space or line break slipped in, a QR code is still generated without complaint. Open the decoded URL in a browser as well, and make sure it shows the page you meant.
Going further: a QR code for guest Wi-Fi
QR codes also work for a shop’s guest Wi-Fi or a meeting room’s guest network. The tool has no dedicated Wi-Fi fields, but if you enter a string in the following format, most phone cameras will offer to join that network when they scan it.
WIFI:T:WPA;S:ixam-guest;P:example-pass-2026;;
T: is the security type (WPA for WPA/WPA2/WPA3), S: is the network name (SSID), P: is the password, and the string ends with ;;. If the network name or password contains ;, ,, :, \ or ", put a \ before that character. This 45-character example came out at 33×33 modules with error correction M (the level actually used was Q).
Anyone who takes a photo of a QR code can read the password in it. Only post codes for a network set aside for guests, and make a new QR code whenever you change the password. For choosing the password itself, see “How long should a password be? Comparing the strength of random passwords in bits and generating them to fit a site’s rules”, which covers length and character sets.
Fixing the Version range to keep codes the same size
When you line up several QR codes in one design, URLs of different lengths give different module counts. Entering the same number as both the minimum and maximum in the “Version” fields fixes the Version. With the minimum set to 10, the UTM URL came out at 57×57 modules (the level actually used was H) even with error correction left at M. Because the module counts match, printing the codes at the same size also gives them the same module size.
On the other hand, if you set the maximum too low for the text to fit, the preview shows “Failed to generate: Data too long”. In that case, raise the maximum Version, lower the error correction, or shorten the text.
Related tools
- To make a QR code for each row of a mailing list or product list and lay them out, use the Batch QR Code Generator from CSV.
- If the space you can print on is long and narrow, a horizontal rMQR code or a smaller Micro QR code is another option. Not every phone’s built-in camera app supports them, though, so check what your readers will be scanning with before you use one.