QR Code Guides

QR Code SVG vs PNG: What Exports Contain

Compare QR code SVG vs PNG with fresh logo and no-logo exports, PDF object checks, 42 digital decoding results, and practical conversion guidance.

10 min readUpdated Nov 19, 2026Practical Guide
Layered QR illustration tiles contrasting pixels and vector outlines

The useful answer to QR code SVG vs PNG depends on what the downloaded file actually contains. A path-based SVG preserves scalable QR geometry. A PNG provides a fixed pixel grid. However, an SVG can include a bitmap logo, and a PDF can contain a raster image rather than vector modules.

Start with the CraftMyQR generator when you need a controlled source instead of a screenshot. Then inspect the export and the file produced by your design workflow. Here we compare fresh logo and no-logo downloads, document their structure, and report 42 digital decoding checks. For material, placement, and physical proof testing, use the separate QR codes in print guide.

QR Code SVG vs PNG: Choose the Artwork, Not the Extension

PNG stores pixels with lossless compression. SVG describes shapes and other graphical elements in XML. Its scalable geometry is useful when artwork must change size, but the format also permits embedded images. These are format properties, described in MDN’s image-format guide, not promises that every exported file uses the same construction.

The practical distinction is between vector modules and a picture of modules. A screenshot placed inside an SVG remains a screenshot. Likewise, a PDF page containing a JPEG does not gain new QR detail because the filename ends in .pdf.

A good handoff names both the container and its contents. “SVG with vector QR modules and an embedded logo” is more informative than “high-resolution file.”

Inspection diagram comparing plain and logo PNG, SVG, and PDF downloads
Format or constructionWhat resizing preservesWhat to inspect
PNGExisting pixel informationPixel dimensions and final placed width
SVG with vector modulesGeometric module edgesPaths or shapes, plus any image elements
SVG with a bitmap logoVector modules, but not unlimited logo detailEmbedded image type and receiving software support
PDFWhatever objects the page containsVector drawing objects, raster resolution, and placement

What We Downloaded and Inspected

On 20 October 2026, we opened CraftMyQR in desktop Microsoft Edge and entered the exact payload https://craftmyqr.com/. We downloaded PNG, SVG, and PDF from the same generator state. Next, we added an original sample logo and downloaded the three formats again.

The logo was a simple blue square with a white plus on a white background, supplied as a 96-by-96 PNG. It is a test mark, not a customer’s logo or a medical endorsement. We kept the default dark foreground and white background. Both SVGs used a 37-by-37 viewBox, including the border, so the comparison did not mix unrelated QR grids.

These are observed exports from that date and configuration, not a claim about every CraftMyQR tool or future release. Recheck your own download, especially after changing generator type, branding, or export settings.

DownloadPlain sampleSample with logo
PNG520 × 520 pixels520 × 520 pixels
SVGTwo paths, no image elementsTwo paths and one embedded WebP image
PDFOne 520 × 520 JPEG image objectOne 520 × 520 JPEG image object

The Logo SVG Is Mixed Artwork

The logo download retained the paths used for the background and QR modules. It also contained an SVG image element with an image/webp data URL. In other words, the uploaded PNG became an embedded WebP image; the entire QR did not become one bitmap.

That distinction matters during conversion. A receiver may preserve the vector modules while failing to import the embedded logo, or rasterize the complete composition. The SVG specification’s image mechanism can reference raster content, as explained in MDN’s SVG image documentation. Do not assume that support for basic SVG paths proves identical support for every embedded image format.

Inspect the logo in the receiving application and again in its exported file. We did not test every version of Illustrator, InDesign, Office, or printer software, so these findings do not establish compatibility with those applications.

The PDF Is a Page Containing a Raster Image

Both sample PDFs were single A4 pages. Their image dictionaries specified width 520, height 520, and the DCTDecode filter used for JPEG data. The page placed that image in a 360-point square: five inches, or 127 mm, wide.

Consequently, the PDF download was not an independent vector master in this configuration. It packaged a raster QR on a page. This does not mean it cannot decode or print; it means the receiving workflow must judge its actual pixel information rather than infer unlimited scaling from “PDF.”

Digital Conversion Results: All 42 Checks Decoded

We rendered or resized each of the six downloads to seven complete-square widths: 66, 99, 132, 198, 330, 520, and 1,040 pixels. Every output included the existing clear border. We decoded the resulting images with jsQR and compared the returned text with the exact source payload.

Sharp/libvips resized the PNG source using its Lanczos3 kernel, while its SVG renderer rasterized the artwork to the requested width. Poppler rendered each PDF page at a resolution calculated for the five-inch placed square; we cropped that square using the inspected placement coordinates. We used an opaque white background throughout.

All 42 conversions decoded successfully. This particular short payload remained readable to one software decoder even after substantial downsampling or enlargement.

The smallest result is not a recommended minimum. At 66 pixels across a 37-unit square, the average is only about 1.78 pixels per unit. An ideal software image and a photographed physical code have different constraints. No result here measures phone cameras, viewing distance, glossy material, print quality, or scan success across people and devices.

Use this matrix as a reproducible file-conversion check, not a ranking of physical scanning reliability. A successful decode also does not prove that an embedded logo remains visually accurate: inspect the artwork separately.

SourcePlain sampleLogo sample
PNGCorrect payload at all seven widthsCorrect payload at all seven widths
SVGCorrect payload at all seven widthsCorrect payload at all seven widths
PDFCorrect payload at all seven widthsCorrect payload at all seven widths

Calculate Effective Resolution at the Placed Size

PNG vs SVG QR code decisions become clearer when the target size is explicit. For a raster square, calculate effective pixels per inch from the source width:

