ToolDoor
ToolsGuidesPricing
  1. Home
  2. /
  3. Guides
  4. /
  5. QR Code Generator

9 min read · updated August 2, 2026

QR Code Generator: Make Codes That Scan Every Time

QR Code Generator

Generate QR codes for URLs and text — free, no signup

A QR code generator turns a URL, WiFi login, or contact card into a scannable matrix barcode you can print on a menu, poster, business card, or slide. Generating one takes seconds; generating one that still scans after being printed small, laminated, and stuck under a restaurant's pendant lighting takes a little understanding of how the format actually works.

Most QR failures trace back to a handful of avoidable decisions: encoding too much data, choosing colors without enough contrast, printing too small for the scanning distance, or trusting a dynamic-code service that later put the redirect behind a paywall. This guide walks through each of those decisions — including the engineering inside the code itself — so the batch you send to the print shop works on the first scan.

Static versus dynamic codes, and why free codes never expire

A static QR code encodes your data — the URL, the WiFi credentials, the vCard text — directly into the pattern of dark and light modules. Nothing else is involved: no server, no account, no lookup. A phone camera decodes the pattern and acts on the content locally. That is why a static code can never expire. The claim that QR codes stop working after a trial period describes dynamic codes, not the format.

A dynamic code encodes a short redirect URL owned by the code service. When someone scans it, their phone visits the service's server, which forwards them to your real destination. The upside is real: you can change the destination after printing, and you get scan counts. The downside is equally real: every scan depends on that company's server staying up and your subscription staying paid. Lapsed dynamic codes are the reason so many printed codes in the wild lead to upgrade pages instead of menus.

The decision is straightforward. If the destination will not change — a homepage, a WiFi network, your contact card — use a static code and it will outlive the paper it is printed on. If you genuinely need to swap destinations after printing, you can get static-code durability by pointing the code at a short path on a domain you control and changing the redirect server-side, which keeps the dependency in your own hands instead of a third party's.

How a QR code stores your data

A QR code is a grid of square modules, and its size is defined by version number: version 1 is 21 by 21 modules, and each version adds four modules per side up to version 40 at 177 by 177. Your generator picks the smallest version that fits your data, which is why a short URL produces a sparse, chunky code and a long URL with tracking parameters produces a dense one. Density matters physically — more modules in the same printed area means each module is smaller and harder for a camera to resolve.

The three large squares in the corners are finder patterns; they let the decoder locate the code and determine its orientation from any angle, which is why a QR code scans upside down. Timing and alignment patterns between them establish the module grid even when the paper is curved or the photo is taken at an angle. The data itself is written in a zigzag path across the remaining modules, with a mask pattern XORed over it to break up large uniform areas that would confuse cameras.

The most useful piece of the spec to understand is Reed-Solomon error correction. Alongside your data, the code stores redundant recovery codewords, and the amount is selectable: level L can reconstruct the message with about 7 percent of the code damaged, M about 15 percent, Q about 25 percent, and H about 30 percent. This is why a scratched or partially obscured code still scans. Higher levels cost capacity — the same URL at level H needs a denser code than at level L — so the choice is a trade between resilience and module size.

Design decisions that break scanning

Scanners need contrast between modules and background, and they are built for dark modules on a light field. Subtle brand palettes are where codes die: a mid-gray code on a beige flyer might scan on a flagship phone in good light and fail on everything else. Keep the effective contrast high, and be cautious with inverted codes — light modules on a dark background — because a meaningful share of camera apps still refuse them. Custom colors are fine as long as the module color stays clearly darker than the background; a deep navy or forest green on white scans as reliably as black, while pastels on white do not.

Size is a function of scanning distance, and the working rule is distance divided by ten. A code scanned from 30 centimeters away — a business card in hand — needs to be about 3 centimeters across; a poster meant to be scanned from 3 meters needs a code around 30 centimeters. Below roughly 2 by 2 centimeters, dense codes become unreliable for handheld scanning no matter the print quality.

Before sending anything to print, run down this list:

  • Quiet zone: leave a clear margin of at least four module-widths around the code; cropping it tight against other artwork is one of the most common scan killers.
  • Logo overlays: a center logo works by consuming error correction budget, so pair it with level H, keep it well under a quarter of the code area, and test-scan afterward.
  • Shorten the payload: trim tracking parameters or use a short URL so the code stays sparse and each module prints larger.
  • Surface: glossy lamination and foil create glare that blinds cameras at certain angles; matte finishes scan more reliably.
  • Test on more than one phone, at the real distance, in the real lighting, before the print run — a ten-second check that saves reprinting 500 flyers.

PNG or SVG: choosing an export format

PNG is a raster format — a fixed grid of pixels — and it is the right choice for screens: web pages, email signatures, slide decks, and documents. Export it large; a QR code is pure geometry, so there is no penalty for generous dimensions, and downscaling is always safe while upscaling turns crisp module edges into gray blur that hurts scan rates.

