A QR code that looks crisp on your screen can come out fuzzy on a flyer, a sign or a sticker. The usual culprit is resolution: the image file simply doesn't have enough pixels for the size it's printed at. Blurry edges make the black and white squares harder for a phone camera to separate, and that can make a code slow or impossible to scan.
This guide explains what DPI means for QR codes, how to calculate the resolution you need, and how to avoid the most common printing mistakes.
The short answer
- For most print jobs, aim for about 300 DPI at the final printed size.
- Pixels needed = print width in inches × DPI. A 2-inch code at 300 DPI needs a 600 × 600 pixel image.
- Never enlarge a small image to make it bigger. Generate a larger one instead.
- If your printer accepts it, a vector file (such as SVG or PDF) avoids the DPI question entirely.
DPI, PPI and pixels: what they mean
DPI stands for dots per inch, and PPI for pixels per inch. Strictly, DPI describes printers and PPI describes digital images, but most people and most print shops use "DPI" for both, so this guide does too.
A raster image like a PNG or JPG is a fixed grid of pixels. It doesn't have a physical size until you print it. The DPI is simply how many of those pixels you squeeze into each inch of paper:
DPI = pixel width ÷ print width in inches
So the same 600-pixel image is 300 DPI when printed 2 inches wide, but only 150 DPI when printed 4 inches wide. That's why "what DPI is my QR code?" always depends on how big you print it.
Why 300 DPI is the usual target
300 DPI is the standard many print shops ask for when printing images that people view up close, such as business cards, flyers, menus and packaging. At that resolution, the edges of each square look clean at normal reading distance.
Large items viewed from farther away, such as posters, banners and signs, are often printed at lower resolutions, because no one sees them from a few inches away. Your print shop's file requirements are the final word, so check them before you export.
Make a free QR code for a link, WiFi or contact card — generated in your browser.
Open the free QR code generator →How to calculate the pixel size you need
Work it out in three steps:
- Decide the printed size of the QR code, including its quiet zone (the white margin around it). Our QR code size for print guide helps you choose a size based on scanning distance.
- Convert to inches if you're working in centimeters: divide centimeters by 2.54.
- Multiply by the DPI you're targeting.
| Printed width | Pixels needed at 300 DPI | Pixels needed at 150 DPI |
|---|---|---|
| 1 in (2.54 cm) | 300 px | 150 px |
| 1.5 in (3.8 cm) | 450 px | 225 px |
| 2 in (5.1 cm) | 600 px | 300 px |
| 3 in (7.6 cm) | 900 px | 450 px |
| 4 in (10.2 cm) | 1,200 px | 600 px |
| 6 in (15.2 cm) | 1,800 px | 900 px |
Working backward: if you already have an image, divide its pixel width by 300 to see the largest size it can print at 300 DPI. A 1,024-pixel image, for example, prints at up to about 3.4 inches (1,024 ÷ 300).
Modules: the detail that matters most
A QR code is made of small squares called modules. The smallest codes are 21 × 21 modules, and the grid grows as you store more data, up to 177 × 177. The standard also calls for a quiet zone four modules wide on every side.
Two things follow from this:
- More data means smaller modules at the same print size, so a long URL needs more resolution than a short one. Keeping the link short helps; see how much data a QR code can hold.
- Each module should be a whole number of pixels. If a module is 7.5 pixels wide, software has to blend the edges, which creates gray fringes. When you can, choose an image size that divides evenly by the total width in modules (code plus quiet zone).
For example, a 25 × 25 code with a four-module quiet zone on each side is 33 modules wide. At 660 pixels, each module is exactly 20 pixels. Printed at 300 DPI, that's 2.2 inches wide.
You don't need to count modules for everyday printing at 300 DPI; there are usually enough pixels per module that small blending doesn't matter. It becomes important when the file is small or the code is dense.
Scaling without losing sharpness
- Don't upscale. Stretching a 300-pixel image to print 4 inches wide gives 75 DPI and soft, blurry edges. Generate a new, larger image instead.
- If you must resize, use "nearest neighbor." In most image editors, this resampling option keeps square edges sharp instead of blurring them. It works best when you scale by a whole number, such as 2× or 3×.
- Avoid heavy JPG compression. It can add blotches around edges. PNG keeps the edges clean. See SVG vs PNG for QR codes.
- Watch "fit to page" settings. Word processors and design tools can quietly scale your image. Check the final size in the layout.
When DPI doesn't matter: vector files
Vector formats such as SVG, EPS and PDF describe the code as shapes, not pixels, so they stay sharp at any size and have no DPI. If you're printing large or sending files to a professional printer, a vector file is the safest choice, as long as the printer and design software accept it.
QR Studio downloads PNG files up to 1,024 pixels wide, which works for codes up to about 3.4 inches at 300 DPI, or larger at the lower resolution many print shops accept for signs viewed from a distance. For bigger prints, check what resolution your print shop needs or use a generator that exports vector files.