Skip to content

QR Code Quiet Zone: 4-Module Margin and Design Rules

Ahmad Tayyem
Founder
· Updated July 29, 2026 · 9 min read · Reviewed by QRLynx product team
QR Code Quiet Zone: 4-Module Margin and Design Rules

Key Takeaway

Learn how to measure a QR code's four-module quiet zone, choose colors, size modules, place a logo, export clean artwork, and test the final design.

The direct answer

A standard QR code needs a quiet zone four modules wide on every side. Measure one module, multiply it by four, and keep that entire margin visually clear. Strong dark-on-light contrast, clean functional patterns, suitable module size, and a test of the final artwork complete the design check.

A QR code design succeeds when a camera can separate the symbol from its surroundings, locate its functional patterns, and resolve each module in the final setting. The current QR code symbology specification is ISO/IEC 18004:2024. DENSO WAVE publishes practical guidance for the code area, module size, and error-correction level.

This guide separates requirements from planning shortcuts. The four-module quiet zone is a defined QR requirement. Fixed physical sizes, distance ratios, contrast ratios, logo percentages, and DPI values are useful only when they match the payload, output, placement, camera, and material being tested.

QR code design rules at a glance

QR code design rules at a glance
Design decisionGrounded ruleFinal check
Quiet zone
Reserve four modules on every side
No text, border, pattern, or crop enters the margin
Color
Use clearly separated dark and light areas
Test the actual colors on the actual background
Size
Make every module resolvable at the intended distance
Proof the final size, surface, light, and camera angle
Logo
Keep finder, timing, and alignment patterns clear
Decode the exact export after the logo is applied
Error correction
Choose the level for the environment and obstruction
Confirm the denser result still prints cleanly
File format
Use vector for flexible print scaling or a clean raster at final size
Inspect sharp module edges after every export step
Context
Place a short explanation or action near the code
Keep it outside the quiet zone and readable at scan distance

What is the quiet zone around a QR code?

The quiet zone is the clear margin surrounding all four sides of the QR symbol. DENSO WAVE specifies a margin four modules wide. A module is one square in the QR grid, so the physical or pixel width of the quiet zone changes with the module size.

To calculate it, measure one module in the final file and multiply by four. If one module is 5 pixels wide, reserve 20 pixels on the left, right, top, and bottom. The complete artwork footprint is the symbol width plus eight modules, four on each opposing side.

What belongs outside the quiet zone?

Place borders, frames, captions, logos, and surrounding artwork beyond the four-module margin. The margin can use the same uniform light color as the QR background. It does not need to be literal white, but it must remain visually separate from the dark modules and nearby design.

Keep the quiet zone in the final exported file. A generator preview can look correct while a later crop, screenshot, design-tool export, or print trim removes part of the margin.

Choose QR code colors by separation, not a fixed web ratio

Dark modules on a uniform light background provide the broadest scanning baseline. QR decoding depends on the light and dark areas remaining distinct after display or printing. Ink spread, paper color, glare, transparency, screen brightness, and camera exposure can change that separation.

A 3:1 or 4:1 number can be a useful design warning, but it is not a universal ISO/IEC 18004 compliance threshold for every QR code and setting. Treat a contrast score as an early check, then decode the actual exported image and test the real placement.

Can a QR code use brand colors?

Yes. Choose a foreground color that remains clearly darker than the background, keep the finder patterns easy to locate, and evaluate every part of a gradient against the background. A transparent background inherits whatever sits behind it, so test the finished composition instead of the transparent file by itself.

Can a QR code be inverted?

Some current scanners decode light modules on a dark background. Dark-on-light remains the safer shared baseline across devices and conditions. If an inverted treatment is part of the design, test it with the exact camera apps, screen or material, distance, and light expected in use.

Size the modules for the payload and placement

There is no single physical QR code size that fits every payload and scan distance. A denser symbol contains more modules in the same width, which makes each module smaller. The camera must still resolve those modules after printing, display scaling, glare, curvature, and viewing distance are considered.

DENSO WAVE describes size in terms of module count, module size, output resolution, and the required quiet zone. Use those inputs instead of treating 2 cm or a 10:1 distance ratio as a guarantee.

  1. Generate the final payload and note the completed symbol, not a temporary sample.
  2. Choose the intended physical or on-screen width.
  3. Confirm each module remains square and sharply separated at that output size.
  4. Keep four additional modules clear on every side.
  5. Test at the real distance and angle, then enlarge the code when the result is slow or inconsistent.

