Guide
How QR codes store data and stay scannable
By Logappradeep · ServiceNow developer
A QR (Quick Response) code is a two-dimensional barcode invented by Denso Wave in 1994 for tracking automotive parts and standardized as ISO/IEC 18004. Because phone cameras can read them instantly, QR codes now link printed material to the web: menus, posters, packaging, business cards, event tickets, and Wi-Fi sign-in cards.
What is inside a QR code
- Finder patterns: the three large squares in the corners, which let a scanner locate the code and work out its rotation.
- Timing and alignment patterns, which help correct for perspective and curved surfaces.
- Format information that records the error correction level and mask pattern.
- Data and error correction modules, the black and white squares that fill the rest.
QR codes come in 40 sizes, called versions, from 21×21 modules up to 177×177. The more data you encode, the larger and denser the grid becomes, so a short URL scans more reliably than a long one. At the largest size a code holds roughly 2,300 bytes at level M and 1,270 at level H, and the generator warns you when your content is too long.
Error correction and logos
QR codes use Reed–Solomon error correction, which lets a scanner rebuild missing or damaged parts. There are four levels, recovering roughly 7% (L), 15% (M), 25% (Q), or 30% (H) of the code. This generator uses level M for plain codes, a good balance of density and robustness, and switches to level H, the highest, as soon as you add a logo. That redundancy is what allows a small logo to cover the center of the code while it still scans. Keep logos modest in size: the more modules they hide, the less margin is left for smudges, glare, and low-quality cameras.
Content types this tool supports
- URL or text: any link or plain text. Phones offer to open URLs that start with
https://. - Wi-Fi: encodes the network name, security type (WPA/WPA2, WEP, or none), password, and an optional hidden-network flag in the
WIFI:T:WPA;S:...;P:...;;format that iOS and Android cameras recognize. Special characters such as;and,are escaped for you, so guests can join without typing. - Email: creates a
mailto:link with the recipient, subject, and message, opening a pre-filled email.
Design and printing tips
- Keep strong contrast. Dark modules on a light background work best. Inverted codes (light on dark) and low-contrast color pairs fail on some scanners.
- Leave a quiet zone. A clear margin around the code helps scanners separate it from surrounding graphics. Do not crop the downloaded image tightly.
- Size for the scanning distance. A code on a poster read from across a room must be much larger than one on a business card.
- Test before printing. Scan the final file with several phones, in the lighting where it will be used.
- Static codes cannot be edited. The data is baked into the pattern. For printed material that may outlive a campaign, encode a URL on a domain you control, so you can redirect it later.
Privacy
Codes are generated in your browser. Your Wi-Fi password, URLs, and uploaded logo image are never sent to a server, and the downloaded PNG is created on your device.