QR Code Generator

Make a static QR code for a link, text, email or Wi-Fi login. The data is encoded straight into the pattern with no redirect service, so it keeps working. Download as PNG or SVG.

QR Codes Explained: How They Work, Static vs Dynamic, and Design Rules for Print

QR codes are everywhere: menus, posters, packaging, business cards, event tickets, Wi-Fi details on café walls. Most people scan them without a second thought. But designing a QR code that scans reliably, and that will keep working for years, depends on understanding a few things about how they work and what kind of code you’re creating.

QR code anatomy showing finder patterns, quiet zone and data modules

A short history

The QR (Quick Response) code was invented in 1994 by Masahiro Hara at Denso Wave, a Toyota group company, to track car parts during manufacturing. It could be read faster and hold more data than traditional barcodes. Denso Wave made the specification freely available and chose not to exercise its patent rights, which helped it spread. It became an international standard, ISO/IEC 18004. Built-in scanning in phone cameras (iOS 11 in 2017 and Android around the same period) made QR codes truly mainstream.

How a QR code stores data

A QR code is a square grid of black and white modules. Several parts have fixed jobs:

  • Finder patterns: the three large squares in the corners let the scanner locate the code and work out its orientation.
  • Alignment patterns: smaller squares (in larger codes) help correct for distortion when the code is curved or photographed at an angle.
  • Timing patterns: alternating modules between the finders help determine module size.
  • Format and version information: encode the error correction level and mask pattern, and for larger codes, the version.
  • Data and error correction modules: everything else.

Versions describe the size. Version 1 is 21 × 21 modules; each version adds 4 modules per side, up to version 40 at 177 × 177. Longer content needs a higher version, which means smaller modules at the same printed size.

Error correction levels

QR codes use Reed–Solomon error correction, the same family of math used on CDs and in deep-space communication. Extra data lets a scanner reconstruct the content even if part of the code is damaged, dirty or covered.

LevelRecovers up toTrade-off
L (Low)~7% damageSmallest code
M (Medium)~15%Good default
Q (Quartile)~25%Industrial or outdoor use
H (High)~30%Largest code; allows a small logo overlay

Higher error correction means more modules for the same content. For clean digital or print use, M is a sensible default.

To see what that costs, we encoded three real payloads with the generator on this page and noted the QR version (size) it chose at each level:

ContentBytesLMQH
https://thefastdesigns.online2925×2529×2929×2933×33
A Wi-Fi login (WPA, short password)4129×2929×2933×3337×37
A long URL with three UTM tags11941×4145×4553×5357×57

The tracking-tagged URL needs 57 × 57 modules at level H. Printed 2 cm wide on a business card, each module would be about 0.35 mm (less once the quiet zone is included), which older phone cameras struggle with. Shortening the URL helps far more than lowering error correction does: the bare domain at level H is still smaller than the UTM link at level L.

Static versus dynamic QR codes

This is the most important decision, and many people don’t realise they’re making it.

AspectStatic QR codeDynamic QR code
What it containsYour actual URL or dataA short redirect URL owned by a QR service
Change destination laterNoYes
Scan analyticsNoYes
Depends on a third partyNoYes; if the service ends or the subscription lapses, the code can stop working
CostFreeUsually a subscription
PrivacyNo trackingScans pass through the provider

Many “free QR generators” create dynamic codes that redirect through their servers, then stop working after a trial period unless you pay. That’s why printed menus and posters sometimes lead to error pages. If you print a code, know which type it is.

The QR code generator above creates static codes entirely in your browser. They contain your data directly and never expire. If you need to change the destination later without reprinting, point the code at a URL on your own website (for example yourdomain.com/menu) and update what that page shows or redirects to. You get the flexibility of a dynamic code without depending on a QR company.

Wi-Fi QR codes

A Wi-Fi QR code contains a specially formatted text string, such as WIFI:T:WPA;S:NetworkName;P:password;;. Phone cameras recognise it and offer to join the network. Special characters in the network name or password (such as ;, ,, : and \) must be escaped with a backslash, which a good generator does automatically. Note that anyone who can see the code can join the network, so it’s best for guest networks.

Design rules for reliable scanning

Quiet zone. Keep a clear margin of at least 4 modules around the code. Text, borders or images too close to the code stop scanners from finding its edges.

Contrast. Dark modules on a light background. Strong contrast matters more than the actual colors; a dark navy on cream works, while pastel on white often doesn’t. Inverted (light-on-dark) codes are part of the standard, but some older scanners don’t read them.

Minimum size. A common rule of thumb is that the code’s width should be at least one tenth of the scanning distance. For something scanned at arm’s length, around 2 cm (0.8 in) is a practical minimum; a poster read from 3 metres away needs about 30 cm. Longer content (higher versions) needs to be printed larger.

Keep content short. Shorter URLs create simpler codes with bigger modules that scan faster. Use a clean, short link on your own domain.

Logos. A small logo in the center works with error correction level H, as long as it covers well under 30% of the code and doesn’t touch the finder patterns. Test carefully.

Use vector for print. Export SVG so the code stays perfectly sharp at any size. PNG is fine for screens.

Test before you print 500 copies

Before printing hundreds of copies:

  1. Scan with at least two different phones (iOS and Android).
  2. Test at the actual printed size, in the actual lighting, from the intended distance.
  3. Check that the destination loads well on mobile.
  4. Make sure the URL is something you control long-term.