SVG is vector: it describes the squares mathematically, so it renders perfectly sharp at any size, from a sticker to a trade-show wall. Print shops prefer it, it drops straight into Illustrator or InDesign workflows, and one file covers every future size need. The practical rule is SVG for anything headed to a printer or a designer, PNG for anything staying on a screen. If you must print from a PNG, size it so the code prints at 300 dots per inch or better at its final physical dimensions — a code destined to be 5 centimeters wide on paper should be at least 600 pixels wide in the file.

One format to avoid entirely for QR codes is JPEG. Its lossy compression smears the sharp module edges the decoder relies on and introduces gray transition pixels along every boundary, which effectively lowers contrast at exactly the scale that matters. A heavily compressed JPEG code often still scans on screen and then fails after printing, because the printer renders the compression artifacts faithfully. There is no size benefit worth that risk when PNG handles flat black-and-white geometry efficiently anyway.

Where QR codes earn their place

The format works best where typing is annoying and the payoff is immediate. A WiFi code is the clearest example: the code embeds the network name, encryption type, and password in a standard format, and scanning it joins the network directly — no reading a password off a chalkboard, no support questions from guests. Printed once and framed by the register or the guest room desk, it works for years because it is static.

The inverse test matters just as much: a QR code is the wrong tool when the audience is already on a device. A code in an email, on a web page, or in a social post asks someone to point a phone at the screen they are reading — a plain link does the job better. Codes belong at the boundary between the physical world and a URL, and almost nowhere else.

Other placements that consistently justify themselves:

  • Table menus and counter signage, where a static code pointing at your own menu URL costs nothing and never expires.
  • Business cards with a vCard payload, so a new contact lands in the phone's address book with name, number, and email in one scan.
  • Conference slides linking to a repo, paper, or signup page — sized large enough to scan from the back row, which usually means most of a slide.
  • Equipment and asset labels linking to manuals, calibration logs, or reorder pages, where hunting down documentation would otherwise involve a shared drive.
  • Product packaging and print ads, where a code with a campaign-tagged URL gives print the click-through measurement it otherwise lacks.

Common questions

QR Code Generator FAQs

Do QR codes expire?
Static QR codes never expire because the data is encoded directly in the pattern with no server involved. Dynamic codes from commercial services stop working when the subscription lapses or the service shuts down, since every scan routes through their redirect. If you generate a static code for a URL, it works as long as the URL does.
How small can I print a QR code?
About 2 by 2 centimeters is the practical minimum for handheld scanning of a typical URL code. The governing rule is scanning distance divided by ten: a poster read from 3 meters needs a code roughly 30 centimeters wide. Codes carrying long URLs are denser and need to be printed larger than sparse ones to stay reliable.
Can I put a logo in the middle of a QR code?
Yes, because error correction lets a code survive partial obstruction — the logo simply consumes some of the recovery budget. Use the highest error correction level, keep the logo comfortably under a quarter of the code area, and always test-scan the final artwork on a couple of phones. A logo plus low error correction plus outdoor wear is how branded codes end up unscannable.
What is the best QR code format for printing?
SVG, because it is vector and stays perfectly sharp at any printed size, from stickers to banners. Print shops and design tools handle it natively, and one export covers every dimension you will ever need. Reserve PNG for on-screen uses, or export it very large if print is unavoidable.
How do I make a WiFi QR code?
Choose the WiFi type in a QR code generator and enter your network name, password, and encryption type; the tool encodes them in a standard format that phone cameras recognize. Scanning the code prompts the phone to join the network directly, with no typing. Since credentials are embedded in the printed code, use it for guest networks rather than networks you need to keep private.
Why is my QR code not scanning?
The usual causes are low contrast between the code and its background, a missing quiet zone around the edges, printing too small for the scanning distance, or an inverted color scheme that some camera apps reject. Very long URLs also produce dense codes that fail at small sizes. Fix contrast and margin first, then shorten the payload or print larger.

A QR code is one of the few pieces of print infrastructure that is genuinely free to get right: encode the shortest payload you can, keep the contrast and quiet zone intact, size for the real scanning distance, export SVG for print, and test on an actual phone before the run. Do that and a static code will keep working for as long as the thing it points to exists.

The ToolDoor QR Code Generator is free with no signup — paste a URL or any text payload, set the size and colors, and download a static code as a PNG straight from your browser.

Try QR Code Generator now

Free, no signup, no watermarks.

Open the tool

Nearby doors

Color Palette Generator

Extract colors from images or generate palettes

Favicon Generator

Generate all favicon sizes from one image

Image Resizer

Resize images to exact dimensions

ToolDoor

Forty-two free online tools for images, PDFs, text, and the odd jobs in between. A SaTekk LLC product.

Tools

  • Image tools
  • PDF tools
  • Text tools
  • SEO tools
  • Utilities

Popular

  • Merge PDF
  • Compress image
  • PDF to Word
  • QR code generator
  • Word counter

Site

  • Guides
  • Pricing
  • Privacy policy
  • Terms of service
  • Cookie policy

Company

  • Contact
  • About SaTekk

© 2026 SaTekk LLC. All rights reserved. · Built by SaTekk ·