effective ppi = pixel width × 25.4 ÷ placed width in millimetres

For our 520-pixel source, the arithmetic is:

That last value matches the sample PDF’s five-inch placement: 520 divided by five equals 104. Enlarging the PDF page does not increase the image’s original information. Shrinking its placed image increases effective ppi without changing the source pixels.

Conversely, changing a PNG’s resolution metadata to “300 dpi” does not manufacture detail. At 300 ppi, 520 pixels correspond to approximately 44 mm. Whether that is appropriate still depends on the module grid, production process, and proof. The number is a calculation, not a universal scanning specification.

Placed width, including the borderEffective source resolution
25 mmAbout 528 ppi
50 mmAbout 264 ppi
127 mm104 ppi

Keep a Master and a Delivery Copy

Save the original vector-module SVG where the workflow accepts it, plus a PNG for applications that require raster images. Store the exact decoded URL alongside them. Never replace the master with a screenshot of the design application.

When a printer requests PDF, export a complete production layout from suitable software and inspect the resulting objects. Placing an SVG into a document does not guarantee its final PDF remains vector. Likewise, converting an existing raster PDF to SVG can merely wrap its image in a different container.

Rasterize Once at the Required Dimensions

If the destination requires PNG, export from the best available master at the needed final pixel dimensions. Preserve square proportions and the full border. Record which application and settings made the delivery file, especially when another person will resize it later.

Repeatedly shrinking and enlarging raster copies introduces extra conversion steps without adding source information. Regenerating a QR from its verified payload is preferable to guessing the modules with an image-tracing tool. See the link-to-QR workflow when you need a fresh controlled source.

Verify the Final File, Not Only the Source

Open the receiving application’s export, check that the logo and border survived, and decode the QR from that file. Then compare the text character for character with the intended payload. Do not rely solely on a live website redirect, which can conceal that two files contain different addresses.

If a file stops decoding after conversion, compare the source and output dimensions, aspect ratio, clear border, contrast, and embedded objects. The scanning troubleshooting guide covers wider device and physical causes; this check isolates the file pipeline first.

Use the Samples Without Mistaking Them for Your Own Code

Download the plain sample PNG and the sample-logo PNG to compare a fixed-size raster pair. Both originals are 520 by 520 pixels and encode https://craftmyqr.com/. They are examples, not templates whose destination changes when you edit surrounding text.

To reproduce the structure comparison, generate the same URL in CraftMyQR, download all three formats before and after adding a small original logo, and inspect the new files. In an SVG text editor, look for paths, image elements, and embedded MIME types. In a PDF preflight or object-inspection tool, check image dimensions and placement. Software updates may produce different results; report them as new observations rather than forcing them to match ours.

For a handoff, record the decoded payload, source filename, logo state, pixel dimensions or viewBox, placed size, conversion application, and final-file decode result. Add physical proof results separately so a digital check never becomes an undocumented claim about print.

Conclusion: Inspect Before You Choose

For QR code SVG vs PNG, keep scalable module geometry when useful and deliver a correctly sized raster file when required. Inspect PDF content and embedded logos rather than treating extensions as quality certificates.

CraftMyQR is useful here because it offers the same controlled QR workflow with PNG, SVG, and PDF downloads. Our inspection also shows its limits: current sample PDFs contain raster artwork, and logo SVGs contain an embedded image. Keep the master, verify your conversion, and approve the real production proof separately.

Frequently Asked Questions

Is SVG always better than PNG for a QR code?

No. Vector modules are useful when artwork must resize, while PNG suits workflows requiring a fixed pixel image. Inspect the actual SVG and receiving application. The best choice preserves the needed information through the final delivery, not merely the preferred extension.

Does adding a logo make the entire SVG raster?

Not in our observed CraftMyQR sample. The QR modules remained paths, while a separate image element contained a WebP logo. That mixed construction requires checking both geometric module edges and whether the receiving software displays the embedded image correctly.

Is a QR code PDF automatically vector artwork?

No. PDF can package different types of page content. Our two downloads contained 520-by-520 JPEG image objects. Inspect the specific PDF’s objects and effective resolution before treating it as a scalable master or sending it for production.

Can I convert a PNG to SVG to improve quality?

Wrapping a PNG inside SVG does not recover missing detail. Automatic tracing can also alter module boundaries. If you know the intended payload, regenerate a controlled QR and compare its decoded text instead of relying on an uncertain traced reconstruction.

How many pixels do I need for a printed QR?

There is no single number for every grid and print process. Calculate effective ppi from source pixels and placed width, preserve the clear border, and check the module geometry. Then test a physical proof with representative devices and conditions.

Do the 66-pixel decoding results prove that size is safe?

No. They describe one short payload, two designs, specific digital conversion tools, and one software decoder. The experiment did not measure camera focus, lighting, material, distance, or physical wear. Treat the result as file-level evidence, not a universal minimum.

Should I change PNG metadata to 300 dpi?

Metadata alone does not create new pixels. A 520-pixel image at 300 ppi corresponds to roughly 44 mm wide. Choose actual dimensions for the intended workflow and evaluate the source information, rather than assuming a metadata label guarantees quality.

Is downloading a PDF the same as linking a QR to a PDF?

No. Downloading a QR as PDF changes the artwork’s container. Linking to a PDF means the encoded URL opens a hosted document. Choose the destination workflow separately from the image format used to place the QR in your design.

Paste a URL and create your QR code

Need to create a QR code now?

Create and preview your QR code with our free generator. For long-term materials like menus, packaging and posters, consider upgrading to dynamic QR codes.

Dynamic QR codes

Need to update links later or review scan data?

Dynamic QR codes let you change the destination after printing and review scan activity over time.

Create a QR code