Which format for which job
| Where the code goes | Format | Why |
|---|---|---|
| Anything printed: cards, flyers, menus, posters, packaging | SVG | Vector, so it's sharp at any size |
| A print shop that asks for it | PDF or EPS, exported from the SVG | What print workflows expect |
| Website or online store | SVG, or PNG if the site won't take SVG | Sharp on every screen |
| Word, Google Docs, PowerPoint, Slides | Large PNG | Inserts and resizes reliably |
| Social media and messaging apps | PNG | These don't accept SVG uploads |
| PNG | Many 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.)
| File | Size |
|---|---|
| SVG, square style | 4.4 KB |
| SVG, rounded style (the default) | 11 KB |
| PNG, 512 px | 13 KB |
| PNG, 2,048 px | 77 KB |
| PNG, 4,096 px | 195 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 width | PNG 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.