Why we built it
Almost everyone who works with design runs into the same problem sooner or later. A client sends a logo as a tiny PNG pulled from their website. A print shop asks for "vector artwork". A cutting machine refuses to work with a photo of a sketch. The usual answers are to redraw the artwork by hand, pay for desktop software, or upload the file to a website you know nothing about.
TraceMantra exists to give people a fourth option. It is a PNG to vector converter that runs inside your web browser, keeps the colors of your image, and produces a proper SVG file you can open in any vector editor. There is nothing to install and nothing to sign up for.
What the tool does
The PNG to Vector editor reads your image, finds its main colors, and traces the outline of each color region as a set of smooth curves. The result is a layered SVG where every color is a separate shape. You can then:
- change the number of colors, recolor any swatch, or remove a background tone;
- click a color to remove it from the whole image, or remove the background in one click;
- choose between two tracing engines depending on how sharp or soft your image is;
- control detail, smoothing, speck removal and how corners are handled;
- edit anchor points and Bézier handles by hand, with undo and redo;
- preview the result as a vector, an overlay, an outline or the original, on a checkerboard, white or dark canvas;
- download the SVG or copy its code.
The tool accepts PNG, JPG, WebP, GIF and BMP files, which covers nearly every image you will find on a computer or phone.
How the tracing works
Vectorizing an image happens in a few stages, all on your device:
- Palette extraction. A sample of the image is clustered in the CIE Lab color space, which matches how people perceive color differences better than plain RGB. Very similar colors are merged.
- Color separation. Each pixel is assigned to its nearest palette color, which produces one black-and-white mask per color.
- Supersampling and smoothing. The masks can be traced at up to four times their original resolution, with optional smoothing, so the real edges hidden behind the pixels are recovered.
- Tracing. The Faithful engine follows the method described by Peter Selinger for Potrace: it finds each outline, fits the best polygon, then converts it into Bézier curves. The Smooth engine reads the boundary at sub-pixel precision, removes noise and fits least-squares curves, which works better on blurry or hand-drawn material.
- Assembly. The color layers are stacked in a sensible order, given a slight overlap to avoid hairline gaps, and written out as a compact SVG.
The heavy work runs in a Web Worker, a background thread in your browser, so the page stays responsive while a trace is in progress.
Our principles
Your files stay with you
We do not upload, store or look at the images you convert. They are processed in your browser's memory and disappear when you close the tab. You can check this yourself: once the page has loaded, the editor keeps working with your network connection switched off.
Free means free
There is no trial, no watermark, no limit on file count and no "premium" export hiding the good result. The full tool is available to everyone.
Honest about limits
Automatic tracing is very good at logos, icons, lettering and flat illustrations. It is not magic. A detailed photograph will come out looking posterized, and a badly blurred image cannot be turned into a perfect drawing. We would rather tell you this up front than promise something no tracer can deliver.
How the site is funded
TraceMantra is supported by advertising. Ads may be shown on the website's pages by Google AdSense or similar networks. Ads are never placed inside the files you create, and the ad networks do not get access to your images. You can read more about what this means for your data in our Privacy Policy and Cookie Policy.
Credits
The Faithful engine is a JavaScript implementation of the Potrace algorithm, originally created by Peter Selinger. We are grateful for his published work on bitmap tracing, which has shaped almost every open-source tracer in use today. The interface uses the Plus Jakarta Sans typeface, served from our own server.
Get in touch
Found a bug, have an image that does not trace well, or want to suggest a feature? We read every message. Visit the contact page or email [email protected].