ImageOptimizer
All articles
Shrink an image

Convert a PNG to SVG free, online, with colour: when tracing works and when it does not

First-hand: On 26 November 2026 we traced three real PNGs with our own converter, the same engine the browser tool runs, and recorded bytes before and after, path counts and fidelity scores; we also forced a trace of a photo to show what goes wrong.

Short answer: a PNG of flat art — a logo, an icon, a chart, a mascot with a few solid colours — converts to a real, colour SVG very well, and the SVG is usually a fraction of the PNG's size. A photo does not: a tracer turns it into hundreds of posterised blobs that are bigger than an AVIF of the same picture and look worse. Free tools do the first job fine: our converter runs in your browser and uploads nothing, and Inkscape does it on the desktop. If you need a hand-drawn-quality trace of something complex, a paid tracer or a designer redrawing the mark is still the better route.

What "convert with colour" actually means

A PNG is a grid of pixels. An SVG is a list of shapes: paths, fills, curves. Converting one to the other is called tracing: the software groups pixels of similar colour into regions, draws a boundary around each region, and writes those boundaries as paths with a fill colour. "With colour" means the tracer keeps one path per colour region instead of reducing the image to black and white first (the Potrace-style monochrome trace most free tools default to).

This is why the input decides the outcome. A logo with four flat colours becomes four or five paths. A photograph has thousands of colours and smooth gradients; the tracer has to invent a hard edge where none exists, and every edge becomes a path.

Three real PNGs, traced today

We ran three files through our converter on 26 November 2026, with the default settings. The tool measures the result against the original (PSNR in decibels and SSIM, both common fidelity scores: higher is closer) and also encodes an AVIF of the same image so you can see which format would win.

Input (PNG)PixelsPNG bytesSVG bytes (raw)SVG compressedPathsFidelityAVIF of the same image
GitHub mark, one colour512 × 51215,9691,5386621PSNR 29.7 dB, SSIM 0.995,265
Five-colour pie chart512 × 51218,7413,6701,0638PSNR 34.8 dB, SSIM 0.996,608
Two-icon badge, four flat colours512 × 25613,6794,5451,55020PSNR 29.2 dB, SSIM 0.974,270

"Compressed" is the Brotli size, which is what a web server actually sends. The one-colour mark came out as a single path, 24 times smaller than the PNG. The pie chart is the interesting one: the PNG has 187 distinct colours because of anti-aliased edges, but the 16 most common colours cover 99 % of the pixels, so the tracer clustered them back to five fills and eight paths. Every one of the three took well under a second on a laptop-class machine.

Then the photo. We converted a 640 × 436 photograph of Earth's horizon (a NASA image) to a 219,658-byte PNG and gave it to the same tool. On automatic, it refused to trace and produced an AVIF of 5,586 bytes instead, with the note "content is photographic". When we forced the trace, the result was a 61,953-byte SVG with 766 paths, PSNR 26.3 dB, visibly posterised: flat bands where the atmosphere fades to black. The AVIF was eleven times smaller and faithful. That is the whole argument in one picture: trace drawings, encode photographs.

Convert PNG to SVG free, online, no upload

Our converter is free with no account, and the conversion runs inside your browser tab: the file is not sent to a server, which matters for unreleased logos and client work. Drop the PNG, and the tool decides between a traced SVG and an AVIF + WebP pair by measuring both; you can force "Drawing (SVG) only" when you want the vector regardless. Three presets cover most cases: Logo (colour clusters, polygon paths, the smallest output), Mono (a binary trace recoloured to the source's dominant colour, for one-colour marks), and Smooth (spline curves, for an SVG you will display larger than the source). Download the SVG, or copy the <img> tag the tool writes with the width and height filled in.

The same conversion is available as an API for build pipelines (POST /api/v1/vectorize), with a keyless allowance on a shared rate limit and, with a free account, 250 operations a month (checked 2026-11-26).

Convert PNG to SVG in Inkscape

Inkscape is free and does a good colour trace: open the PNG, select it, Path → Trace Bitmap, choose Multicolor and set the number of scans to the number of colours in your art (four to eight for most logos), then apply and delete the original bitmap underneath. Use Path → Simplify if the path count is high. It is manual, one file at a time, but you can edit the result immediately.

Convert PNG to SVG in Illustrator

Illustrator's Image Trace panel (Window → Image Trace) does the same with presets such as 3 Colors, 6 Colors and High Fidelity Photo; pick a colour preset, not the photo one, for flat art, then Expand to get editable paths. It is part of a paid subscription, so it only makes sense if you already have it.

What about Photoshop, GIMP and Canva

Photoshop and GIMP are raster editors: neither has a real bitmap tracer. Export the PNG and trace it in Inkscape, Illustrator or an online tool instead. Canva's conversion features change often; check its current feature list before relying on it, and note that a "download as SVG" of a raster image in many design apps simply embeds the PNG inside an SVG wrapper, which is not a vector and is not smaller.

PNG to SVG for Cricut

Cricut Design Space cuts along paths, so what it needs is a clean trace with few paths and closed shapes. Use a one-colour or few-colour version of your design, make sure the background is transparent (a white background becomes a rectangle you will cut), and prefer the Mono or Logo preset over Smooth: fewer nodes cut cleaner. Check the SVG in Design Space's preview before cutting; thin anti-aliased strokes sometimes split into two parallel paths, which you fix by thickening the stroke in the source and tracing again. A traced photo will not produce a usable cut file.

Convert PNG to SVG with high quality: what "high quality" means here

For flat art, quality means the paths follow the shapes without wobble and the colours are the right ones. Two settings decide that: the number of colours the tracer keeps (too few merges shapes, too many adds noise paths), and the curve mode (polygons are smaller; splines are smoother when scaled up). Our tool reports PSNR and SSIM so you can compare presets with numbers instead of squinting; a logo above roughly 28 dB and 0.95 SSIM is indistinguishable at normal sizes. If a trace scores well below that, the source is probably a photo, a gradient or a very small, blurry PNG; the right fix is a larger or cleaner source, not a different converter.

Who should pick what

  • Flat logo, icon or chart as a PNG, and you want it as an SVG for the web: trace it with the free browser tool; expect

a file several times smaller than the PNG and sharp at every size.

  • You want to edit the result or hand-tune nodes: Inkscape (free) or Illustrator (paid).
  • A photo or a gradient-heavy picture: do not trace it. Encode it as AVIF with a WebP fallback; see

AVIF vs WebP.

  • Many images in a pipeline: the API, free for 250 operations a month with an account, then from $10 a month for 1,000

(checked 2026-11-26; plans).

The browser tool is at /convert/; the PNG-to-SVG page with the vector preset selected is /png-to-svg/. Nothing you drop there leaves your device.

← All articles · RSS