A QR code is only useful if it scans on the first try, from the distance and surface where you actually place it. This guide covers the six content formats our QR code generator supports, what error correction really buys you, the quiet-zone rule that causes most scan failures, how small you can print, and when to download SVG instead of PNG. Everything runs locally in your browser — the content you encode is never uploaded.
When a code refuses to scan, people usually blame the generator. In practice the algorithm produced a perfectly valid matrix; the failure happens later, during placement. A glass bottle curves the code, a designer removes the white margin to make the layout tighter, or a 300-pixel image gets stretched to fill an A2 poster. The scanner sees blurred or missing modules and gives up.
Understanding the difference between generating and placing matters because only one of them is a software problem. The generator decides the module pattern and the error-correction level. You decide the physical size, the contrast, the surrounding whitespace and the surface. Get the first part right once, then spend your attention on the second.
Our tool generates static codes. That word matters more than most people realise. Static means the data is encoded directly into the pattern: a URL is a URL, a WiFi credential is a WiFi credential. There is no redirect in the middle, no account to maintain, and no service that can switch off next year. The trade-off is that the content cannot be changed after printing — which is exactly why you should test the destination thoroughly before you order 5,000 stickers.
A QR code stores text. Every "type" in the generator is really a convention for formatting that text so a phone knows what to do with it. Knowing the underlying string helps you debug a code that behaves unexpectedly.
| Type | String written into the code | Typical use |
|---|---|---|
| URL / Website | The raw address, e.g. https://example.com/menu | Restaurant menus, packaging, business cards |
| Plain text | Whatever you type, unchanged | Serial numbers, short notes, codes |
| WiFi Network | WIFI:T:WPA;S:MyNet;P:password;; | Guest network access without typing |
mailto:[email protected]?subject=Hello | Contact forms, flyers, email-only campaigns | |
| Phone | tel:+15550123456 | One-tap dialling from print ads |
| SMS | SMSTO:15550123456:Hello there | Text-me campaigns, support short codes |
The WiFi format deserves a closer look. The T: field is the encryption type — WPA/WPA2, WEP, or nopass for an open network. The S: field is the network name and P: is the password. Modern phones read this standard format natively and offer to join the network after scanning. If a password contains a semicolon, backslash, comma, or double quote, that character needs escaping with a leading backslash; otherwise the parser may cut the field early and the phone will try the wrong password.
The email format includes a URL-encoded subject. If you set the subject to "Quote request", the stored string contains Quote%20request, and the phone opens a draft with that subject already filled. This is a small touch that makes a contact code feel intentional rather than generic — but it also lengthens the encoded data, which increases the matrix density.
Our generator uses QRCode.CorrectLevel.H, the highest of the four standard levels (L, M, Q, H). Level H reserves roughly 30% of the code's capacity for redundancy. That means a scanner can still recover the data if about 30% of the modules are damaged, obscured, or unreadable.
That sounds generous, and it is — but it is not free. Higher redundancy means more modules for the same payload, so the pattern gets denser and each individual module gets smaller at a fixed print size. There is a direct trade-off: level H buys tolerance to damage by spending physical space. Choosing H is the right default for anything printed or photographed, because real-world damage (a scratch, a fold, a glare spot) is far more common than a perfectly clean scan.
Where the extra density hurts is very short content on very small labels. If you encode a 12-character serial number at 20 mm, the extra redundancy can push the module size below what a phone camera resolves reliably. In that case the answer is not to lower the correction level — it is to shorten the data or enlarge the code. Removing https:// from a URL is not recommended because most phones will not add it back, but moving a long tracking parameter into a shorter redirect destination is fine.
The library we use also handles character encoding correctly. Text is processed in UTF-8 byte mode, with ECI handling for non-ASCII input. That matters if you encode Spanish or Portuguese text with accents: a naive implementation can produce a code that looks valid but decodes to garbled characters on another device.
Every QR code needs a blank margin around the matrix. This "quiet zone" tells the scanner where the code begins and ends. The specification calls for four modules of clear space on all four sides. Four modules sounds tiny until you calculate it: on a dense 57-module code printed at 25 mm, one module is 0.44 mm, so the quiet zone needs about 1.8 mm of plain light space on every side.
Designers routinely violate this rule. They drop the margin so the code sits flush against a coloured brand panel, or they place a white code on a dark background with only a hairline border. The scanner then finds a dark region where it expects white, misreads the finder pattern, and declares the code invalid. Adding a white card behind the code — a rectangle with generous padding — fixes the problem without changing the code itself.
Our generator keeps a clean white background by default and lets you change both foreground and background colours. If you want a coloured code, keep the contrast high: dark modules on a light background. Inverse codes (light modules on black) do scan on some phones but fail on many others, because the finder patterns are designed around dark-on-light. A pastel background with a similarly pastel foreground is worse still — contrast, not aesthetics, determines whether the camera separates the modules.
A useful rule of thumb is that one module should be at least 0.4 mm wide on the final print. Multiply that by the number of modules across your code to get the minimum physical size. A simple URL might produce a 29-module version-3 code: 29 × 0.4 mm ≈ 12 mm square. A longer WiFi string with escaped characters might reach version 8 or 9: 49–53 modules, needing 20–22 mm. A dense 57-module version-10 code needs roughly 23 mm.
These are minimums for good scanners at close range, not comfortable targets. If the code will be scanned from more than 30 cm, or printed on a surface that reflects light, double the size. For packaging, test the final material: a glossy dark label produces specular highlights that no amount of error correction can recover, while matte white stock scans reliably at surprisingly small sizes.
Distance matters too. A code on a shop window might be scanned from a metre away. As a rough guide, the maximum reliable scan distance is about ten times the code's side length for a modern phone camera under decent light. A 25 mm code is a hand-held code; a 250 mm code is a window code. Plan the physical size backwards from where the person will stand.
The generator offers both formats, and they solve different problems.
PNG is a raster format with a fixed pixel grid. The generator's size control (100–1000 px) sets the canvas resolution, and the download captures the rendered canvas exactly. Use PNG for website embeds, social media images, email signatures, slide decks and ordinary document printing. A 600–1000 px PNG is more than enough for a business card at 300 dpi and avoids any rendering differences between vector viewers.
SVG stores the code as vector geometry. It stays crisp at any scale, so a single file works for a 20 mm sticker and a 2 m banner. Choose SVG for large-format printing, screen printing, laser engraving, or any workflow where the printer asks for a vector file. It is also the better archival format — ten years from now a vector file still scales, while a 300 px PNG looks soft on whatever screen people use then.
One caveat: because our SVG export is a data URI captured from the generated image, check it in a vector editor before sending it to a professional printer. Some print shops prefer their own conversion from a high-resolution PNG. For most self-service printing, the SVG is directly usable.
The whole workflow takes a few minutes and avoids the most expensive mistake in QR projects: discovering after a print run that the codes do not scan on the packaging.
QR content is often more sensitive than people think. A WiFi code contains your network password. A mailto: code contains an address you may not want harvested. A phone-number code can feed a spam list if the generating service logs inputs. Many online QR tools process content on their servers, which means your passwords and contact details pass through someone else's logs.
Our generator runs entirely in your browser. The library encodes the matrix locally, the preview renders locally, and both downloads come from local data. Nothing is uploaded, there is no account, and there is no scan analytics because the code contains no redirect. If you generate a WiFi code for your home network, the only copy of that password in the process is the one you typed into your own browser.
That also means the tool works offline once the page has loaded. On a train, in a basement, or at a trade show with terrible venue WiFi, you can still generate and download a code. For a last-minute sticker before a presentation, that reliability is worth more than any styling option.
.svg; some systems need the correct extension to preview it properly.Do QR codes expire? No. Static QR codes encode the content directly and never expire. What can expire is the destination: a URL you no longer control, a shortened link that gets disabled, or a promotion that ends. The code itself stays scannable forever.
Can a QR code track who scanned it? A static QR code cannot track scans — it is just a picture of data. Tracking requires a dynamic QR service that redirects through its own server, which logs each scan. Our generator produces static codes only: no redirect, no logging, no analytics.
What is the minimum print size for a QR code? A common working rule is to keep each module at least 0.4 mm wide on the final print. A version-10 code (57 modules across) therefore needs about 23 mm square at minimum. On a small product label, shorten the encoded text so the code uses fewer modules, or increase the printed size.
Why does my QR code fail to scan? The three usual causes are an insufficient quiet zone (the blank margin around the code), low contrast between foreground and background, and a code that is too small or distorted. Keep at least a 4-module blank border, use dark modules on a light background, and avoid stretching the image when you place it.
Can I put my logo in the middle of a QR code? Our generator deliberately does not overlay a logo. A centred logo removes modules, and unless it stays small enough for the error correction to absorb the damage, scanning becomes unreliable — especially on a phone camera at arm's length. For business printing, a clean code scans better than a decorated one.
Should I download PNG or SVG? Use PNG for web pages, social posts, and everyday printing where a fixed pixel size is fine. Use SVG when you need to scale the code for large format printing such as a poster or banner — SVG stores the geometry as vectors, so enlarging it never softens the module edges.
Can I generate a WiFi QR code without sharing my password visibly? Yes. A WiFi QR code stores the network name, encryption type, and password inside the code itself, so a phone can join the network without anyone typing or reading the password aloud. Remember that anyone who photographs the code has the password — treat a printed WiFi code like a written note of your credentials.
👉 Try the QR code generator — six content types, PNG and SVG export, 100% local, no signup.