Choosing a QR code file format is less about the information inside the code and more about what happens to its image after download. A code placed on a business card, a website or a large exhibition banner may encode the same link, yet each application has different production requirements.
Choose SVG for scalable print artwork, PNG for most fixed-size digital uses, and JPEG only when your workflow requires it. The QR code SVG vs PNG decision depends on whether you need to resize the artwork or deliver a ready-to-use pixel image. Ordinary JPEG compression introduces an additional risk because it can alter sharp edges.
This guide explains the differences, how to choose a format for your project and what to check before distributing the finished design.
QR code SVG vs PNG vs JPEG: quick comparison
Choosing a QR code file format by application
| Criterion | SVG | PNG | JPEG |
|---|---|---|---|
| Typical representation | Vector geometry | Raster pixels | Raster pixels |
| Resizing | Vector shapes remain scalable | Limited by source resolution | Limited by source resolution |
| Compression | Not inherently lossy image encoding | Lossless | Usually lossy |
| Transparency | Supported | Supported | Not supported in ordinary JPEG files |
| Suggested use | Print layouts and reusable masters | Web images and fixed-size documents | JPEG-only delivery workflows |
These are format characteristics, not measured scanning results. A poorly designed SVG can fail to scan, while a carefully prepared JPEG may work. The final size, contrast, surrounding margin and output process matter in every case.
What makes SVG suitable for QR code printing?
SVG stands for Scalable Vector Graphics. It can describe shapes using coordinates rather than storing only a fixed grid of pixels. The W3C SVG specification also permits mixed vector and raster content, so an SVG extension alone does not prove that every element is vector-based.
Schematic comparison. JPEG artifacts vary with compression and resizing.
Keep a reusable vector master
A QR symbol built from vector shapes can be incorporated into several layouts without repeatedly enlarging a small bitmap. For example, a shop might need the same destination on a counter sign, a flyer and a window display. Keeping a vector master allows the designer to prepare each version from the same source instead of stretching a screenshot.
Preserve the square proportions of the symbol when resizing it. Stretching only its width or height changes the geometry that a scanning device must interpret. Vector artwork does not prevent this mistake.
Check the print workflow
Ask the printer which file types the production system accepts. Some printers want the QR artwork incorporated into a print-ready PDF rather than delivered as a separate SVG. Inspect the exported document because a layout application may rasterize artwork during export. An SVG source does not guarantee that the final printed output retains vector geometry.
Also check the background. A transparent vector graphic placed over a photograph may lose the contrast and clear space it had when viewed on white. Add a suitable solid background where necessary.
When should you download a PNG QR code?
PNG is a practical choice when you know the approximate dimensions at which the code will appear. The W3C PNG specification describes a lossless raster format with optional transparency. Saving image data as PNG does not inherently introduce the characteristic losses of ordinary JPEG encoding.
Web pages, slides and digital documents
For a QR code in a presentation or web page, prepare a pixel image large enough for its intended display area. A small source image enlarged by a presentation application may look soft, especially on a large screen. Start with a suitably sized export rather than relying on enlargement afterward.
When embedding a code into a document, inspect the exported document as well as the editing view. The application might downsample images or change how they are rendered. If a code appears in a downloadable PDF, test the PDF on screen and test a physical copy if readers are expected to print it.
Pixel alignment matters
The small squares that form a conventional QR symbol are called modules. An image rendered with consistent whole-pixel module widths can avoid unnecessary intermediate shades along horizontal and vertical boundaries. Resampling to an arbitrary size may introduce softened boundaries or uneven widths. Whenever possible, generate a new raster export at an appropriate size rather than resizing a low-resolution image repeatedly.
Can JPEG compression damage a QR code?
Yes. Common JPEG encoding is designed to reduce image data with some loss of detail. The JPEG committee's overview describes the familiar lossy coding method as well as other coding modes included in the JPEG 1 standard. Here, JPEG refers to the ordinary lossy files used in everyday image workflows.
Sharp transitions between dark and light areas can acquire unwanted intermediate tones or visible artifacts after compression. On a QR code, these changes may make module boundaries less distinct. A small symbol with densely packed modules leaves less room for such changes than a generously rendered image.
This does not mean every JPEG QR code is unreadable. It means that JPEG introduces an avoidable source of image degradation when a suitable vector or lossless alternative is available. There is no universal JPEG quality setting that guarantees successful scanning in every environment.
Prefer SVG or PNG where supported. Use JPEG only when the workflow requires it and test the delivered file.
If JPEG is mandatory
Start with a clean original, export at adequate dimensions using a high-quality setting, keep the light background and avoid repeated JPEG saves. Check the version actually delivered by the destination platform. A service may resize or recompress an uploaded file independently of your export settings.
Converting a damaged JPEG into PNG does not restore missing image detail. Similarly, placing that JPEG inside an SVG container does not turn its pixels into original vector geometry. If you have the intended encoded information, regenerate the symbol from that information instead.
How to choose a QR code size for a raster file
Think about both the number of pixels and the physical space available. A file with a high resolution can still produce an impractically small printed symbol if the layout scales it down too far.
For an illustrative calculation, suppose a square image is 600 pixels wide and will occupy two inches of printed width, including the blank border. Its effective image resolution is 600 divided by 2, or 300 pixels per inch. If the same image occupies four inches, the effective resolution becomes 150 pixels per inch. These calculations describe pixel density, not scanning performance or a minimum required resolution.
The number of modules in the symbol also matters. A denser QR pattern needs finer detail at the same physical width. Consult your printer about output resolution, material and the intended viewing distance rather than selecting a universal pixel count.
Protect the blank border
DENSO WAVE's QR code area guidance specifies a clear margin four modules wide on each side of a conventional QR Code. This area is called the quiet zone. Keep it free of text, decorative elements and other marks.
A margin measured in pixels is meaningful only in relation to the width of a module. If a module is five pixels wide in an illustrative raster layout, a four-module margin occupies twenty pixels on each side. Cropping the image to the outermost dark squares removes that protection regardless of the file format.
Practical examples: which format should you use?
Business card or product label
Prefer vector artwork if it fits the production workflow. The final code may occupy a limited area and be surrounded by branding or product information. Reserve the clear margin before arranging nearby text. Request a proof at actual size and verify that it can be scanned on the intended material.
Poster or exhibition banner
Keep an SVG master and prepare the printer's requested output format. Consider where people will stand when scanning. A code that looks large on a desktop design canvas may be hard to use from the expected viewing position. Check a representative physical sample where feasible.
Website or downloadable handout
PNG is a convenient fixed-size option, while SVG is also reasonable where the publishing system accepts it. Check the image on the actual responsive page rather than judging only the original download. For a handout, ensure that the PDF export has not cropped the border or reduced the image substantially.
JPEG-only upload form
If a platform rejects other formats, create the JPEG from your clean master instead of a screenshot or previously compressed copy. Inspect the uploaded version and use a different delivery method if the resulting code cannot be read reliably.
A download-to-publication checklist
- Confirm the intended encoded destination or content before preparing the artwork.
- Choose SVG for a scalable master or a suitably sized PNG for fixed-size use; choose JPEG only for a specific requirement.
- Keep the image square and reserve a clear quiet zone.
- Check the background, contrast and dimensions in the actual layout.
- Export the finished file and inspect it for clipping, soft edges and unintended resizing.
- Scan the delivered file or printed proof on representative devices and verify the decoded content, not just the appearance of a scan notification.
- Keep the clean master separately for future revisions.
Test again whenever a meaningful production variable changes. A new paper finish, image export or placement can affect the result even though the underlying encoded information is unchanged.
Frequently asked questions
Is SVG always better than PNG for QR codes?
No. SVG is preferable for reusable vector artwork, but a sufficiently detailed PNG may be more convenient for fixed-size digital placements or software that does not accept SVG.
Can I print a QR code from a PNG file?
Yes. Use adequate pixel dimensions for the planned physical size, preserve the quiet zone and test a proof. Ask the printer about its requirements.
Do SVG, PNG and JPEG change the encoded URL?
Not inherently. Different image representations can carry the same QR symbol. Image degradation can prevent correct reading, so verify that the decoded URL matches your intended destination after export.
Is JPG different from JPEG for this purpose?
JPG and JPEG are common filename extensions for the same everyday JPEG image format. The extension does not tell you how aggressively the image has been compressed.
Can I use a transparent QR code?
Yes, if the final background provides sufficient contrast and a clear quiet zone. Transparency is a design option, not a guarantee of readability. A solid light background is a simpler choice when the placement is uncertain.
Does a larger file always scan better?
No. File size in bytes is not a measure of QR readability. Actual rendered detail, contrast, geometry, margin and scanning conditions are more useful considerations.
Final recommendation
Keep a true vector master for flexible production, use PNG when a clean fixed-size image is more practical, and reserve JPEG for situations where compatibility requires it. The best download is the one that survives your entire production workflow with the intended content and geometry intact. Always validate the final output before committing to a print run or distributing it to users.

