Free Online PNG to SVG
Trace a PNG logo, icon or drawing into an SVG with a few colours. Choose the detail and compare before saving.
Add a picture to trace
Choose a PNG, JPG, WebP or AVIF, drag it here, or paste it.
How to use
Add a PNG, or a JPG, WebP or AVIF if your browser can open it. You can choose a file, drag it in or paste it from the clipboard.
Pick a preset: Logo or icon, Line art, Illustration or Photo. The tracing runs as soon as the picture is loaded.
Drag the slider over the picture to compare the original with the SVG, or open it full screen to check the edges.
Change the number of colours, the speck size, the smoothness or the corner angle. The result updates a moment after each change.
Check the size and the number of paths and points under the picture, then press Download .svg or Copy SVG code.
Why use this tool
Colours you choose
Colour mode reduces the picture to 2 to 32 colours. Black and white mode makes a stencil from a threshold you set or one found automatically. Line art mode turns dark lines on light paper into one shape in one colour.
Corners and curves
Straight edges stay straight and sharp corners stay sharp. Round shapes become a few smooth curves instead of hundreds of points. The corner angle and the smoothness are yours to set.
No gaps between colours
Colours are stacked, so shapes that touch do not leave thin lines between them. A cut-out option draws every shape on its own instead.
See-through areas stay see-through
Pixels that are mostly see-through are left empty, or you can fill them with a colour. You can also leave out the colour that fills the picture's edge.
Compare and check
A before and after slider with a full screen view, a checkerboard behind see-through results, and the SVG size, path count and point count next to the size of your original file.
A copy for tracing
Large pictures are shrunk to 1200 pixels on the long side for tracing, or the size you choose. The SVG keeps the original size, and the page tells you when it shrank the picture.
Clean output
The file holds only paths with numbers and colours. No scripts, no links to other files, and nothing taken from your file name or your picture's text.
About this tool
PNG to SVG traces a picture into an SVG: the colours are reduced to a small set, the outline of each colour is found, and the outlines are drawn as straight lines and smooth curves. You choose the number of colours, how much detail to keep and how smooth the curves are, and compare the result with the original on a slider before you save. The picture is traced in your browser. Tracing is an approximation, not a way to get back the vector file a logo was made from: the result is a new drawing that looks like the picture, with the colours reduced. It works well on logos, icons, signs and line drawings with flat colours, and badly on photos, which come out posterised and as a large file. See-through areas of a PNG stay see-through.
Frequently asked questions
A PNG is a grid of coloured pixels. An SVG describes shapes with lines and curves. Tracing looks at where the colours change, draws an outline around each area of colour and fills it, so the shapes can be scaled to any size without turning blurry. The tracer reads the pixels you give it, so it can only draw what it can see.
Logos, icons, signs, silhouettes, charts and line drawings with a few flat colours work well. Photos and pictures with soft shading, gradients or fine texture do not: they come out as flat patches of colour, and the SVG can be many times larger than the PNG. For a photo, keep the original file or use the Image Compressor.
No. It is an approximation drawn from the pixels. Curves and corners are fitted to the edges, so small differences from the original shapes are normal, and a low-resolution PNG gives a rougher result than a large one. If you have the original vector file, use that.
The tracer reduces the picture to the number of colours you choose, and each shape is filled with one flat colour. Gradients and shadows turn into steps. More colours follow the picture more closely and make a larger file. Fewer colours make it smaller.
Yes. Pixels that are mostly see-through (below half opacity) are left empty in the SVG, so the page or the colour behind it shows through. Soft shadows and semi-see-through edges are not kept as partly see-through: each pixel is either drawn or left empty. You can instead fill see-through areas with a colour, or leave out the background colour of a picture that has a solid backdrop.
Use fewer colours, raise Smoothness, raise the speck size so tiny shapes are dropped, and add a little blur for a grainy picture. The number of points under the picture shows what changed.
A PNG stores a flat picture efficiently, while an SVG stores every point of every outline. A picture with many colours, texture or noise has very many outlines. Lower the number of colours, raise Smoothness or the speck size, or pick the Logo or icon preset.
No. The picture is opened and traced in your browser, and the SVG is made on your device. Large pictures are traced in the background so the page keeps responding, and you can change an option at any time to start again.
Pictures above about 50 megapixels are refused. Large pictures are traced at a reduced size (1200 pixels on the long side unless you raise it). JPG, WebP and AVIF are accepted only if your browser can open them, and only the first frame of an animated picture is used.