Skip to content
Urlzee

QR Code PNG vs SVG: Which Format Should You Download?

By Urlzee Team · Published · 6 min read

Download SVG when the QR code is going to print or will be resized by a designer, and PNG when it is going on a website, in an email, in a slide or on social media. SVG scales to any size without blurring; PNG is accepted everywhere but has a fixed number of pixels.

What is the difference between PNG and SVG?

PNG is a raster format and SVG is a vector format. That one distinction explains everything else.

A PNG stores a grid of coloured pixels. A 1024 × 1024 PNG has exactly that many, and it looks sharp as long as it is displayed at or below that size. PNG compression is lossless, so the edges between dark and light squares stay perfectly crisp, which is why it suits QR codes far better than JPEG.

An SVG stores instructions: draw a dark square here, another there. The software displaying it redraws those shapes at whatever size is needed. A QR code is nothing but squares, so its SVG is small, exact, and equally sharp on a postage stamp or a billboard.

PNGSVG
TypeRaster (pixels)Vector (shapes)
Scales up without blurNoYes
Works in email and social mediaYesOften not
Works in Word, PowerPoint, Google DocsYesVaries by app and version
Works in design and print softwareYesYes, and preferred
Editable colours after downloadNot easilyYes, in a vector editor
File size for a QR codeSmallVery small

When should you download a PNG?

Choose PNG whenever the destination expects a normal picture.

  • Email. Many email clients do not display SVG images, so use PNG in newsletters and signatures.
  • Social media. Upload forms on the major platforms take raster images such as PNG and JPEG.
  • Messaging apps. A PNG sends and previews like any photo.
  • Slides and documents. PNG drops into every office application without surprises.
  • Website builders and CMS uploads that reject SVG. Some block it by default for security reasons, because an SVG file can contain scripts.

In Urlzee's QR code generator, the PNG download comes in three sizes: 512, 1024 and 2048 pixels square. For screen use, 512 or 1024 is plenty. Pick a size larger than you will display it at and let the page or app scale it down; scaling down is harmless, scaling up is where trouble starts.

When should you download an SVG?

Choose SVG whenever the code will be printed, resized or handed to someone else to place.

  • Commercial printing: packaging, posters, brochures, business cards, signage.
  • Large formats: banners, vehicle graphics, window vinyl.
  • Cutting and engraving: vinyl cutters and laser engravers work from vector paths.
  • Design work: a designer can scale the code, recolour it to an exact brand ink, and export it in whatever format the job needs.
  • Websites you control, where an SVG stays sharp on every screen density.

If a printer asks for a PDF or EPS file, open the SVG in a vector editor such as Illustrator, Affinity Designer or Inkscape and export from there. The code remains vector throughout.

How large can you print a PNG QR code?

Divide the pixel width by the printer's resolution. Commercial print is commonly prepared at 300 dots per inch.

PNG sizeSharp print width at 300 dpi
512 pxabout 4.3 cm (1.7 in)
1024 pxabout 8.7 cm (3.4 in)
2048 pxabout 17.3 cm (6.8 in)

QR codes are more forgiving than photographs here, because they contain only hard-edged squares. A code printed at 150 dpi can still scan perfectly well; what matters is that each module prints as a clean square. So these widths are a conservative guide rather than a hard limit. Still, once you are planning anything larger than a flyer, switching to SVG removes the question entirely.

Physical size is a separate decision from file size. How big the code needs to be for people to scan it depends on distance, which the QR code size guide covers.

Why does a QR code go blurry, and how do you fix it?

Blur appears when a raster image is enlarged and the software smooths the result. Most programs enlarge images by blending neighbouring pixels, which is good for photos and bad for QR codes: the sharp boundary between a dark and a light square turns into a grey ramp.

Fixes, from best to worst:

  1. Use the SVG instead.
  2. Download a larger PNG so no enlargement is needed.
  3. If you must enlarge a PNG, use an image editor's "nearest neighbour" or "hard edges" resampling option, which duplicates pixels without blending and keeps the squares crisp.

The other common cause of soft edges is conversion. Screenshots, copy-and-paste between apps, messaging apps that recompress images, and saving as JPEG can all degrade a code. Keep the original download and use that file directly.

Does the format change how well a QR code scans?

No. The same content with the same settings produces the same pattern in both formats, and a camera can't tell which file was used. Format only affects scanning indirectly, when a raster file is stretched, compressed or converted badly.

The settings that do affect scanning are the ones you choose before downloading: how much content is encoded, the error correction level, and the colours. Those apply to PNG and SVG equally. If a clean, correctly sized code still fails, the checklist in why a QR code is not scanning is the place to look.

What should you check when placing the file?

Whichever format you use, a few handling rules protect the code.

  • Keep it square. Resize from a corner so width and height stay equal.
  • Keep the margin. Don't crop the light border around the pattern; add more clear space around it in the layout if you can.
  • Mind the background. Urlzee's downloads use the solid background colour you picked, so the code keeps its contrast on any page. If you later remove that background in an editor, check what the code ends up sitting on.
  • Don't apply effects. Drop shadows, outlines, transparency and rounded-corner masks all eat into the pattern or its margin.
  • In print files, use one solid ink for the code where possible. A black made from several overlapping inks can show soft edges if the layers are slightly misaligned.

Which should you choose if you are not sure?

Download both. It takes two clicks, and you will have the right file whether the code ends up in a tweet or on a trade-show banner.

If you only want one: SVG for anything physical, PNG at 1024 pixels for anything on a screen. And if the code is going to print, consider encoding a short link from the URL shortener rather than a long address. The format keeps the edges sharp, but only a shorter link makes the squares themselves bigger. The full walkthrough is in how to create a QR code for a link.

Frequently asked questions

Is PNG or SVG better for a QR code?
SVG is better for print and anything that will be resized, because it stays sharp at every size. PNG is better for places that only accept ordinary images, such as email, social media and most office documents.
What size PNG do I need to print a QR code?
Divide the pixel width by the print resolution. At 300 dpi, a 1024-pixel PNG prints sharply up to about 8.7 cm wide and a 2048-pixel PNG up to about 17 cm.
Why does my QR code look blurry when I enlarge it?
It is a PNG being stretched beyond its pixel size, and the software is smoothing the edges. Download a larger PNG, or use the SVG version, which has no pixels to stretch.
Can I save a QR code as a JPEG?
You can, but it is a poor choice. JPEG compression adds fuzzy artefacts along sharp edges, which is exactly what a QR code is made of. Use PNG or SVG instead.