For a code on a curved or reflective surface, a larger flat placement can matter more than a formula. For a small label, shortening the encoded data or using a managed short destination can reduce density before the design is finalized.

Add a logo without treating error correction as a fixed coverage allowance

A centered logo can work when the three finder patterns, timing patterns, alignment patterns, format information, and quiet zone remain clear. Add a light buffer around the logo so its edge does not merge with nearby modules.

DENSO WAVE lists four error-correction levels and explains that the familiar recovery percentages apply to total codewords. They do not translate into a fixed percentage of image area that a logo may cover. The location of the covered modules, the payload, the symbol version, and the remaining print damage all affect the result.

Which error-correction level should a logo use?

Use a higher level when the logo or environment introduces more obstruction, then generate and test the resulting symbol. Higher error correction adds recovery data and can increase the symbol size. DENSO WAVE notes that Level M is commonly selected, while Q or H may suit environments where dirt or damage is more likely.

QRLynx can select M, Q, or H from the displayed logo size when error correction is left on Auto. That choice supports the design, but the exact exported image still needs a decode test.

Choose an export for the next production step

Choose an export for the next production step
FormatUseful whenCheck before use
SVG or vector PDF
The print workflow needs resizing without raster enlargement
The importing application preserves square modules and the quiet zone
PNG or WEBP
The final pixel dimensions are known
The file has enough pixels and is not enlarged later
JPG
A workflow requires it and compression can remain light
Module edges stay sharp after the final save and upload

Keep the exported modules sharp

Vector artwork is useful for print because it can be resized without enlarging a pixel grid. A lossless raster file also works when it is exported at the dimensions needed for the final placement. The practical requirement is clean, square, separated modules in the finished file.

JPEG compression can soften high-contrast edges, especially after repeated saves or aggressive optimization. That makes it a less forgiving choice, but the extension alone does not decide whether a QR code scans. Inspect and decode the final file rather than declaring every JPG valid or invalid by format.

DPI describes output density, not QR compliance by itself. For raster artwork, calculate enough pixels for the final printed width and the printer workflow, then confirm that each module survives the complete export and print process.

Use frames and nearby text without entering the quiet zone

A short line such as "Scan to view the menu" or "Scan to save contact details" tells the reader what the code opens. Keep that text readable from the intended distance and place it beyond the four-module quiet zone.

A frame can hold the message and make the code easier to notice while leaving the symbol unchanged. QRLynx QR code frames are composed around the QR rather than rewriting its module matrix. The final export should still be checked for clear spacing between the symbol, frame, and surrounding layout.

How to check a QR code design before publishing

1

Generate the final payload

Use the exact URL or content that will ship. A placeholder can produce a different symbol density and module size.

2

Reserve the four-module quiet zone

Measure one module, multiply by four, and keep that margin clear on every side in the final artwork.

3

Review colors and functional patterns

Keep the light and dark areas distinct, preserve the finder, timing, and alignment patterns, and check the complete background composition.

4

Apply the logo and error-correction choice

Keep the logo away from functional patterns, add a separating buffer, and use the error-correction level appropriate to the obstruction and environment.

5

Export the production file

Use the format and dimensions required by the real print or screen workflow. Inspect the file after resizing, optimization, and placement.

6

Test the real placement

Decode the exact export with the QR code scanner, then proof the intended size, material, distance, angle, light, and destination on representative phones.

Check the final artwork

Test the QR image before you publish it

Upload the exact QR image you plan to use. QRLynx checks whether it decodes and reviews the design details visible in the file.

Check QR Code Free, no sign-up. The image stays in your browser.
Still designing? Create a custom QR code

Primary sources

  1. ISO/IEC 18004:2024, the current QR code bar code symbology specification.
  2. DENSO WAVE: Point for determining the code area, including the four-module margin.
  3. DENSO WAVE: Point for setting the module size, covering module count and output resolution.
  4. DENSO WAVE: Error correction feature, covering codeword recovery and level selection.

QR code quiet zone and design FAQ

How much quiet zone does a QR code need?

A standard QR code needs a quiet zone four modules wide on the top, right, bottom, and left. Measure the module size in the final artwork and multiply it by four for each margin.

Is the four-module quiet zone part of the QR code standard?

Yes. The current QR symbology specification is ISO/IEC 18004:2024, and DENSO WAVE publishes the practical four-module margin in its code-area guidance.

How do I measure a QR code quiet zone in pixels?

