Back to articles

Published · November 19, 2026

SVG or PNG? The Best File Format for Printing a QR Code

Pick SVG when the print size may change, PNG when it won't. Then check the quiet zone and module size, which decide whether the code scans.

Short answer: SVG if the size may change, PNG if it won't

Choose SVG when you don't know the final print size yet, or when the same code will appear on a flyer, a sticker and a poster. Choose PNG when you know the exact size and can export it with enough pixels. Either format can print a perfectly scannable code. What goes wrong is usually an upscaled, blurry PNG or a missing margin, not the format itself.

SVG or PNG: what is actually different

Raster versus vector

PNG is a raster format. It stores a fixed grid of pixels with lossless compression, so it is widely supported and suits fixed-size printing, but you need enough resolution to avoid pixelation. Stretch a small PNG onto a large sign and the square edges of the modules turn soft.

SVG is a vector format based on XML. It describes the squares as shapes, so it is resolution-independent: you can scale it to any size without losing quality. On a screen the two look nearly identical. The difference only shows up once you print.

Editing and customization

SVG files can be opened in design tools such as Figma, so a designer can change a border color or place the code into a layout. A PNG is harder to edit. If a designer or print shop asks for a "vector" file, they mean SVG.

Where EPS fits

EPS is another vector format. Uniqode describes it as well suited to professional printing, including large prints such as banners and posters. If your printer asks for EPS, export it. If they accept SVG, the result is the same for most jobs.

When PNG is fine

PNG is the safer default when you are just sending a file to a home printer or dropping it into a document. It opens almost everywhere. If your code will sit on a small card or a one-page sign, such as a QR code printed on a menu, export a PNG large enough for the final size and don't resize it afterward. When in doubt, download both: tools like Hovercode let you re-download in either format, so the first choice isn't permanent.

The quiet zone and module size matter more than the format

Keep a four-module margin

DENSO WAVE, the inventor of QR Code, says a QR code needs a margin four modules wide on all sides, a clear area where nothing is printed. Text, graphics and borders must stay outside it. A module is one small square of the code. Trimming the white border to "save space" is a common reason a printed code fails.

Give each module enough printer dots

DENSO WAVE also recommends that each module is made up of 4 or more dots for stable printing. On a 600 dpi laser printer, 4 dots is a 0.17 mm module. On a 300 dpi thermal printer it is 0.33 mm. Each scanner also has a smallest module size it can read, so tiny codes from a high-density printer can fail on a phone camera or handheld reader.

DENSO WAVE's worked example: a Version 3 code (29 modules wide) at 400 dpi with 4 dots per module is about 7.4 mm across. With the four-module margin on each side, the area you must reserve is about 9.4 mm per side. If the area is too large, lower the version, reduce the module size, or split the content into several codes.

A short test-print checklist

  1. Export at the final size (PNG) or as SVG.
  2. Keep the four-module margin and good contrast. Don't stretch the code.
  3. Print one copy and scan it with the phone or scanner your audience will use.
  4. Only then print the full run.

If you already have printed materials in circulation, it's worth a quick pass to audit the QR codes on your printed materials.

Conclusion

The format is the smaller decision. Use SVG when the size can vary or a designer is involved, PNG when the size is fixed, and EPS if your print shop asks for it. Then protect the margin, keep modules large enough for your printer, and test a physical copy. QRDock's free QR creator lets you make a code and check it on your own phone before anything goes to print.

Frequently Asked Questions

Is SVG or PNG better for printing a QR code?

SVG is better when the print size may change or the code goes to a designer, because it is a vector and scales without blur. PNG is fine when you know the exact size and export it with enough pixels.

What is EPS and do I need it?

EPS is another vector format used in professional printing, for banners and posters. If your printer asks for it, export it. Otherwise SVG does the same job for most people.

How much blank space does a QR code need around it?

DENSO WAVE says a QR code needs a quiet zone four modules wide on every side, with no text, graphics or borders inside it.