Guide

The quiet zone: the margin a QR code needs

The empty space around a QR code is part of the code. Take it away and many phones will not find the pattern. This short guide covers how much you need and how designs lose it by accident.

What the quiet zone does

A camera locates a QR code by finding the three large corner squares against a plain background. The quiet zone is the blank border that gives those squares a clean edge. Without it, a scanner may read a neighbouring line of text or a border as part of the code and give up.

How wide it should be

The standard asks for a margin four squares wide on every side, where a square is one of the small dots in the pattern. In practice, a margin of roughly a tenth of the code's width on each side is a safe way to think about it. Downloads from the generator include the margin, so a downloaded file is ready to place as it is.

How designs lose the margin

  • Cropping the image to the edge of the dots, usually to make the code look bigger in the layout.
  • A border or box drawn tight around the code. A frame is fine when it sits outside the margin, which is how the frames in the generator work.
  • Text or icons pushed up against the code, such as "Scan me" placed too close.
  • Busy backgrounds. A photo or pattern behind the code gives the camera nothing plain to find. Put the code on a white panel.
  • Dark backgrounds with a transparent code. The margin becomes dark too, so the corner squares have no edge. Use a light panel behind the code.

A quick check

Look at the final artwork and ask whether anything other than plain background touches the code on any side. If it does, move it. Then scan a print at the real size. A code that loses its margin often still scans on a bright screen and fails on paper.

Sources

The four-module margin is part of the QR code specification (ISO/IEC 18004). The official QR code reference site puts it plainly: "QR Code requires a four-module wide margin at all sides of a symbol": Point for determining the code area, QRcode.com.

Questions

Common questions

Anything else? Write to us.

How much white space does a QR code need?

A margin about four squares wide on every side, or roughly a tenth of the code width. Files downloaded from mqrlink include it.

Can I put a border around a QR code?

Yes, as long as the border sits outside the quiet zone. The frames in the generator are placed that way. A border touching the dots can stop the code scanning.

Does the quiet zone have to be white?

No, but it has to be plain and light enough to contrast with the dots. A pale brand colour works; a photo or a dark background does not.

Keep reading

How to create a QR code

How to make a QR code for a link, WiFi, contact card or text, style it without breaking it, test it and print it at the right size. Free, no sign-up.

Read the guide, 6 min

QR code size for printing

What size a printed QR code should be: the minimum size, the distance rule, pixels needed at 300 DPI, and why longer content needs a bigger code.

Read the guide, 5 min

Static vs dynamic QR codes

The difference between static and dynamic QR codes: expiry, editing, scan tracking, cost and privacy, and why a static QR code generator never expires.

Read the guide, 5 min

Why a QR code will not scan

Why a QR code does not scan and how to fix it: low contrast, inverted colors, missing quiet zone, too small, too dense, big logos, glare and broken links.

Read the guide, 6 min

WiFi QR codes that connect first time

How to make a WiFi QR code guests can scan to join your network: getting the name, password and security type right, and fixing codes that do not connect.

Read the guide, 5 min

Adding a logo without breaking the code

How to put a logo in the middle of a QR code and keep it scannable: the error-correction level to use, how big the logo can be, and how to test the result.

Read the guide, 5 min

vCard QR codes for business cards

How to put a contact QR code on a business card: which vCard fields to include, how to format phone numbers, and how small the code can go.

Read the guide, 5 min

QR code colours that still scan

How to choose QR code colours, gradients, shapes, frames and transparent backgrounds that match your brand and still scan on every phone.

Read the guide, 5 min

Error correction levels explained

What QR code error correction does, what levels L, M, Q and H mean, how much damage each survives, and which level to pick for logos, print and small codes.

Read the guide, 4 min

QR codes for restaurant menus

How to make a QR code menu that works at the table: web page or PDF, table card size, lighting and lamination, and updating the menu without reprinting.

Read the guide, 5 min

QR codes for Airbnb and rental hosts

The QR codes worth printing for a holiday rental: guest WiFi, house manual, check-in and check-out, local tips, and where to place them so they keep working.

Read the guide, 5 min

QR codes on product packaging

How to put a QR code on packaging that still scans: what to link to, minimum size, curved and glossy surfaces, colour contrast and testing a print proof.

Read the guide, 5 min

Make your code now

Free, private, and it never expires.

Open the generator