Measure the width of one square module in the exported image and multiply it by four. A 6-pixel module needs a 24-pixel quiet zone on each side. The complete footprint adds eight module widths to the symbol, four on each opposing side.

Does a QR code quiet zone have to be white?

The margin can use the same uniform light color as the QR background. It should remain visually clear, strongly separated from the dark modules, and free from text, borders, patterns, or nearby artwork.

What contrast ratio does a QR code require?

ISO/IEC 18004 does not turn a web-style 3:1 or 4:1 contrast ratio into one universal QR compliance threshold for every material and camera. Use clearly separated dark and light areas, then decode the final file and test the real print or screen conditions.

What is the minimum size for a printed QR code?

There is no single physical minimum that fits every QR code. The required size depends on the symbol's module count, the printed module size, scan distance, camera, surface, light, and the four-module quiet zone. Test the final payload at the final size.

Is the 10:1 QR code scanning-distance ratio an exact rule?

The 10:1 ratio is a planning shortcut, not a decoding guarantee or a universal ISO requirement. Use it only as an early estimate, then proof the exact symbol at its intended distance, angle, size, material, and lighting.

How large can a logo be inside a QR code?

There is no universal safe logo percentage. Keep the finder, timing, alignment, and format patterns clear, add a separating buffer, choose an appropriate error-correction level, and decode the exact exported image.

Should I export a QR code as SVG, PNG, or JPG?

Use SVG or vector PDF when the print workflow needs flexible resizing. Use PNG or WEBP when the final pixel dimensions are known. JPG can scan when its edges remain clean, but lossy compression makes it less forgiving, so test the final saved file.

Enjoyed this article? Share it!

Ahmad Tayyem

About the author

Founder of QRLynx, built through Jorbox LLC

Ahmad builds and runs QRLynx end to end: product, engineering, and the original QR research behind these guides. Every competitor claim here is tested hands-on; see our testing methodology and editorial policy.

Rated 4.6/5 on Trustpilot (26 reviews)

"Tried other QR code services but QRLynx worked smoothly. Great free plan with analytics and dynamic codes..."
★★★★★

Mahmoud M.

"Impressive for recruiting purposes. Exceptional customization options and very responsive customer support..."
★★★★★

Josh J.

"It's easy to generate QR codes. Navigation is fairly simple and user friendly. Happy with the result."
★★★★☆

SN

Ready to Create Your Own QR Codes?

Start for free and upgrade as you grow. All plans include dynamic QR codes, analytics, and custom branding.

QRLynx pricing plans

Starter plan details selected

Starter

For personal projects
$0 /month
Free forever
  • 5 Dynamic QR Codes Editable QR codes: change the destination URL anytime.
  • 1 Folder
  • 5 MB per PDF upload
  • AI Insight Summaries Every plan gets plain-language AI scan summaries; Starter+ and higher add anomaly, trend & recommendation detail plus manual refresh.
  • 3 Months Analytics How far back your analytics go. You keep your scan totals, charts, top QR codes, and location and device breakdowns for the whole window. Individual scan-by-scan records (and the detailed CSV export) cover the latest 3 months on every plan.
Most Popular

Pro

Best value for campaigns
$14 /month
Billed monthly
  • 300 Dynamic QR Codes Editable QR codes: change the destination URL anytime.
  • 25 Folders
  • 15 MB per PDF upload
  • 2 Years Analytics How far back your analytics go. You keep your scan totals, charts, top QR codes, and location and device breakdowns for the whole window. Individual scan-by-scan records (and the detailed CSV export) cover the latest 3 months on every plan.
  • Country Analytics See which countries your scans come from.
  • Password Protection Require a password before showing QR content.
  • Smart Redirect Rules Redirect by device, country, or time.
  • Access Consent Screens Show a consent / disclaimer screen before the QR destination loads.
  • Expiry Rules Auto-expire a QR code by date or after a set number of scans.
  • QR Scheduling Schedule when a QR code is active with start and end time windows.
  • Bulk Dynamic QR: 100/batch Bulk-create dynamic codes from a CSV, each editable after printing with its own scan analytics. This goes beyond the free static batch tool. Pro includes 5 batches/month, Business 10; Enterprise batches are unlimited.
  • Full AI Insights Every plan gets plain-language AI scan summaries; Starter+ and higher add anomaly, trend & recommendation detail plus manual refresh.
  • SVG / PDF Downloads Print-ready vector formats: SVG and PDF stay razor sharp at any size, from a business card to a billboard.

Business

