SVG draws shapes, PNG stores pixels
An SVG describes the code as shapes, a path of squares at exact coordinates, and a viewer redraws them at whatever size you ask, so the edges stay sharp from a postage stamp to a billboard. A PNG stores a fixed grid of pixels. Enlarge it and the viewer has to invent pixels between the real ones, which smears the edges.
Why blur hurts a QR code more than a photograph
A scanner looks for sharp transitions between dark and light modules and measures the spacing between them, and a soft edge throws those measurements off. A photo hides softness inside its gradients, but a QR code is pure black and white, so blur shows up directly and can make a dense code unreadable. The code also needs its quiet zone, a blank border four modules wide, and both formats from the generator include it. Crop it off, or butt the code against other artwork, and scanning gets harder.
Which QR code file for which job
| Destination | Choose | Reason |
|---|---|---|
| Printer, signage, packaging | SVG | Scales without blur and the printer can size it exactly |
| Word or slide document | SVG if the program accepts it, otherwise a large PNG | Avoids stretching |
| Website or email | PNG | Simple, supported everywhere |
| Chat or social post | PNG | Most services want a raster image |
| Design software | SVG | You can place it as a vector |
Placing an SVG QR code in a layout
- Open it in your design tool and place it without distorting the aspect ratio.
- Leave the white background rectangle in place so the quiet zone stays clear.
- Skip low-contrast recoloring. Dark modules on a light background is the safe choice.
- If a program can't place SVG, export to PDF from a tool that handles vector, and avoid a small bitmap.
Getting a sharp PNG QR code
Business cards are the usual case where this matters, and the business card guide shows the print setup. The generator draws the PNG at a whole number of pixels per module, so every module is a crisp square. Choose the largest size option that suits the destination, and don't resize it by a non-whole factor in other software, since scaling down by an odd amount can blur the modules. If a program has to stretch a PNG, use nearest-neighbor scaling or vector placement where it offers either.
Asking a printer for the right file
Tell the print shop you're sending a vector SVG of a QR code and that it must be printed at its natural proportions with the white border intact. Ask for a proof, and scan it before approving. Printers who convert to a bitmap at low resolution will blur the modules, so say the file is vector and should stay vector.
How we checked both files agree
Both files are built from one module matrix, so a code for a link to a hosted file, as in the PDF guide, is identical in either format. We verified the encoder by decoding its output across every version and error-correction level, and a separate test confirmed that the shapes in the SVG reproduce the exact module grid. That shows the two files agree with each other. It doesn't replace scanning the real print on a couple of phones.
Questions people ask
Should I use SVG or PNG for a QR code?
SVG for print and anything that may be enlarged. PNG for screens and services that want a bitmap.
Does an SVG give a better QR code than a PNG?
It has no fixed resolution, so it never goes soft when enlarged. The pattern itself is the same as in the PNG.
Can I change the color of the code?
This generator makes black on white, the safest combination. If you recolor elsewhere, keep strong contrast with dark modules on a light background.
What makes a printed QR code come out blurry?
Often a small PNG was scaled up. Use the SVG or a larger PNG, and print a proof.
Do printers accept SVG?
Many do, though some prefer PDF or EPS. Ask your printer, and export a vector PDF from a design tool if needed.
Can I turn a PNG QR code into an SVG afterward?
Regenerate it. Tracing a bitmap risks distorting modules, so rebuild the code from the original content.
Sources