仅英文版本
本文目前仅有英文版本,欢迎阅读原文。 阅读英文原文 →
Guide··8 分钟阅读

QR Code Design Best Practices: 12 Rules for Scannable Codes (2025)

The 12 design rules that separate a working QR code from a failed one. Contrast, quiet zone, logo size, error correction, and the 8 rules most designers skip.

Q
QR Tool Studio
QR Code Design Best Practices: 12 Rules for Scannable Codes (2025)

A well-designed QR code is invisible \u2014 it does its job without anyone thinking about it. A badly designed one is a frustrating scan target that customers give up on. The difference is twelve rules: contrast, quiet zone, logo size, error correction, color, alignment, and a few more. Most designers learn these the hard way. This guide gets you there in 5 minutes.

These rules come from looking at thousands of deployed QR codes \u2014 the ones that work and the ones that don\u2019t. Every rule has a reason. Skip one and the code will eventually fail. Follow them all and your code will scan first try, every time, on every phone.

QR code design best practices
12 rules that separate a QR code that works from one that doesn\u2019t. Most designers skip 4-5 of these by accident.

Rule 1: High Contrast Is Non-Negotiable

QR code scanners detect modules by looking for the contrast between the dark and light areas. If the contrast is too low, the scanner can\u2019t distinguish modules from each other. The minimum contrast ratio is 4:1, but 7:1 is safer.

What this means in practice: black on white is the safest choice. If you want a colored code, pair a very dark color (navy, dark green) with a very light color (white, cream). Never pair two light colors or two dark colors.

Test: if you squint at your code and the modules are still clearly visible, the contrast is fine. If the modules blend into the background when you squint, the contrast is too low.

Rule 2: Keep the Quiet Zone Clean

The quiet zone is the white margin around the entire code, and it must be at least 4 modules wide on all sides. The quiet zone tells the scanner where the code begins. Without it, the scanner can\u2019t distinguish the code from a busy background.

What this means in practice: never let other design elements (text, logos, borders) touch the QR code. If your QR code is on a colored background, add a solid white rectangle behind the code first, then add the quiet zone on top of that white rectangle.

A logo in the middle of a QR code is fine for brand recognition, but the logo area is data you\u2019ve removed. The error correction has to recover it. The maximum logo area that can be recovered depends on the error correction level:

  • Q-level error correction: logo up to 15% of code area
  • H-level error correction: logo up to 25% of code area

Anything bigger and the code won\u2019t scan. If you want a bigger logo, use a custom QR code design with the logo integrated into the pattern (most generators don\u2019t support this; you\u2019ll need a designer with specialized software).

Rule 4: Choose Error Correction Based on Use

For most deployments, Q-level error correction is the right default. Use H if you have a large logo or expect heavy damage. Use M if you have no logo and a clean environment. Skip L unless code size is critical and you\u2019re deploying in a perfectly controlled environment.

Rule 5: Size for the Scan Distance

The QR code should be at least 1 cm wide per 10 cm of expected scan distance. A business card QR (scanned at 20 cm) needs to be at least 2 cm wide. A poster QR (scanned at 1 m) needs to be at least 10 cm wide. A billboard QR (scanned at 5 m) needs to be at least 50 cm wide.

When in doubt, go 30% larger. The cost of an oversized QR code is a slightly larger poster. The cost of an undersized QR code is a code nobody can scan.

QR code design rules
The 12 design rules at a glance. Most designers skip the quiet zone, contrast, and logo size rules \u2014 those are the three biggest causes of unscannable codes.

Rule 6: Place It Where Eyes Go

QR code scan rates vary 3x based on placement. Codes at eye level get scanned 80% of the time when noticed. Codes in corners or at the bottom of pages get scanned 30% of the time. The center of a flyer at eye level is the sweet spot.

What this means in practice: when designing a poster, flyer, or business card, give the QR code a prominent position. Don\u2019t tuck it into a corner. Make it part of the visual hierarchy.

Rule 7: Always Include a Call to Action

A QR code without context is a mystery. People won\u2019t scan if they don\u2019t know what they\u2019ll get. Adding a one-line call to action next to the QR code doubles the scan rate.

