The QR Generation Pipeline: Encoding Mode Selection, Version Scaling, and the Download Format Decision
Step-by-step: pick a type, enter your data, choose size and error correction, then download as PNG, SVG, or PDF — with a worked example and a pre-print test protocol.
Updated September 2026
Creating a QR code takes under a minute once you know what you want it to do. The process is the same regardless of type — only the data you enter changes.
- 1Choose the right generator for your content — URL, Wi-Fi, vCard, email, SMS, phone, location, text, social, or menu.
- 2Enter your data. For a URL this is a web address; for Wi-Fi it is the network name and password; for a vCard it is your contact details.
- 3Pick a size. 256px is fine for screens; use 512px or larger for print, or download as SVG so it scales without pixelating.
- 4Choose an error-correction level. Medium is a good default; use High for anything printed or handled roughly.
- 5Preview the code to make sure it looks right.
- 6Download as PNG (screens), SVG (large print), or PDF (print shops).
- 7Test the finished code with two or three different phones before you print or publish it.
A worked example
Say you run a bakery and want a code on your window that opens your online order page. You open the URL generator and paste your address — https://sweetcrumbbakery.com/order — including the https:// prefix. At medium error correction the preview shows a 29×29-module code: comfortably scannable. Because the window is behind glass and people will stand about a metre away, you bump error correction to High and download the SVG so the print shop can scale it to 12 cm without any softness. Total time: about 40 seconds.
Choosing a download format
| Format | Best for | Scales? | Notes |
|---|---|---|---|
| PNG | Screens, social posts, small prints | No (pixelates when enlarged) | Export at 512px+ if it will ever be printed |
| SVG | Banners, posters, signage, logos | Yes (infinite) | Vector — the print shop can scale it to any size |
| Business cards, flyers, brochures | Yes (print-ready) | Preserves exact physical dimensions |
The quiet zone: the margin that is part of the code
The white border around a QR code is not empty space — the standard requires it. It must be at least four modules wide on every side. When you place a code in a design, resist the urge to crop close to the squares or let a background colour or photo touch the edge. A code with a swallowed quiet zone is the single most common cause of "it scans on my phone but not on theirs".
A pre-print test protocol
- 1Decode the code with a decoder tool (not just a scanner) and confirm the decoded text is exactly what you entered — character for character.
- 2Scan it with at least one iPhone and one Android phone, from the real viewing distance.
- 3Scan it in the lighting it will live in — window glare and dim restaurant light both matter.
- 4Print one copy at final size on the final material before running the batch.
- 5Re-test after lamination or framing, since gloss can add reflections the screen preview never showed.
Choosing the right type for your goal
The single biggest mistake people make is reaching for the wrong QR type. A URL code is the right answer for almost every marketing use, because it sends the visitor to a web page you fully control and can update without reprinting. The specialised types exist for cases where the phone should perform a native action — join Wi-Fi, save a contact, draft an email — rather than open a browser.
| Type | Best for | What the visitor gets after scanning |
|---|---|---|
| URL | Menus, offers, landing pages, reviews | A web page opens in the browser |
| Wi-Fi | Guest networks, cafés, rentals | A one-tap prompt to join the network |
| vCard | Business cards, networking | Contact details offered for saving |
| Support, feedback, sales enquiries | A pre-addressed email draft | |
| SMS | Keyword signups, short codes | A pre-filled text message |
| Phone | Vans, flyers, service calls | A one-tap call to your number |
| Location | Shops, events, directions | The spot opens in Maps |
| Text | Serial numbers, IDs, plain payloads | Raw text on screen |
| Calendar | Bookings, events, reminders | An event offered to the calendar |
When in doubt, choose URL. You can always point a URL code at a page that itself links to a vCard, a review form, or a sign-up — and change that page later without touching the printed code. The specialised types lock the action into the image forever, which is exactly what you want for a Wi-Fi password or a business card, but rarely what you want for a marketing campaign.
Customising the look without breaking the code
A QR code does not have to be pure black on white, but every visual change trades scannability for style. The safe rules: keep the dark modules at least 4.5:1 darker than the light ones (test with the Quality Checker), never invert to light-on-dark for print, and leave the quiet zone untouched. A centred logo is fine on a High-error-correction code if it covers no more than about 15% of the area and never touches the three corner finder patterns.
Colour is where most custom codes fail. A deep navy on cream scans beautifully; a mid-grey on pastel yellow looks designed and scans badly. If brand colours are light, use them for the background and keep the modules near-black. Always test a styled code with two real phones before printing — the screen preview tells you nothing about how a camera in dim light will read it.
Common mistakes and how to fix them
| Mistake | Why it fails | Fix |
|---|---|---|
| No https:// on the URL | Phone opens a search instead of the page | Always paste the full address including the protocol |
| Cropped quiet zone | Scanner cannot find the code edges | Re-export with the white margin, at least 4 modules |
| PNG enlarged for a poster | Edges blur, modules merge | Regenerate as SVG and scale vector |
| Logo covering a corner | Finder pattern lost, code unreadable | Keep the logo centred, away from all three corners |
| Reversed colours (light on dark) | Many scanners expect dark-on-light | Print dark modules on a light background |
| Tested on one phone only | Works for you, fails for customers | Test with at least one iPhone and one Android |
The encoding pipeline, end to end
When you press generate, the encoder walks a fixed pipeline. First it analyses the input to pick the densest encoding mode that can represent every character: numeric mode packs three digits into ten bits, alphanumeric mode packs two characters into eleven bits, and byte mode consumes a full eight bits per character for anything outside the alphanumeric set. A URL written in uppercase and digits stays in alphanumeric mode and produces a noticeably smaller pattern than the same address in mixed case, which forces byte mode. The mode choice is the single largest determinant of the final version, and therefore of how dense the printed code looks.
Next the encoder splits the payload into data codewords and appends Reed-Solomon parity codewords according to the error-correction level you selected. It interleaves the codewords across the grid in a defined block pattern, applies one of eight mask patterns (choosing the one that produces the most visually noisy result, because large solid or empty regions confuse scanners), and writes the format-information strip that records the mask and correction level. Every compliant encoder produces an identical matrix for identical input — there is no “better” or “worse” QR pattern for the same data and settings, only the one the standard mandates.
The download format you choose governs how that matrix survives scaling. PNG bakes the matrix into a fixed pixel grid, so enlarging it softens module edges until adjacent squares merge; SVG and PDF store each module as a vector rectangle, so the code stays mathematically identical from a business card to a billboard. This is why the format decision is not cosmetic — it is the difference between a code that scans at any size and one that pixelates past its native resolution.
Always include the full https:// in a URL. Without a protocol, some phones treat the text as a search query instead of opening the link.