What a QR code stores
A QR code stores text in a grid of dark and light squares called modules. A link is simply text that a phone recognizes as a web address; a Wi-Fi code is text in a format that phone cameras can read to join a network.
This generator makes static codes: the content is in the pattern, so there is nothing that can expire and nothing that records scans. Services that sell dynamic QR codes put their own short link in the pattern and redirect from there, which lets them count scans and change the target, but the printed code stops working if that service or subscription ends.
Error correction, quiet zone and the Wi-Fi format
Every QR code carries extra error-correction data, so a scanner can still read it when part of it is dirty, damaged or covered. The four levels restore roughly 7%, 15%, 25% or 30% of the data; a higher level adds modules, so the same content makes a denser code.
Scanners also need an empty border, the quiet zone, to find the code. The QR standard asks for at least four modules on every side. Wi-Fi codes follow a short text format, with backslashes before any special characters in the name or password.
WIFI:T:WPA;S:Studio Guest;P:my\;pass;H:false;; T security: WPA, WEP or nopass S network name (SSID) P password H true for a hidden network \ ; , : and " are escaped with a backslash
QR codes in client and print work
A QR code on a poster, a package or a slide is only useful if it scans on the first try. Short content makes fewer, larger modules, so a short link scans more easily than a long one full of parameters.
Before anything goes to print, test the code at its final size with a few different phones, in the light it will be seen in.
- Use SVG for print and large formats, PNG for screens and documents
- Keep a dark code on a light background with strong contrast
- Leave the quiet zone empty: no text, frames or images right up to the code
- If a logo goes on top of the code, use level H and test it carefully
- Add a short line next to the code that says what it opens