QR Code Print Resolution Calculator
Start from the size you have space for. Give the QR version, the finished width in millimetres including the quiet zone, and your printer DPI, and it returns whole pixels per module and the exact raster to export.
- No signup
- Whole-pixel raster
- Quiet zone included
What you are printing
1–40. Version 3 is 29 modules across.
Measure the whole square you have space for, margin included.
50–4800 dots per inch.
Rounding the raster up to a whole multiple of 37 keeps every module on the same number of whole pixels, which is what stops modules looking uneven after resampling.
Raster to export
- Modules across the symbol
- 29
- Modules including the quiet zone
- 37
- Pixels per module needed exactly
- 9.577
- Whole pixels per module
- 10
- Total raster width
- 370 px
- Module size at that raster
- 0.847 mm
- Physical width it prints at
- 31.327 mm
The short answer
The finished square is (17 + 4 × version) + 8 modules wide. Convert your target width to pixels with width ÷ 25.4 × DPI, then round that pixel count up to the next whole multiple of the module count. Divide by the module count and you have whole pixels per module.
Worked example: version 3 is 29 modules, 37 with the quiet zone. A 30 mm finished width at 300 DPI is 354.3 pixels, which is 9.577 pixels per module — not a whole number. Rounding up gives 10 pixels per module and a 370 px raster, printing at 31.33 mm.
Units and definitions
- Finished width — the whole printed square, quiet zone included, in millimetres.
- Pixels per module — how many raster pixels each grid square occupies. Whole numbers only.
- Raster width — the pixel dimension to export the PNG at, always a whole multiple of the module count.
How we check this
The arithmetic on this page is covered by unit tests against the published module formula and the four-module quiet zone, and our own exports are decoded again by our scanner during testing. That is software reading software: it is not a physical print trial on your stock with your reader, and we do not present it as one.
If you know the dots per module instead and want the finished measurements, use the QR code size calculator. To make the code itself, start at the QR code generator, and read the printing guide before you send a batch to a printer.