How to convert an image to SVG

To convert an image to SVG, you trace it: software finds the edges of each colour area in your PNG or JPG and redraws them as vector shapes. Open the SVG converter, choose your image, pickColour or Black and white, press Convert to SVG and download the file.

Tracing works best on logos, icons, signatures and flat drawings. Photos convert, but they turn into flat patches and usually get bigger, not smaller.

What “converting to SVG” actually means

A PNG or JPG is a grid of coloured pixels. An SVG describes a picture with instructions: draw this curve, fill it with this colour. The W3C’s SVG 2 specification says an SVG can hold three kinds of object: “vector graphic shapes (e.g., paths consisting of straight lines and curves), images and text.”

That leaves two very different ways to get a file ending in .svg:

Step by step with the SVG converter

  1. Open the SVG converter and choose, drop or paste a PNG, JPG, WebP, BMP or GIF.
  2. Choose a mode. Colour reduces the image to a set number of colours and traces each one. Black and whiteturns everything darker than the threshold into solid black shapes and leaves the rest empty.
  3. In Colour mode, set Colours to about the number the artwork really has. A two-colour logo needs 2 or 3, not 16.
  4. Leave Detail on Medium and Smoothing on 1 for the first try.
  5. Press Convert to SVG and zoom into the preview. Jagged steps: raise Smoothing. Missing small parts: raise Detail. Speckles: lower Detail or use fewer colours. Then download.

If your image is a PNG logo on a transparent background, the PNG to SVG converter starts with settings for that and leaves clear areas empty. For pencil sketches and scans, the JPG to SVG converter starts in black and white with extra smoothing.

Choosing between Colour and Black and white

Black and white mode gives the leanest files: one colour, no background, nothing to sort into layers. It suits signatures, stamps, line art and shapes you plan to cut or engrave. Colour mode keeps the look of a multi-colour logo, but every colour becomes its own layer of paths, so the file grows with each colour you allow.

So a traced SVG is not automatically smaller than the image you started with. Its value is that it scales and edits as shapes. If size matters, use as few colours as the artwork needs, and pass the result through theSVG compressor, which rewrites the code more compactly without changing the drawing.

Why photos are a poor fit

MDN’s image format guide says SVG is “not generally useful for strictly bitmap or photographic images”. A photo has smooth gradients and grain; tracing has to split those into hard-edged patches, and every patch is another path.

If a design really needs a photo inside an SVG, keep the photo as a photo and place it in the design in a vector editor. For a stylised poster look, tracing a photo with 4 to 8 colours and low detail can be a deliberate effect.

Getting a cleaner trace

After converting

Open the SVG in a browser to check it at different zoom levels. For a website, you can stop there or compress it. For a cutting machine, see PNG to SVG for cutting machines on checking every shape before you cut. And if you need to go back to pixels later, for an upload form that will not take SVG, theSVG to PNG converter draws it at any size you choose. For background on the format itself, readwhat an SVG file is.

Questions

Can I convert a photo to SVG?

You can, but the result looks like a poster made of flat patches, and it is usually bigger than the photo. Our 370,212-byte WebP test photo became a 922,505-byte SVG. Keep photos as JPG or WebP.

Will the text in my logo stay editable?

No. Tracing sees letters as shapes like any other, so they come out as outlines. To change the wording you need the original design file or a font.

Why is my SVG bigger than the PNG?

Every traced edge is written out as path coordinates. Images with many colours, soft edges or noise produce many paths. Try fewer colours, lower detail or black and white mode, then run the SVG through the SVG compressor.

Sources

  1. Scalable Vector Graphics (SVG) 2, W3C. Checked December 2026.
  2. SVG 2: Introduction, W3C. Checked December 2026.
  3. Image file type and format guide, MDN Web Docs. Checked December 2026.

Browse all image guides