QR Codes: How They Work, What They Hold and How to Make One That Scans
Open the QR Code GeneratorFree, no sign-up.
A QR code is a square barcode that a phone camera turns into a link, a Wi-Fi login, a contact card or plain text. Making one takes seconds; making one that scans first time from a menu or a poster takes a little care. This guide covers how QR codes work, what they can hold, the printing rules that matter, and the scams to watch for when you scan.
How a QR code is built
The QR code was developed by Denso Wave in Japan and announced in 1994. A traditional barcode holds about 20 characters; a QR code can hold thousands, and it can be read from any angle.
Every code is a grid of small dark and light squares called modules, with a few fixed features:
- Three finder squares in the corners tell the scanner where the code is and which way up it is. Their 1:1:3:1:1 pattern of dark and light was chosen because it rarely appears in ordinary printed material.
- Timing patterns, dotted lines between the finders, help the scanner count rows and columns.
- Alignment squares on larger codes help correct for a tilted or curved surface.
- Everything else holds your data plus error correction data.
Codes come in 40 sizes, called versions. Version 1 is 21 × 21 modules, each version adds 4 modules per side, and version 40 is 177 × 177. More data means a bigger grid. In our generator, the 29-character link https://saatool.com/tools/qr/ makes a 29 × 29 code (version 3), 500 characters make 85 × 85, and 1,000 characters make 121 × 121.
Error correction: why a scratched code still scans
QR codes store extra recovery data so a scanner can rebuild parts that are dirty or missing. There are four levels:
| Level | Data that can be restored | Grid size for our example link |
|---|---|---|
| L | About 7% | 25 × 25 |
| M | About 15% | 29 × 29 |
| Q | About 25% | 29 × 29 |
| H | About 30% | 33 × 33 |
Higher levels are tougher but need more modules for the same content. Denso Wave notes that level M is the one most often chosen, and most of our generators use it. The Plain Text QR Generator lets you pick any level, and QR Code with Logo switches to H, because a logo uses up the margin meant for dirt and damage.
Printing rules: quiet zone, contrast, size and testing
- Leave a quiet zone. Denso Wave's printing guidance asks for a blank margin four modules wide on every side. Scanners use it to find the edge of the code, so keep text, borders and photos out of it.
- Keep strong contrast. Dark modules on a light background work best. Pale colours, gradients and light-on-dark (inverted) codes can fail on some scanners. If you use a transparent background, place the code on something light.
- Print it big enough. A common rule of thumb is at least about 2 × 2 cm for something read up close, like a business card, and roughly one tenth of the scanning distance for signs: about 30 cm wide for a poster read from 3 metres.
- Keep the content short. A 29 × 29 code printed 2 cm wide, quiet zone included, has modules about half a millimetre across. A 1,000-character code at the same size has modules under 0.2 mm, which many phone cameras can't resolve.
- Avoid glare and curves. Glossy lamination, reflections and codes wrapped around bottles all make scanning harder.
- Test before the print run. Scan with an iPhone and an Android phone, check the exact address and that it loads on mobile data, then print one copy at final size and scan it from the real distance.
What a QR code can hold
A QR code only stores text, and the phone decides what to do from how that text starts. These are the common formats and our generator for each:
| What it does | Text starts with | Our tool |
|---|---|---|
| Opens a website | https:// | QR Code Generator |
| Joins a Wi-Fi network | WIFI: | Wi-Fi QR Generator |
| Opens a WhatsApp chat | https://wa.me/ | WhatsApp QR Generator |
| Saves a contact | BEGIN:VCARD | vCard QR Generator |
| Starts an email | mailto: | Email QR Generator |
| Dials a number | tel: | Phone QR Generator |
| Starts a text message | SMSTO: or sms: | SMS QR Generator |
| Shows a place on a map | A Google Maps link or geo: | Location QR Generator |
| Adds a calendar event | BEGIN:VEVENT | Calendar Event QR Generator |
| Requests a Bitcoin payment | bitcoin: | Bitcoin QR Generator |
| Shows text, even offline | Anything else | Plain Text QR Generator |
Phones don't all treat every format the same way. With calendar codes, most Android phones add the event while the iPhone camera just shows the details, so our event tool also offers an .ics file. Wi-Fi codes carry the password in readable form; our guide to sharing Wi-Fi with a QR code covers that in detail.
Static vs "dynamic" QR codes
A static code stores your link or text in the pattern itself. It works for as long as the destination exists, needs no account and involves no tracking. The downside is that you can't change it after printing.
A "dynamic" code stores a short link to a QR company's server, which then redirects to your real page. You can change the destination and see scan counts, but every scan depends on that company. If your subscription lapses or the service closes, printed codes can stop working.
All our generators make static codes that never expire. To get the flexibility of a dynamic code without the dependency, point the QR code at a page on your own domain, such as yourcompany.com/menu, and update that page or its redirect when needed.
Scanning safely: watch out for "quishing"
QR phishing, nicknamed quishing, works because nobody can read a QR code by eye. The US Federal Trade Commission warns that scammers stick their own codes over real ones, on parking meters for example, and send codes by email or text with urgent stories about undelivered parcels or account problems. The FBI's Internet Crime Complaint Center has warned about tampered codes too, leading to fake sites that ask for login and payment details.
- Read the address your phone previews before opening it. Look for misspellings and odd domains.
- Don't scan codes in emails or messages you weren't expecting, especially ones that push you to act fast.
- Look for stickers placed over the original code on meters, posters and restaurant tables, and check your own public codes now and then.
- For payments, use the official app or type the website address yourself, and install apps from your phone's app store, not from a QR code.
- Keep your phone updated and protect your accounts with strong passwords and 2-step verification, as our password guide explains.
The FBI also advises against downloading separate QR scanner apps. To see a code's contents before anything opens, our QR Code Scanner reads it with your camera in the browser and shows the full text and website name first; the QR Code Decoder does the same from a photo or screenshot. Neither uploads the picture.
Make a QR code with SAA Tool
- Open the QR Code Generator and paste your link or text into Link or text.
- Choose a Size: Small (300 px) for screens and emails, Medium (600 px) as a default, or Large (1,200 px) for print, which is 300 dpi at 10 cm wide.
- Click Create QR Code. The code is made in your browser, so your text isn't sent anywhere.
- Scan the preview with your phone, then click Download PNG.
This generator makes a black-on-white PNG at level M with the four-module white border included, so keep that border in your design. It warns you above 500 characters. For more control:
- QR Color Generator: pick colours, a Dots style (Square, Rounded or Dots) and an optional transparent background, then click Download PNG or Download SVG. SVG stays sharp at any print size.
- QR Code with Logo: choose Your logo and set the Logo size between 12% and 30%. It saves PNG only.
- Both read their own result back and show Scan check passed or Scan check failed after every change. The typed generators in the table above also redraw as you type and offer PNG and SVG downloads.
Quick answers
Why won't my code scan, and how much can it hold?
Check size, contrast, the quiet zone and glare first, then the amount of data. The largest version holds up to 7,089 digits or 2,953 bytes of text at the lowest error correction level, but anything beyond a few hundred characters makes a dense code that's hard to scan, so use a short link instead.
Can a QR code contain a virus?
The code itself is only text, but it can point to a malicious website or download, so treat it like an unknown link.
Sources
- DENSO WAVE: History of QR Code
- DENSO WAVE: Information capacity and versions of QR Code
- DENSO WAVE: Error correction feature
- DENSO WAVE: Point for determining the code area
- Federal Trade Commission: Scammers hide harmful links in QR codes to steal your information
- FBI Internet Crime Complaint Center: Cybercriminals Tampering with QR Codes to Steal Victim Funds
Spotted a mistake or something out of date? Tell us and we'll fix it.