PNG to Vector converter

TraceMantra
Untitled designNo image open
Tracing…
100%

Drop your image here

PNG, JPG, WebP or GIF. The palette is extracted automatically and every color becomes its own vector layer. You can also paste an image with Ctrl+V.

Private: your file is processed on this device and never uploaded.
—colors
—paths
—anchors
—SVG size
—trace time
Processed locally
Using the editor

How to convert a PNG to vector with TraceMantra

The editor gives you a live preview, so the fastest way to learn it is to open an image and move the sliders. Here is what each part does.

Open an image

Click Open image, drag a file onto the canvas or paste with Ctrl+V. The first trace starts straight away with default settings.

Pick an engine

In the Trace panel, keep Faithful for sharp logos or switch to Smooth if edges look wavy.

Refine colors

Open Colors to change the palette size, recolor swatches or delete a background color you do not need.

Download

Check the result in Outline view, then press Download SVG or copy the code.

Starting points

Recommended settings by image type

These are untested starting points, not guarantees. Adjust from here while watching the preview.

Image typeEnginePaletteDetailDespeckleWhy
Flat logo, 1–3 colorsFaithful2–43×2–10Clean edges and few colors trace almost perfectly.
Small or low-res iconFaithfulMatch the icon4×2Supersampling rebuilds the true shape behind the pixels.
Cartoon or sticker artFaithful8–162–3×10–30Keeps outlines sharp while cleaning shading noise.
Scanned drawing or letteringSmooth2–32×30–80Ignores paper grain and fits flowing curves.
Blurry screenshot or JPGSmooth4–122×20–60Soft edges trace as wobbles in Faithful mode.
Photo (posterized look)Smooth24–641–2×40+More colors keep more tone; expect a screen-print style.

Scope: the ranges are the author's rules of thumb for the controls in this editor and have not been measured on a test set. Faithful mode follows the method in Peter Selinger's Potrace documentation.

Preview modes

Check your vector before you export

The four buttons above the canvas change what you see, not what you download.

  • Vector shows the finished SVG exactly as it will look.
  • Overlay lays the vector over the original so you can spot shapes that drift.
  • Outline draws only the path edges, which is the best way to judge curve quality.
  • Source shows your original image for comparison.

Navigating the canvas

Scroll the mouse wheel to zoom at the cursor, and click and drag to pan. Use Fit to see the whole image and 1:1 to view it at its real pixel size. The zoom goes up to 6400%, so you can inspect single anchor points.

Reading the status bar

Under the canvas you will see the number of colors, paths and anchor points, the SVG file size and the trace time. Fewer anchors usually means a cleaner, more editable file. If the size jumps, try a lower palette size or more despeckle.

Remove a color Eyedropper

Press Remove color, then click any spot on the image: that color disappears from the whole image. It is the quickest way to cut out a background. Remove background automatically picks the border color for you, and Removal strength controls how similar shades are caught too.

Edit points by hand Like a vector editor

After a trace, press Edit points and click any shape. Its anchor points and Bézier handles appear: drag them to reshape, double-click a point to switch it between smooth and sharp, double-click the outline to add a point, and press Delete to remove one. Undo and Redo work with Ctrl+Z and Ctrl+Y. Trace settings are locked while you edit, so your changes are never overwritten by accident.

Read the complete PNG to vector guide →