Blog

Tips, tutorials, and insights about online tools

QR Code Design: 10 Best Practices for Scannable Codes
2026-08-20Keynou Team

QR Code Design: 10 Best Practices for Scannable Codes

A well-executed QR code design balances branding with reliability. Every visual choice — color, logo, shape, size — affects whether a phone camera can decode the pattern in under a second. Get it right and your code becomes a dependable bridge between print and web. Get it wrong and you've printed thousands of flyers that nobody can scan.

These 10 best practices cover the design decisions that matter most, from contrast ratios to quiet zone width. Follow them and your codes will look professional and scan on the first try.

1. Maintain High Foreground-Background Contrast

Contrast is the single most important factor in QR code design. The scanner needs to distinguish dark modules from light ones. Aim for a minimum 4.5:1 contrast ratio between your foreground (the dots) and background. Dark colors on white or very light backgrounds work best. If you're working with brand colors, use a color wheel to verify the pairing before you commit.

Low-contrast combinations like gray-on-gray or pastel-on-pastel fail frequently, especially in dim lighting or on glossy printed stock.

2. Keep the Quiet Zone Clear

The quiet zone is the empty margin around the QR code — at least four modules wide on every side. Scanners use it to locate the code's boundaries. Crowding it with text, borders, or background patterns is one of the most common causes of scan failure.

Never let design elements bleed into the quiet zone. If space is tight, shrink the QR code rather than trimming the margin.

3. Size Your Logo Correctly

A centered logo reinforces branding, but it covers part of the data pattern. Keep the logo under 30% of the total QR area — roughly 20–25% is the sweet spot. Anything larger blocks too many modules and forces the scanner to rely entirely on error correction.

Use a transparent PNG with a simple shape. Complex logos with fine text become unreadable at small print sizes. For a step-by-step walkthrough, see our guide to creating a QR code generator with logo.

Error correction lets a QR code remain readable even when part of it is obscured. The four levels recover 7% (L), 15% (M), 25% (Q), and 30% (H) of the data. When you add a logo, sticker, or any overlay, use level H so the covered modules can be reconstructed.

The trade-off: higher error correction increases the code's density, so you need a slightly larger physical size. Plan for it in your layout.

5. Choose Colors That Scanners Read Reliably

Color choice is where most QR code design goes wrong. The rule is simple: the foreground must be noticeably darker than the background. Black on white is the gold standard, but dark navy, forest green, and deep purple on light backgrounds also work well.

Avoid red-on-green combinations — many cameras interpret these as similar luminance values, erasing the contrast the scanner needs. Inverted codes (light dots on a dark background) work on some scanners but fail on others, so test thoroughly.

6. Use Simple Module Shapes

Some generators offer rounded dots, diamond patterns, or custom module shapes. These look distinctive but can reduce scannability if the shapes blur together at small sizes. If you use custom modules, keep the shape simple and test at the smallest size you plan to print.

Standard square modules remain the safest choice for codes that will be printed small or scanned from a distance.

7. Test at the Actual Print Size

A code that scans perfectly on your monitor may fail when printed at 1.5 inches on a business card. Always test at the real-world size and distance your audience will use.

Scan with multiple devices: an iPhone camera, an Android camera, and at least one third-party scanner app. Test in both bright and dim lighting. If any device struggles, increase the size or simplify the design.

8. Pick the Right File Format

For print, export your QR code as SVG or a high-resolution PNG (at least 300 DPI). Vector formats scale without quality loss, which matters when the same code appears on a business card and a banner.

For digital use — websites, email signatures, social posts — PNG or WebP at 2x display size is sufficient. Avoid JPEG, which introduces compression artifacts around the sharp module edges.

9. Place the Code Where It's Easy to Scan

Placement affects whether people notice and scan your code. Put it at a comfortable scanning height — roughly chest level for wall displays. On printed materials, keep it away from folds, staples, and binding. On packaging, place it on a flat surface away from seams and curved edges.

Leave breathing room around the code so it doesn't compete with nearby design elements.

10. Avoid Inverted and Mirrored Codes

Inverted codes (white modules on a black background) and mirrored codes (reflected horizontally) are technically valid but inconsistently supported. Some modern scanners handle them; many older or budget devices do not. Unless you have a specific reason and can test across a wide device range, stick to the standard dark-on-light orientation.

QR Code Design: Do's and Don'ts

The example on the left follows every rule: dark modules on white, a clear quiet zone, and a reasonably sized logo. The one on the right breaks contrast, logo sizing, and margin rules — a combination that will frustrate scanners.

Common Design Mistakes to Avoid

  • Shrinking the quiet zone to fit a layout
  • Using a logo larger than 30% of the code area
  • Choosing colors based on brand guidelines without checking contrast
  • Printing without testing at actual size
  • Adding decorative borders or patterns inside the quiet zone
  • Using JPEG compression for print files

Start Designing Your QR Code

You can apply all of these best practices in minutes using our QR code generator. It supports custom colors, logo upload, adjustable error correction, and SVG export for print-ready output.

For deeper dives into specific topics, read our QR code generator with logo tutorial and our QR code error correction explained guide.

The ISO/IEC 18004 standard defines the technical specifications for QR codes, including quiet zone and module requirements — a useful reference if you're building systems that depend on reliable scanning (ISO/IEC 18004). For accessibility and contrast guidance, the WCAG contrast requirements provide the ratios that also apply to QR readability.


Published: August 20, 2026
Updated: August 20, 2026
Category: QR Codes, Design
Reading Time: 6 minutes

Verified DR - Verified Domain Rating for keynou.com
FlowDrive