QR Code Design Best Practices: Size, Contrast, Logos and Testing
By Saerly Team · SAER Technologies · · 8 min read
A well-designed QR code is large enough, high in contrast, surrounded by a clear margin and tested on real phones. Here are the rules for size, colour, logos, error correction and print.
A good QR code design is one that scans instantly on any phone. That means a dark code on a light background with strong contrast, a clear margin (quiet zone) of about four modules on every side, a size of at least roughly 2 x 2 cm for close scanning, and a logo only if you raise the error correction level. Add a short call to action, export SVG for print, and test the printed proof on several phones before you order copies.
Key takeaways
- Scannability comes first; branding comes second.
- Size the code at about one tenth of the scanning distance, with around 2 x 2 cm as a practical minimum.
- Keep a quiet zone of four modules and use dark-on-light colours with high contrast.
- Error correction levels recover roughly 7% (L), 15% (M), 25% (Q) and 30% (H) of the code. Use Q or H with a logo.
- Shorter content makes a simpler pattern. Encode a short link rather than a long URL.
- Always test the printed version on multiple phones in real conditions.
How a QR code is read (and why design rules exist)
A QR code is a grid of small squares called modules. The three large squares in the corners are finder patterns, which let the camera locate the code and work out its angle. Smaller alignment and timing patterns help the scanner correct for distortion. The rest of the grid holds your data plus extra error correction data.
Almost every design rule comes from helping the camera do three things: find the code, separate dark modules from light ones, and read enough modules correctly to rebuild the data. When you change colours, shapes or add a logo, you are spending some of that margin for error. The goal is to spend it carefully.
1. Keep the content short
The more characters you encode, the more modules the code needs. A long URL with tracking parameters can produce a dense pattern with very small modules, which is harder to scan when printed small or viewed from a distance. Encoding a short link like saerly.com/offer keeps the grid simple. A dynamic QR code does this automatically, because the code holds a short link and the full destination lives on the server. If you are unsure which type you need, read static vs dynamic QR codes.
2. Get the size right
The common rule of thumb is a ratio of about 10:1 between scanning distance and code width. Someone scanning from 30 cm needs a code about 3 cm wide; from 2 metres, about 20 cm. For anything held in the hand, roughly 2 x 2 cm is the practical minimum, and slightly larger is safer.
| Use | Scan distance | Suggested width |
|---|---|---|
| Business card, label, wedding card | 15-25 cm | 2-2.5 cm |
| Table tent, menu, counter standee | 30-50 cm | 3-5 cm |
| A4 or A3 poster | 1-1.5 m | 10-15 cm |
| Shop banner, property board | 3-5 m | 30-50 cm |
Increase the size if the code is dense, the surface is textured (cloth, kraft paper, corrugated board), or people will scan at an angle.
3. Respect the quiet zone
The quiet zone is the empty margin around the code. The QR standard calls for four modules on every side. Without it, the scanner may confuse nearby text, borders or images with the code itself. Designers often crop this margin to save space; it is one of the most common reasons a code fails. Treat the quiet zone as part of the code and keep it the same colour as the code background.
4. Use strong contrast, dark on light
Scanners look for the difference in brightness between dark and light modules, not the colour itself. That gives you room for brand colours as long as the contrast is strong.
- Do: black, navy, dark green, maroon or deep purple on white or a very light tint.
- Avoid: light grey, yellow, pastels or anything mid-tone for the modules.
- Avoid: colour pairs with similar brightness, like red on green or blue on purple.
- Be careful with inverted codes (light modules on a dark background). Many modern phones can read them, but some scanners cannot. If your audience uses a wide range of devices, stick to dark on light.
- Avoid gradients and photos behind the code, which create uneven contrast across the grid.
A simple check: convert your design to greyscale. If the code still looks clearly dark on clearly light, the contrast is probably fine.
5. Choose the right error correction level
Error correction is extra data that lets the code be read even if part of it is damaged, dirty or covered. QR codes have four levels:
| Level | Approximate recovery | When to use |
|---|---|---|
| L (Low) | About 7% | Clean screens, short content, small codes where density matters |
| M (Medium) | About 15% | A sensible default for most print and screen use |
| Q (Quartile) | About 25% | Codes with a small logo, or outdoor and handled surfaces |
| H (High) | About 30% | Codes with a larger logo, or harsh conditions like packaging and stickers |
Higher levels add more modules, so the code becomes denser. If you choose H, make the code a little bigger to compensate. This is another reason short content helps: it leaves room for strong error correction without making the grid too busy.
6. Add a logo carefully
A logo in the centre makes a code look branded and more trustworthy, but it covers data modules. The error correction rebuilds what is hidden, so the logo must stay well within that budget.
- Set error correction to Q or H before adding a logo.
- Keep the logo small, roughly a fifth of the code width or less, and centred.
- Never cover the three corner finder patterns.
- Give the logo a light background or padding so its edges do not blend into the modules.
- Use a simple mark, not a detailed photo or long text.
The QR designer in Saerly lets you add a logo and set the error correction level in the same screen, so you can see how the code changes as you adjust them. Test again every time you change the logo size.
7. Style dots and corners within limits
Rounded dots, softer corner shapes and custom corner colours can make a code fit your brand. Most modern scanners handle them well, provided the shapes are still clearly separate and the finder patterns remain recognisable as squares within squares. Avoid styles where the modules shrink to tiny dots with a lot of white space between them, because they reduce the dark area the scanner can detect, especially when printed small.
8. Add a clear call to action
People are more willing to scan when they know what they will get. Place a short line near the code:
- "Scan to view the menu"
- "Scan to order on WhatsApp"
- "Scan for directions to the venue"
- "Scan for floor plans and prices"
Showing your brand name or a short, readable link under the code also builds trust and gives people a way in if their camera struggles. For more on why people hesitate before scanning, see are short links safe?
9. Pick the right file format and print setup
Export SVG for anything printed. It is a vector format, so the edges stay crisp at any size. Use PNG for websites, presentations and social posts, and download a large version rather than enlarging a small one.
Print tips that prevent failures:
- Avoid placing codes over folds, across binding, or on tightly curved surfaces like small bottles.
- Matte finishes scan more reliably than glossy lamination, which can cause glare.
- Metallic, foil and very fine screen-printed inks can reflect light or blur edges; print the code in a solid ink.
- On fabric or textured stock, go larger and use a higher error correction level.
- For outdoor use, choose fade-resistant materials so the contrast holds up in the sun.
10. Test like a customer
A code that scans on your monitor proves very little. Before sending a file to print:
- Print one proof at the exact final size on the final material if possible.
- Scan it with at least three phones, mixing iPhone and Android and older and newer models.
- Use the default camera app plus any scanners your customers commonly use, such as Google Lens.
- Try the real distance, a slight angle, low light and bright light.
- Check that the destination opens quickly on mobile data and looks right on a small screen.
- For dynamic codes, confirm the test scans show up in your analytics.
If any test is slow, fix it before printing: make the code larger, increase contrast, shrink the logo, raise error correction, or shorten the encoded link.
A quick design checklist
- Short link encoded, not a long URL
- Size at least about 2 x 2 cm, and about one tenth of scan distance
- Quiet zone of four modules on every side
- Dark modules on a light background, high contrast in greyscale
- Error correction M by default, Q or H with a logo
- Logo small, centred, not covering finder patterns
- Call to action next to the code
- SVG for print, PNG for screens
- Printed proof tested on several phones
You can apply all of these in the free QR code generator, which supports colours, dot and corner styles, a centre logo, error correction settings and PNG or SVG download. For the full walkthrough from link to printed code, read how to create a QR code for a link, and for placement ideas, see QR code ideas for small business.
Frequently asked questions
What is the minimum size for a printed QR code?
Around 2 x 2 cm is a practical minimum for codes scanned up close, such as on business cards. For longer distances, use roughly one tenth of the scanning distance as the code width.
Can I put my logo in a QR code?
Yes, if you raise the error correction level to Q or H and keep the logo small and centred. Never cover the three corner squares, and test the result on several phones.
Can a QR code be any colour?
It can use brand colours as long as the modules are much darker than the background. Dark on light is the safest choice; light codes on dark backgrounds do not work with every scanner.
What is the quiet zone on a QR code?
It is the empty margin around the code, recommended at four modules wide on every side. It helps the scanner separate the code from surrounding text and graphics.
Which error correction level should I choose?
M is a good default for most uses. Choose Q or H when you add a logo or expect the code to be scratched, dirty or partly covered.
Try Saerly free
Shorten links, create QR codes and track every click. 100 free links a month — no credit card.
#qr code#qr code design#print design#error correction#branding