For teams and agencies
$29 /month
Billed monthly
  • 1,000 Dynamic QR Codes Editable QR codes: change the destination URL anytime.
  • 100 Folders
  • 25 MB per PDF upload
  • 3 Years Analytics How far back your analytics go. You keep your scan totals, charts, top QR codes, and location and device breakdowns for the whole window. Individual scan-by-scan records (and the detailed CSV export) cover the latest 3 months on every plan.
  • City, Device & Browser Analytics Break scan activity down by city, device type, operating system, and browser.
  • CSV Analytics Export
  • Bulk Dynamic QR: 250/batch Bulk-create dynamic codes from a CSV, each editable after printing with its own scan analytics. This goes beyond the free static batch tool. Pro includes 5 batches/month, Business 10; Enterprise batches are unlimited.
  • Team Management (10 Members) Invite members to collaborate on QR codes, analytics, and folders.
  • Lead Capture Forms Collect leads directly from QR code scans.
  • Email Reports
  • Public API Access Create and repoint dynamic QR codes and read scan analytics from your own systems with a REST API and scoped keys.
  • Full AI Insights Every plan gets plain-language AI scan summaries; Starter+ and higher add anomaly, trend & recommendation detail plus manual refresh.
  • Country Analytics See which countries your scans come from.
  • Password Protection Require a password before showing QR content.
  • Smart Redirect Rules Redirect by device, country, or time.
  • Access Consent Screens Show a consent / disclaimer screen before the QR destination loads.
  • Expiry Rules Auto-expire a QR code by date or after a set number of scans.
  • QR Scheduling Schedule when a QR code is active with start and end time windows.
  • SVG / PDF Downloads Print-ready vector formats: SVG and PDF stay razor sharp at any size, from a business card to a billboard.

Enterprise

For white-label scale
$99 /month
Billed monthly
  • 5,000 Dynamic QR Codes Editable QR codes: change the destination URL anytime.
  • 500 Folders
  • 50 MB per PDF upload
  • Unlimited Analytics How far back your analytics go. You keep your scan totals, charts, top QR codes, and location and device breakdowns for the whole window. Individual scan-by-scan records (and the detailed CSV export) cover the latest 3 months on every plan.
  • Bulk Dynamic QR: 1,000/batch Bulk-create dynamic codes from a CSV, each editable after printing with its own scan analytics. This goes beyond the free static batch tool. Pro includes 5 batches/month, Business 10; Enterprise batches are unlimited.
  • Team Management (100 Members) Invite members to collaborate on QR codes, analytics, and folders.
  • White Label Domains Use your own domain for QR redirects (e.g. qr.yourbrand.com).
  • Retargeting Pixels Facebook, Google & GTM tracking pixels on QR landing pages.
  • Dedicated Success Manager A dedicated contact for onboarding and ongoing support.
  • Full AI Insights Every plan gets plain-language AI scan summaries; Starter+ and higher add anomaly, trend & recommendation detail plus manual refresh.
  • Country Analytics See which countries your scans come from.
  • City, Device & Browser Analytics Break scan activity down by city, device type, operating system, and browser.
  • CSV Analytics Export
  • Password Protection Require a password before showing QR content.
  • Smart Redirect Rules Redirect by device, country, or time.
  • Access Consent Screens Show a consent / disclaimer screen before the QR destination loads.
  • Expiry Rules Auto-expire a QR code by date or after a set number of scans.
  • QR Scheduling Schedule when a QR code is active with start and end time windows.
  • Lead Capture Forms Collect leads directly from QR code scans.
  • Email Reports
  • Public API Access Create and repoint dynamic QR codes and read scan analytics from your own systems with a REST API and scoped keys.
  • SVG / PDF Downloads Print-ready vector formats: SVG and PDF stay razor sharp at any size, from a business card to a billboard.

Core features included in every plan

(free and paid, no exceptions)
  • Unlimited Static QR Codes
  • QR Pause & Activate
  • Unlimited Scans
  • Codes Never Expire
  • 61 QR Code Types
  • Apple & Google Wallet Passes
  • Custom Logo Upload
  • QR Code Frames
  • No Watermark
  • No Scan Ads
  • JPG, PNG, WEBP & HD Downloads
  • Bulk Static QR (up to 100/batch)

50% off for verified nonprofits, schools & open-source projects: contact us to apply.

Ready to Transform Your QR Code Experience?

Create, customize, and track QR codes with a platform built for businesses, creators, restaurants, agencies, and teams worldwide.

Talk to Sales
Free forever
Unlimited scans
Codes never expire