Saved

Press the star next to a tool's name to save it.

All my tools

PNG to SVG Converter

Use this PNG to SVG converter to trace PNG logos, icons and drawings into scalable SVG vector files. Choose 4, 8 or 16 colours of detail and download the results. Nothing is uploaded.

Your images are traced on your device. Nothing is uploaded.

SVG files

Choose a PNG image to trace it into an SVG.

This PNG to SVG converter traces a PNG image into a scalable vector graphic. It groups the picture into a few flat colours and redraws each area as smooth vector shapes, so the result stays sharp at any size. Choose a PNG, pick how much detail you want, and the PNG to SVG converter gives you an .svg file to download. It suits logos, icons, line art, signatures and flat illustrations, which are often saved as PNGs, and it runs entirely in your browser.

How to use the PNG to SVG converter

  1. Choose PNG images or drop them on the box. You can trace up to 30 at once.
  2. Pick the detail level: Simple uses 4 colours, Medium 8 and Detailed 16.
  3. Download each SVG, or all of them in one .zip file.
  4. Change the detail and the images are traced again straight away.

About PNG

Portable Network Graphics (PNG) is a raster-graphics format that supports lossless data compression. It was developed as an improved, non-patented replacement for GIF, after it was announced in December 1994 that GIF implementations would have to pay patent royalties. A PNG can hold palette-based, greyscale or full-colour RGB images, with or without an alpha channel for transparency. The format was designed for moving images around the internet rather than for professional print work, so it doesn't support colour spaces such as CMYK. Files end in .png and use the image/png media type; the format was published as RFC 2083 in 1997 and as ISO/IEC 15948 in 2004.

What an SVG is

Scalable Vector Graphics (SVG) is an XML-based format for two-dimensional graphics and an open standard from the World Wide Web Consortium. Instead of a grid of pixels, an SVG describes shapes, lines and colours as text, so it can be drawn at any size without losing quality. SVG files can be edited in a text editor or a vector graphics program, searched and compressed, and almost every web browser displays them.

PNG versus SVG

PNGSVG
Made ofPixels, compressed without lossShapes described in XML
EnlargingEdges turn jaggedStays sharp at any size
TransparencyAlpha channelShapes over an empty canvas
Best forScreenshots, graphics with exact pixelsLogos, icons, drawings, charts

How tracing works

Turning a raster image into vectors is called image tracing, vectorization or raster-to-vector conversion, the reverse of rasterization. A PNG keeps every pixel exactly, but it's still just a grid of pixels: enlarge it and the edges become stair-steps. Tracing rebuilds the edges and filled areas as lines and curves that can be enlarged as far as you like. Because it has to guess at shapes the pixels only hint at, it works by rules of thumb rather than an exact method, and the result is an interpretation of the original. This tool uses imagetracerjs, a public-domain tracer that reduces the image to a small set of colours, follows the edge of each colour area and fits lines and curves along it.

Transparent backgrounds

Many PNG logos and icons have a transparent background, stored in the alpha channel. Before tracing, this converter draws the picture on white, so transparent areas become a white shape in the SVG. If you need the background to be see-through, open the SVG in a vector editor and delete the white background shape, or remove that path in a text editor: it's usually the first, largest shape in the file.

Choosing the detail level

  • Simple (4 colours): one- or two-colour logos, signatures, stamps and line art. Smallest files, cleanest edges.
  • Medium (8 colours): a good default for coloured logos, icons and flat illustrations.
  • Detailed (16 colours): keeps more shading in illustrations and charts, with larger files.

Tiny specks are dropped at each level so the file doesn't fill up with noise. Large images are scaled to 1,000 pixels on their longest side before tracing, which keeps the work quick; because the result is a vector, you can then show it at any size.

Which PNGs trace well

Images built from geometric shapes or simple curves, such as logos, icons, cartoons, maps, clip art and diagrams, trace well, because they could have been drawn as vectors in the first place. PNGs are a good starting point for these because lossless compression leaves no blocky artefacts around the edges. Photographs and screenshots full of small text are poor candidates: smooth shading turns into flat bands of colour, small letters become blobs, and the SVG can end up bigger than the PNG.

Worked example

Say you have a 1,600 × 1,600 pixel PNG app icon with a transparent background and want an SVG for a website. Choose the file and pick Medium. The tool scales it to 1,000 × 1,000 pixels, places it on white, reduces it to eight colours, traces each area and gives you icon.svg. Zoom in on it in your browser and the edges stay smooth. Delete the white background shape in a vector editor if you need transparency back.

Common mistakes

  • Tracing photos. They come out blotchy and poster-like.
  • Starting from a tiny image. Trace the largest, sharpest copy you have.
  • Expecting editable text. Letters become shapes, not text you can retype.
  • Forgetting the white background. Transparent areas are filled with white before tracing.

Tips

  • Crop the PNG to just the logo or drawing first.
  • Use Simple for single-colour artwork such as signatures.
  • Open the SVG in a vector editor to tidy shapes or change colours.

What next

Use this often? Add PNG to SVG to your Home screen.

Frequently asked questions

Can I convert a PNG to SVG for free?

Yes. Choose your PNG, pick a detail level and download the SVG. Everything runs in your browser, so nothing is uploaded.

Does the PNG to SVG converter keep transparency?

Transparent areas are drawn on white before tracing, so they become a white shape you can delete in a vector editor.

Which detail level should I choose?

Simple (4 colours) for one-colour logos and line art, Medium (8 colours) for most coloured logos, Detailed (16 colours) for more complex illustrations.

Can I trace a photo or screenshot?

You can, but the result is poster-like: smooth shading becomes flat colour bands and small text turns into blobs.

Is the SVG really scalable?

Yes. The shapes are stored as curves, so it stays sharp however much you enlarge it.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Image Tools