PNG vs SVG for QR Codes: Which Format to Use?

When you download a QR code, most generators offer two format options: PNG and SVG. The choice matters more than you might think -- using the wrong format can lead to blurry prints, oversized files, or scanning failures. This guide explains the practical differences and tells you exactly which format to use for each situation.

What Is PNG? (Raster Format)

PNG (Portable Network Graphics) is a raster image format, meaning it stores your QR code as a grid of individual pixels. Each pixel has a specific color value, and together they form the image you see.

Key characteristics of PNG:

  • Fixed resolution -- A 1024 x 1024 pixel PNG contains exactly 1,048,576 pixels. This resolution is set at creation time.
  • Lossless compression -- Unlike JPEG, PNG does not degrade image quality when saving. Every pixel is preserved exactly.
  • Universal compatibility -- PNG files open in every image viewer, web browser, email client, and print application. There is no software that cannot handle a PNG.
  • Transparency support -- PNG supports transparent backgrounds, which is useful when placing a QR code on colored surfaces.

For QR codes specifically, PNG works well because the image is composed of sharp, high-contrast squares. There are no gradients or complex shapes that benefit from vector representation -- just black modules on a white background.

What Is SVG? (Vector Format)

SVG (Scalable Vector Graphics) is a vector image format, meaning it stores your QR code as mathematical descriptions of shapes rather than a grid of pixels. Each module in the QR code is defined as a rectangle with specific coordinates, dimensions, and color.

Key characteristics of SVG:

  • Resolution-independent -- An SVG can be scaled to any size -- from a thumbnail to a billboard -- without any loss of quality. The shapes are recalculated at each size.
  • Text-based file -- SVG files are XML documents that can be opened and edited in a text editor. This makes them easy to modify programmatically.
  • Smaller file size for simple graphics -- A QR code SVG is often 5-15 KB, compared to 30-100 KB for an equivalent high-resolution PNG.
  • Design software native -- Adobe Illustrator, Figma, Sketch, and Inkscape work natively with SVG, making it the preferred format for professional designers.

When to Use PNG

PNG is the right choice in the majority of everyday situations. Download PNG when:

  • Uploading to a print service -- Online print shops (Vistaprint, Moo, Canva Print) almost universally accept PNG. A 1024 x 1024 pixel PNG provides more than enough resolution for any business card size. At standard business card dimensions (3.5 x 2 inches), this gives you over 290 DPI -- well above the 150 DPI minimum for crisp printing.
  • Inserting into documents -- Microsoft Word, Google Docs, PowerPoint, and Keynote handle PNG files seamlessly. Simply insert the image and resize as needed.
  • Email signatures -- Email clients display PNG inline without any compatibility issues. SVG support in email is inconsistent.
  • Social media sharing -- Platforms like Instagram, Twitter/X, and Facebook accept PNG uploads. SVG files cannot be uploaded to social media.
  • Quick use without design tools -- If you do not use professional design software, PNG is simpler to work with. Download, insert, done.

When to Use SVG

SVG is the superior choice when scalability and design flexibility matter. Download SVG when:

  • Working with a graphic designer -- Designers working in Illustrator, Figma, or InDesign prefer SVG because it integrates cleanly into vector-based workflows. The QR code can be scaled, recolored, and positioned without any quality concerns.
  • Large-format printing -- If your QR code will be printed on a poster, banner, trade show booth, or vehicle wrap, SVG guarantees sharp edges at any size. A PNG that looks fine on a business card may become pixelated on a 6-foot banner.
  • Web development -- SVG files can be embedded directly in HTML, styled with CSS, and animated with JavaScript. They render sharply on retina displays at any zoom level without serving multiple image sizes.
  • Multiple output sizes -- If you need the same QR code at various sizes (business card, letterhead, poster, website), SVG lets you use a single source file for all outputs.
  • Color customization -- Since SVG is a text-based format, you can open it in a text editor and change colors by modifying hex values. This is faster than editing pixel colors in an image editor.

File Size and Quality Comparison

For a typical LinkedIn QR code with a logo in the center:

  • PNG at 1024 x 1024 pixels -- Approximately 30-80 KB. Sufficient for business cards, documents, and most print applications.
  • PNG at 256 x 256 pixels -- Approximately 5-15 KB. Fine for on-screen display but may become blurry if printed larger than 2 cm.
  • SVG -- Approximately 5-20 KB regardless of intended display size. The file size stays constant because it describes shapes, not pixels.

In terms of visual quality, there is no visible difference between PNG and SVG when the PNG is generated at sufficient resolution for the intended size. The difference only becomes apparent when you need to scale the image beyond its original pixel dimensions -- this is where SVG maintains its advantage.

Common Mistakes to Avoid

  • Scaling up a small PNG -- If you download a 200 x 200 pixel PNG and stretch it to fill a poster, the image becomes pixelated and the QR code may fail to scan. Either download at a higher resolution or use SVG.
  • Converting SVG to low-resolution PNG -- If you need a PNG version of your SVG, export at a high resolution (at least 1024 x 1024 pixels). Many online converters default to small sizes.
  • Using JPEG instead of PNG -- JPEG uses lossy compression that blurs the sharp edges QR codes require. Always use PNG when you need a raster format for QR codes. Never JPEG.
  • Uploading SVG to platforms that do not support it -- Many social media sites, email clients, and consumer print services do not accept SVG. Check format requirements before choosing SVG for delivery.

How to Convert Between Formats

SVG to PNG

If you have an SVG but need a PNG:

  • Adobe Illustrator / Figma -- Open the SVG, then export or "Save for Web" as PNG at your desired resolution.
  • Inkscape (free) -- Open the SVG, go to File > Export PNG Image, set the desired pixel dimensions, and export.
  • Online converters -- Sites like CloudConvert or SVGtoPNG.com handle the conversion in your browser. Set the output resolution to at least 1024 x 1024.

PNG to SVG

Converting from PNG to SVG is more complex because it requires tracing the pixel image into vector shapes. For QR codes, it is generally better to regenerate the QR code as SVG directly rather than converting from PNG. Image tracing can introduce artifacts that affect scanability.

Generate Your LinkedIn QR Code Now

Create a free, print-ready QR code with the LinkedIn logo for your business card.

Go to Generator →