Guide

Best QR code format: SVG, PNG or PDF?

For print, use SVG: it's a vector file, so the code stays sharp at any size, from a business card to a banner. Use PNG for websites, slides, documents and social posts, exported large. If a printer asks for PDF or EPS, open the SVG in a design tool and export it from there.

Which format for which job

Where the code goesFormatWhy
Anything printed: cards, flyers, menus, posters, packagingSVGVector, so it's sharp at any size
A print shop that asks for itPDF or EPS, exported from the SVGWhat print workflows expect
Website or online storeSVG, or PNG if the site won't take SVGSharp on every screen
Word, Google Docs, PowerPoint, SlidesLarge PNGInserts and resizes reliably
Social media and messaging appsPNGThese don't accept SVG uploads
EmailPNGMany email apps don't display SVG

The same code in five files

We made one code, for https://example.com/menu, with our generator's engine, saved it as SVG in two styles, rendered the square one to PNG at three sizes, and decoded every file with the jsQR library. All five returned the exact address. (PNG sizes from your browser's download can differ by a few kilobytes.)

FileSize
SVG, square style4.4 KB
SVG, rounded style (the default)11 KB
PNG, 512 px13 KB
PNG, 2,048 px77 KB
PNG, 4,096 px195 KB

The SVG is the smallest and the only one that stays sharp at every size, because it describes squares rather than storing pixels. Hand a designer the SVG. It opens in browsers and in Illustrator, Affinity Designer, Inkscape, Figma and Canva.

PNG: pick the size before you export

A PNG has a fixed number of pixels. Stretch a small one and the edges of the squares go soft, and soft edges are harder for a camera to read. At the 300 pixels per inch most printers ask for:

Printed widthPNG size
2 cm (0.8 in)about 240 px
5 cm (2 in)about 600 px
10 cm (4 in)about 1,200 px
20 cm (8 in)about 2,400 px
35 cm (13.6 in)about 4,096 px

What a camera actually reads is each square, so the content matters too. The menu link above makes a version 2 code: 25 squares, 29 with our two-square margin, so a 600-pixel PNG gives each square about 20 pixels. A 117-character link with tracking tags makes a version 7 code, 49 squares wide with the margin, and the same 600 pixels give each square about 12. Our generator exports 512, 1,024, 2,048 or 4,096 pixels; when unsure, take the bigger one and shrink it.

PDF and EPS

We don't export these. If a printer asks for one, open our SVG in a design tool and export to PDF or EPS from there. Then zoom in a long way on the exported file. The squares should stay crisp. If they turn blurry, the export made a pixel image, and the export setting needs changing.

What to avoid

JPG compression blurs the edges of the squares and leaves faint specks around them, so use PNG whenever you need a pixel image. Screenshots capture whatever size your screen showed, which is usually too small to print. Image "optimizers" that resize or recompress can do the same damage. And always scale a code from a corner, so the squares stay square.

Before sending anything to print, check the size against the scanning distance with the size calculator, check your colors in the contrast checker, and leave the margin described in quiet zone.

Questions people ask

Does the file format change what the code says?

No. The SVG and PNG versions of a code hold exactly the same text, and a scanner reads the same thing from both. The format only changes how the image is stored and how sharp it stays when resized.

Written by Last updated