Skip to content
Tools.Town
290+ free online tools

Evergreen concept

Guide

QR Code Size and Error Correction: A Practical Guide

Choose the right QR code dimensions, quiet zone, and error-correction level for screens, labels, posters, packaging, and logo overlays.

16 August 2026 By Tools.Town Team 7 min read

A QR code that looks sharp on your laptop can still fail on a printed label. Reliable scanning depends on four things working together: module size, viewing distance, contrast, and error correction. The payload also matters because a long URL creates a denser grid with smaller modules.

This guide gives practical starting points. Generate a test symbol with the QR Code Generator, then validate the exact file, material, and viewing conditions you will use.

The three dimensions that matter

A QR code is made from square modules, not pixels. As the payload grows, the code needs more modules. If the final image stays the same physical size, every module becomes smaller and harder for a camera to resolve.

Think about size in three layers:

  1. Symbol size — the full black-and-white square.
  2. Module size — the smallest individual square in the grid.
  3. Quiet zone — the empty border around the code.

For digital output, export a sufficiently large PNG or, preferably, SVG. SVG stays crisp at any size. For print, decide the physical width first and avoid resizing a small raster image upward.

Practical size recommendations

These are safe starting points, not guarantees:

PlacementSuggested minimumTypical scan distance
Mobile screen or email200 × 200 px20–40 cm
Product label25 × 25 mm20–40 cm
Menu or tabletop card30 × 30 mm30–60 cm
A4 notice or flyer35–50 mm0.5–1 m
Shop poster80–120 mm1–2 m
Large signTest from the real distance2 m+

A useful field rule is a 10:1 distance-to-size ratio: a code scanned from one metre away should be roughly 100 mm wide. Increase it when lighting is poor, the surface curves, or the payload is dense.

Do not hide a long tracking URL directly in the code if a short HTTPS URL will work. Shorter data usually means fewer modules, larger squares, and more reliable scans.

What L, M, Q, and H mean

QR codes include redundant data so damaged modules can be reconstructed. The four standard error-correction levels trade capacity for resilience:

LevelApproximate recoveryBest for
L7%Large, clean codes with short payloads
M15%General digital and print use
Q25%Packaging, small logo overlays, moderate wear
H30%Harsh conditions or more obstruction

The percentages are approximate and do not mean you can cover any continuous block of that size. Damage over finder patterns, timing patterns, or alignment marks can still break a code.

M is the sensible default. Move to Q or H only when the environment requires it. Higher correction adds data, which can make the QR grid denser. A physically tiny H-level code can scan worse than a larger M-level code.

Preserve the quiet zone

The blank margin tells the scanner where the QR symbol begins and ends. Keep a quiet zone of at least four modules on every side. Do not place text, borders, photos, or decorative shapes inside it.

A white card behind the code is useful when the surrounding design is busy. If the code sits on a dark poster, do not simply invert it unless you have tested the result broadly; black modules on a light background remain the safest combination.

Adding a logo safely

A centre logo deliberately covers data. To reduce risk:

  1. Select Q or H error correction.
  2. Keep the logo near the centre, away from the three large finder squares.
  3. Start below 15% of the code width.
  4. Put a small light-coloured pad behind the logo rather than blending it into modules.
  5. Export and test the finished artwork—not the undecorated code.

Avoid circular crops that unexpectedly remove more modules than the visible logo suggests. If branding is optional, a logo beside the QR code is more reliable than one inside it.

Contrast, colour, and material

Use dark modules over a light background. The two colours need strong luminance contrast; visually different hues can still have similar brightness. Gradients, transparent backgrounds, metallic inks, and glossy laminates should be treated as higher-risk.

Physical surfaces introduce new failure modes:

  • Curved bottles distort the grid.
  • Fold lines can cut through finder patterns.
  • Glossy packaging reflects ceiling lights.
  • Fabric stretches and blurs square edges.
  • Thermal printers can spread dark ink into white gaps.

Print one sample on the actual stock before producing a batch.

A five-minute scan test

Test with at least one iPhone and one Android device:

  1. Scan at the expected distance.
  2. Scan with the phone tilted 30–45 degrees.
  3. Try dim indoor light and bright reflected light.
  4. Test the smallest printed version.
  5. Confirm the destination and HTTPS certificate.
  6. Photograph the printed code and scan the photo.

The code should resolve quickly without carefully positioning the camera. If it hesitates, shorten the payload, enlarge the symbol, increase contrast, or remove decoration.

For a normal web URL, start with M correction, a four-module quiet zone, black on white, and SVG export. Use at least 25–30 mm for handheld print. Switch to Q or H only for logos or likely damage, and compensate by making the code larger.

Create your test files with the QR Code Generator or call the QR Code API when you need repeatable generation in a build, email, or document pipeline.

Frequently Asked Questions

What is the best QR code error-correction level?

Use M for most clean digital and print uses. Choose Q or H when adding a logo or when the code may be scratched, folded, or partly obscured.

How small can a printed QR code be?

About 20–25 mm square is a practical minimum for short URLs scanned at arm's length. Dense codes, weak cameras, and longer scanning distances need a larger symbol.

Can I put a logo in the middle of a QR code?

Yes, but use Q or H error correction, keep the logo modest, preserve strong contrast, and test the final printed output on several phones.