logo
QR Codes•

QR Code SVG: How to Download, Edit and Print a Vector QR Code

What an SVG QR code is, when to use it instead of PNG or JPEG, how to download one, and how to edit, place and test the file without breaking the code.

Avatar for undefined
CodeQR Team
Content Team

A QR code SVG is the code saved as a vector file, so it stays sharp at any size, from a business card to a banner. Use SVG for anything printed and PNG for screens and documents. In CodeQR, you download it from the QR code's Export menu, which offers SVG, PNG and JPEG on every plan, Free included.

Facts about the SVG format come from the W3C's SVG specification, facts about margins and error correction from DENSO WAVE's QRcode.com, and the note on example domains from IANA, all read on November 21, 2026.

What an SVG QR code is

SVG stands for Scalable Vector Graphics. The W3C's specification describes it as "a language based on XML for describing two-dimensional vector and mixed vector/raster graphics." In a QR code SVG, the squares of the pattern are written as shapes rather than stored as pixels, so a printer or a design program can draw them at any size without blur.

A PNG or a JPEG stores a fixed grid of pixels. When a small one is enlarged, the edges of the squares turn soft, and that is how a printed code ends up blurry.

SVG, PNG or JPEG: which file to use

Our help article on downloading and printing a QR code sums up the three formats CodeQR exports:

  • SVG: vector, for print shops, designers and any size. The one to use for anything printed.
  • PNG: pixels, at the size you set in the Design section, for screens, documents and home printers.
  • JPEG: a smaller file with no transparency. Avoid it for print, because compression softens the edges of the squares.

CodeQR doesn't export PDF or EPS. If a print shop asks for a vector file, send the SVG. If it insists on pixels, the help article suggests a PNG of 3000 px or more.

How to download a QR code as SVG in CodeQR

To get the QR code vector file:

  1. Create the QR code, or open an existing one from QR Codes through the card menu and Download.
  2. In the preview, click Export.
  3. Choose SVG.

The SVG export works on every plan. The size you pick in Design sets the pixel size of PNG and JPEG files; the SVG scales without loss whatever you pick. On the Free plan, the code carries the CodeQR logo in the middle; your own logo, or no logo, needs a paid plan (see pricing).

Our free QR code generator downloads a PNG without an account. Its SVG and high-resolution options stay locked until you create a free account, and a paid plan is not needed for SVG. The CodeQR API returns each code's image as a PNG; for SVG, export from the dashboard.

What is inside the SVG file

  • The pattern is a single vector path on a rectangle in the code's background color.
  • The file ends at the edge of the pattern. A plain code has no margin around it in the file, so leaving the quiet zone (next section) is up to your layout.
  • The logo in the middle is a linked image: the file points to the logo's web address instead of holding vector shapes for it. After you open the file, check that the logo shows. A program that doesn't load linked images will show an empty square there.
  • The SVG that CodeQR exports uses error correction level H, the highest of the four levels: L, M, Q and H.

Edit the SVG without breaking the code

You can recolor the code, place it and scale it in a vector editor. A few changes break it:

  • Keep the quiet zone. DENSO WAVE's QRcode.com says a QR code "requires a four-module wide margin at all sides", a clear area "where nothing is printed". A module is one of the small squares the pattern is made of.
  • Scale with the proportions locked. Don't stretch the code into a rectangle.
  • Keep the contrast, with dark squares on a light background. CodeQR's editor warns when the colors are too close to tell apart, or when the code is light on a dark background, which it says "fails on some scanners". Once you recolor the SVG in another program, nothing warns you, so check it yourself.
  • Leave the squares alone. Don't move, round off or delete modules, and don't put text over the pattern.
  • Don't enlarge the logo. The logo hides part of the pattern, and the code still reads because error correction can "restore data if the code is dirty or damaged". A bigger logo hides more. CodeQR's editor warns when "The logo covers too much of the code." Keep the logo at the size it was exported, or change it in CodeQR and export again.

QRcode.com adds that raising the error correction level corrects more but makes the code bigger. The level is set when the code is made; editing the SVG doesn't change it.

Place the SVG in a print file

  • Place the SVG file itself so the code stays vector in the final file. A screenshot or a PNG copy turns it back into pixels.
  • Size it for the distance people will scan from. Our guide to QR code size for print has the minimum sizes.
  • Leave the margin clear. Text, borders and cut lines should not touch the code.
  • Print at 100% scale, never "fit to page", on a layout where the code was sized on purpose.

If you add a logo or brand colors, our post on QR codes with a logo covers what keeps them readable.

Test the exported file

  1. Open the SVG in a web browser and scan it from the screen with your phone.
  2. After you edit it or place it in a layout, export the final print file and scan that from the screen too.
  3. Print a proof at the final size on the final material. Scan it from the intended distance with an iPhone and an Android phone, in the light of the real place, since glossy paper and glass reflect.
  4. For a dynamic code, check that the scan count in CodeQR goes up.

If the code doesn't scan or opens the wrong page, see our help article on QR codes that don't scan or open the wrong page.

Static or dynamic, before you export

The SVG holds whatever the code holds. A static code's file holds the destination itself: changing it means a new file and a reprint, and scans are not counted. A dynamic code's file holds a short link, so you can change the destination after printing without touching the file, and every scan is counted. Our guide to static vs dynamic QR codes compares the two.

About sample QR code SVGs

A search for a sample QR code SVG usually comes from someone who needs a placeholder for a mockup, a template or a test print. Make your own: you can't tell where a downloaded sample points until you scan it.

For a mockup, example.com works as a placeholder. IANA says domains such as example.com "are maintained for documentation purposes" and "are not available for registration or transfer". For a test print you will scan, point the code at a page you control.

QR code SVG questions

In CodeQR, open the QR code's preview, click Export and choose SVG. It works on every plan, Free included. The free public generator downloads a PNG without an account and unlocks SVG when you create a free account.

Download your QR code as SVG

Create a QR code and export it as SVG, PNG or JPEG on any plan. Make it dynamic to change the destination after printing.