Examples of good CTAs:

  • "Scan to see the menu"
  • "Scan for a 10% discount"
  • "Scan to download the app"
  • "Scan to view the video"

Bad CTAs are vague: "Scan here" or no CTA at all. The more specific the value proposition, the more scans.

Rule 8: Use Vector SVG for Print

Always export QR codes for print as vector SVG, not PNG. SVG scales to any size without losing sharpness. PNG is fine for screens, but for professional print, SVG is the only way to ensure the code stays sharp at any size.

If your generator doesn\u2019t export SVG, switch generators. The best free generators (including ours) export SVG by default.

Rule 9: Don\u2019t Invert the Code

QR codes are designed to be dark on light. Some scanners struggle with light-on-dark codes (white modules on a black background), even when the contrast is high. The QR code standard technically allows inversion, but the practical scan success rate drops.

Stay with dark modules on a light background. If you need a code that fits a dark design, put a solid light-colored rectangle behind the code.

Rule 10: Use the Right Format

Different data needs different formats:

  • URL: Most common. Make sure to include the protocol (https://).
  • vCard: For sharing contact info. Include name, phone, email, organization.
  • WiFi: For sharing network credentials. Include SSID, password, encryption type.
  • Email: Use the mailto: format ([email protected]?subject=...&body=...).
  • SMS: Use the sms: format with phone number and pre-filled message.

Using the right format ensures the phone knows what to do with the data after scanning.

Rule 11: Test Before You Deploy

Always test the QR code with at least 3 different phones and 3 different lighting conditions before deploying it. The most common testing failures are:

  • Low contrast (fails in bright sunlight)
  • Missing quiet zone (fails on busy backgrounds)
  • Logo too large (fails on first scan attempt)
  • URL typo or missing https:// (fails every time)

Five minutes of testing saves the cost of reprinting 5,000 flyers.

Rule 12: Don\u2019t Apply Visual Effects

Don\u2019t add drop shadows, gradients, blurs, or any visual effects to the QR code modules themselves. Some designers try to make QR codes prettier with subtle gradients or drop shadows on the modules. Every one of these makes the code less scannable.

If you want visual interest, put the QR code on a colored background, frame it, or surround it with decoration. Leave the modules themselves clean, square, and high-contrast.

Frequently Asked Questions

Can I use a gradient on my QR code?

On the background, yes. On the modules themselves, no. A gradient background that doesn\u2019t touch the modules is fine. A gradient applied to the modules (where some modules are darker than others) destroys the scanner\u2019s ability to detect the pattern.

Can I round the corners of the modules?

It depends on the rounding. Slightly rounded corners (5-10% radius) usually scan fine. Heavily rounded or "leaf" shaped modules can fail on some scanners. If you want a soft look, use slightly rounded modules and accept a 2-5% reduction in scan success rate.

What\u2019s the best background color?

White. White is the safest, highest-contrast choice. Light cream, very light gray, and very light pastels also work. Bright colors, dark colors, and patterns fail most scanners.

Can I add a frame or border around the QR code?

Yes, as long as the border is at least 4 modules away from the outermost module of the code (the quiet zone). Borders closer than that will be detected as part of the code by some scanners, causing failures.

QR code design examples
Three real-world examples: well-designed codes on the left and right, a failed code in the middle. Notice the missing quiet zone and overlapping text in the failed example.

Conclusion: 12 Rules, One Mindset

QR code design is governed by one principle: the scanner needs to see the modules clearly. Every rule on this list \u2014 contrast, quiet zone, logo size, color, format \u2014 is a corollary of that principle. If you keep the modules clear and contrasting, the code will work. If you don\u2019t, the code will fail.

The 12 rules aren\u2019t arbitrary restrictions. They\u2019re the engineering requirements of a technology designed to encode data in a pattern that any phone camera can read in 100 milliseconds. Honor the technology, and the technology serves you. Push against it, and you\u2019ll spend your afternoon explaining to your boss why the 5,000 flyers need to be reprinted.

准备好制作你自己的二维码了吗?

免费、无需注册、浏览器直接使用。不到一分钟即可生成你的 WiFi 二维码。