Skip to content
Print Export Tool

QR DPI Calculator

Work out the pixel dimensions a QR code needs at your target print size and DPI, and get export guidance so the printed code stays sharp instead of soft and blobby.

1. Print target

Formula

Pixels = (print width in mm ÷ 25.4) × DPI. Pixels per module = total pixels ÷ modules per side, where modules per side = 21 + 4 × (version − 1). As a rule of thumb, aim for at least 4 pixels per module at final print size; below that, edges soften and small modules can merge. Vector SVG has no DPI limit and is the safest export for print whenever your workflow accepts it.

Result
Required pixel dimensions
591 × 591 px
at 300 DPI · 50 mm (1.97 in) wide
Pixels per module16.0 px
Modules per side37
VerdictPrint-ready

For print, export SVG when possible. If you must use PNG, export at the exact pixel size shown here or larger — never upscale a small PNG afterwards.

DPI, Pixels, and Why QR Codes Go Soft in Print

A QR code is a grid of hard-edged squares, which makes it unusually unforgiving of low resolution. A photograph can survive being a little soft; a QR code cannot, because soft edges shift the boundary between dark and light modules and the scanner starts guessing. The most common cause is exporting a small PNG — often 72 DPI screen resolution — and then scaling it up in a layout program. The pixels stretch, the edges blur, and a code that scanned perfectly on screen fails on paper. The fix is to decide the print size and DPI first, then export pixels to match.

What DPI actually means for a QR code

DPI, dots per inch, says how many printer dots cover one inch of paper. A 50 mm code at 300 DPI needs about 591 × 591 pixels. At 72 DPI the same code is only about 142 × 142 pixels, so each module of a version-5 code is covered by roughly four pixels — barely enough to hold a clean edge, and not enough once ink spreads on uncoated stock. Higher DPI is not automatically better either: 600 DPI doubles the file size and rarely improves scanning on ordinary paper, but it is worth it for very small codes, fine substrates, or engraving and embossing where edge precision matters.

The hierarchy of safe exports

Vector SVG is the safest choice for print, because it describes the squares mathematically and renders sharply at any size. If your printer or layout tool needs a raster file, export PNG at the exact pixel dimensions the calculator gives, at 300 DPI or above, and place it at 100% scale — do not resize it in the layout. JPEG is the worst option for QR codes: its compression smears high-contrast edges and adds ringing around every module boundary. If a JPEG is unavoidable, use the highest quality setting and never re-save it repeatedly.

Production checklist

  • Confirm the final printed size before exporting, including whether the stated size covers the quiet zone.
  • Export SVG for print whenever the workflow allows it; otherwise PNG at 300 DPI or more.
  • Keep at least 4 pixels per module at final size, and more for small codes or absorbent paper.
  • Turn off any automatic image sharpening, resampling, or compression in the layout tool.
  • Print a proof at final size on the real substrate and scan it before the full run.

Resolution is a one-way street: you can always downscale a sharp export, but you can never recover sharpness from a blurry one. Export generously, then let the printer do its job.

Frequently Asked Questions

What DPI should a printed QR code be?

300 DPI is the standard planning target for print. Use 600 DPI for very small codes, engraving, or embossing. Vector SVG is even better because it has no DPI limit at all and stays sharp at any size.

Can I just enlarge a small PNG for print?

No. Upscaling a small PNG stretches the existing pixels and softens module edges, which is one of the most common causes of print failures. Export at the pixel size the calculator gives, or use SVG.

Why is JPEG bad for QR codes?

JPEG compression is designed for photographs and smears hard edges. On a QR code it adds ringing and blur around every module boundary, which can flip modules near the threshold. Use PNG or SVG for codes.

How many pixels per module do I need?

Aim for at least 4 pixels per module at the final printed size, and more for small codes or absorbent paper where ink spread softens edges. The calculator shows your exact figure for the version and size you enter.