QR Code Best Practices: Size, Contrast, and Testing Guide
Creating a QR code takes seconds. Creating one that reliably scans in real-world conditions — printed on packaging, displayed on a screen, slightly crinkled on a flyer — takes a bit more thought. These best practices will help you avoid the most common mistakes before you commit to a print run.
Minimum Size Requirements
The most common reason QR codes fail to scan is that they're printed too small. As a rule of thumb, your QR code should be at least 2 cm × 2 cm (about 0.8 × 0.8 inches) for a scan distance of roughly 20 cm (arm's length). For larger scan distances — like a poster or storefront sign — scale proportionally.
A practical formula: minimum size = scan distance ÷ 10. For a sign scanned from 1 meter away, your QR code should be at least 10 cm × 10 cm.
When printing, always download your QR code as an SVG file from QR Forge. SVG is vector-based, so it scales to any size without the pixelation that ruins small PNG prints.
Contrast Is Non-Negotiable
QR codes rely on the scanner distinguishing dark modules (squares) from a light background. The higher the contrast, the faster and more reliable the scan. The standard is dark modules on a white or very light background.
Avoid these common mistakes:
- Light-on-dark: White code on a dark background can work, but requires testing. Many scanners struggle with inverted QR codes.
- Low contrast colors: Yellow on white, light gray on white, or dark blue on black — all problematic. Aim for at least 4:1 contrast ratio.
- Busy backgrounds: Placing a QR code over a photograph or complex pattern dramatically reduces scan reliability.
QR Forge lets you set custom foreground and background colors. Use this to match your brand while maintaining sufficient contrast.
Error Correction Levels
QR codes have built-in error correction that lets them scan even when partially damaged or obscured. There are four levels:
- Level L (7%): Lowest redundancy, smallest code. Use for clean digital displays.
- Level M (15%): Good balance for most uses.
- Level Q (25%): Better for environments where codes might get scuffed or wet.
- Level H (30%): Maximum redundancy. Use if you want to add a logo in the center of your QR code — the logo can cover up to 30% of the code and it still scans.
For most business uses, Level M or Q is the right choice. Level H is worth it if you're adding a brand logo inside the QR code.
Always Include a Quiet Zone
The "quiet zone" is the white border surrounding a QR code. It's not decorative — scanners use it to detect where the code begins and ends. The standard quiet zone is 4 modules wide (4 times the width of one small square in the code).
When placing your QR code in a design, ensure there's adequate white space around it. Butting the code right up against text or a dark border frequently causes scan failures.
Test Before You Print
This sounds obvious, but it's the step most people skip — and the most important one. Before committing to any print run, test your QR code with:
- The native iPhone camera app
- The native Android camera app
- At least one dedicated QR scanner app
- A printed copy at the actual output size (not just on screen)
Test under realistic lighting conditions — not just at your desk under ideal light. A QR code in a restaurant or retail environment will be scanned in varying light, sometimes with glare.
Keep the Destination URL Short
The more data encoded in a QR code, the denser and more complex it becomes — making it harder to scan, especially when printed small. Keep your destination URLs as short as possible. If your URL is long, consider using a URL shortener before generating the QR code.
Create your QR code the right way
QR Forge generates free custom QR codes with PNG and SVG download options. No sign-up required.