THE VECTOR FIELD GUIDE

How to Convert PNG to SVG

Convert a PNG image to a scalable SVG by tracing it in your browser. Step by step instructions, which PNG files trace well, transparency tips, and when to keep the PNG instead.

By Shahab Uddin · Updated

The short answer

To convert PNG to SVG, open the PNG to SVG converter on this site, choose the PNG file, pick a small color count for a logo or line art, compare the vector preview with the original, and download the SVG. The converter traces the pixels into paths, so it runs in your browser and the file is never uploaded. Logos, icons and flat artwork trace well. Photos do not, because a photo has too many colors and soft edges to become clean paths.

What converting PNG to SVG actually does

A PNG file is a raster image: it stores a grid of pixels. An SVG file is a vector image: it stores shapes as paths, curves and fills. Converting PNG to SVG means tracing, which groups similar pixels into regions and fits curves around them. The result is a new drawing that looks like the original, not a pixel perfect copy of it.

Tracing works best when the picture is made of flat areas of color with clear edges. A logo, an icon, a line drawing or a simple illustration can trace into a handful of clean paths. A photo has gradients, texture and thousands of colors, so it traces into a tangle of tiny shapes that is large, slow and hard to edit.

PNG files often carry transparency, and the tracer leaves transparent areas empty, so a logo on a transparent background stays transparent in the SVG. A PNG with a white background keeps that white as a shape, so remove the background first if you need a transparent result.

Step 1: pick a PNG that will trace well

  • Use the largest, sharpest copy you have. A small or blurry PNG traces as wobbly curves.
  • Logos, icons, text art and flat illustrations are good candidates.
  • Photos, screenshots of photos and images with soft shadows or gradients are poor candidates. Keep those as PNG or JPG.
  • Check the background. A plain background traces cleanly; a busy background adds stray shapes.
  • If the PNG came from a website download, check it is the full size image and not a small thumbnail.

Step 2: trace the PNG in your browser

The conversion runs in your browser, so the PNG is never uploaded to a server. The tools on this site accept JPEG, PNG and WebP files up to 12 MB. A very large PNG can be slow on a phone, so use a computer for big files when you can.

  1. Open the PNG to SVG converter on this site.
  2. Choose the PNG file from your computer or phone.
  3. Pick the settings that match the image. Fewer colors suit a one color logo or line art. More colors suit flat artwork with several colors.
  4. Convert and compare the vector preview with the original PNG. Zoom in and check the edges, corners and lettering.
  5. Download the SVG when the preview looks right. Keep the PNG as the source file, so you can trace it again with different settings.

Keeping transparency in the trace

Transparency is the main reason many people start with a PNG, so check it before you download. Open the SVG preview against a dark background as well as a light one. A shape that looked invisible on white may be a white filled path that only shows up on a dark page.

If the PNG has real transparency, the tracer leaves those areas empty and the SVG stays transparent. If the PNG only looks transparent because it sits on a white page, the white is part of the image and it traces as a white shape. Remove the background in an image editor first, or read the transparent background guide linked below for the full workflow.

For a cutting machine or a laser cutter, a transparent result matters even more. A white shape around the design becomes a cut line or an engraved area, so check the preview at full size before you send it to the machine.

PNG or SVG: when to keep each

UseKeep PNGUse SVG
Website photoYes, small and sharpNo, tracing a photo makes a large, rough file
Logo or iconOnly if the platform refuses SVGYes, sharp at every size
Cutting machine or laserNo, cutters need pathsYes, SVG is the usual format
Transparent logo on a web pageYes, if the SVG is not acceptedYes, transparency stays intact
PrintYes, at high resolutionYes, for logos and line art

Getting a clean result

  • Trim the image to the artwork before you trace, so stray edges do not become paths.
  • Raise the contrast first when the edges look soft or washed out.
  • Start with the fewest colors that still describe the design, then add one more only if detail is lost.
  • Retype lettering with a real font in a vector editor instead of tracing the letters.
  • Open the SVG at the size it will be used and check thin lines and small details, because tiny shapes can vanish in the trace.

PNG to SVG on iPhone and Android

  1. Open the PNG to SVG converter in your phone browser.
  2. Tap the file picker and choose the PNG from Photos or Files.
  3. Convert, compare the preview, and download the SVG to Files or Downloads.

When PNG to SVG is the wrong choice

Keep the PNG when the image is a photo, when it has soft gradients or shadows, or when it will only ever appear on a web page at one size. A traced photo is larger, rougher and harder to edit than the PNG it came from.

PNG is also the safer choice when the file will be printed as a photo or shared in a chat. Converting to SVG only helps when you need paths: for a website logo, an icon set, a cutting machine or a laser cutter.

Sources

Written by Shahab Uddin. Published ; updated . Corrections are welcome through the contact page.

A few useful answers

Before you hit download

Is PNG to SVG conversion free?

Yes. The PNG to SVG converter on this site is free, runs in your browser, and needs no account. Your file is never uploaded.

Does the SVG keep the transparent background?

Yes, if the PNG has real transparency. Transparent areas are left empty in the trace. A white background is traced as a white shape, so remove it first if you need transparency.

Can I convert a PNG photo to SVG?

You can, but the result looks like a posterized illustration rather than a photo, and the file is often larger than the PNG. Keep photos as PNG, JPG or WebP.

Why is my SVG much larger than the PNG?

Tracing a detailed or noisy image creates thousands of paths, and each path adds text to the file. Start with a simpler image, use fewer colors, and crop away busy background to keep the SVG small.

Next, make it useful.