Error correction levels
QR codes use Reed–Solomon error correction, so a damaged or partly covered code can still be read. Higher levels make the code denser.
| Level | Recovers up to | Max bytes (v40) | Use |
|---|---|---|---|
| L | ~7% | 2,953 | Screens, clean prints |
| M | ~15% | 2,331 | General use |
| Q | ~25% | 1,663 | Industrial labels |
| H | ~30% | 1,273 | Codes with a logo overlay |
Useful QR payloads
Wi-Fi WIFI:T:WPA;S:MyNetwork;P:secret123;; Email mailto:[email protected]?subject=Hi Phone tel:+15551234567 SMS SMSTO:+15551234567:Hello Location geo:40.7128,-74.0060
How it is built
The encoder uses byte mode with UTF-8, picks the smallest version (1–40) that fits, adds Reed–Solomon codewords, interleaves the blocks and evaluates all eight mask patterns, keeping the one with the lowest penalty score, as described in ISO/IEC 18004. Keep the white quiet zone around the code when printing.