What image tracing is
The two formats think about pictures in opposite ways. A raster image is a mosaic: zoom in far enough and you see the individual tiles, and enlarge it for a banner or a cutting machine and the edges turn to steps. A vector image is a set of instructions — move here, curve there, fill with this colour — that a renderer redraws crisply at whatever size is requested. Converting between them in the easy direction (vector to raster) is just rendering. Going the other way means inferring shapes from a mosaic that never recorded them, which is why tracing is an approximation by nature, and why honest expectations matter more for this tool than for most.
Tracing earned its place in real workflows long before the web: the Potrace project, cited in the sources, has been turning scanned logos and handwriting into smooth vector files since 2001, and every professional vector editor ships a tracer. The use cases are consistent — a logo that only exists as a small PNG, a signature to place on documents, a drawing that needs to feed a vinyl cutter or laser engraver, an icon that must stay sharp at every size. In each case the source is flat artwork with a few colours and clear edges, and that is exactly the input this tool is built and tuned for.
How this converter works, step by step
Step 1 — the image is read locally. Your browser reads the file with the FileReader API and draws it onto a canvas at the working size you selected. Nothing is uploaded at any point; there is no server in this process at all.
Step 2 — the image is posterised. Millions of possible colours are reduced to the palette you chose (2–16) by median-cut quantisation, and every pixel is assigned to its nearest palette colour. The result is a map of flat colour regions — the raw material for tracing.
Step 3 — every region is outlined. For each palette colour, the tool builds a mask of the pixels wearing that colour and runs a marching-squares tracer around them, producing closed loops. The loops are simplified with the tolerance you set, then written as one SVG path per colour, using the even-odd fill rule so holes stay holes.
Step 4 — you inspect and download. The preview shows the original and the vector side by side, with the path count, the colours actually used (as swatches), and the SVG's file size. If the balance between detail and smoothness is off, change a setting — the trace re-runs instantly — and download the .svg when it looks right.
Posterising and colour quantisation
Posterisation is the step that decides what your vector can possibly look like, because everything after it is geometry. Choose too few colours and distinct parts of the artwork merge — dark blue text on a slightly darker blue panel becomes one blob. Choose too many and anti-aliased edges, JPEG noise and subtle shading each claim palette entries and shatter into specks, inflating the file. Most logos live happily at 2–6 colours; a detailed flat illustration might use 12–16. The swatches shown after a trace tell you exactly which colours the palette settled on, and they are worth a glance: if two swatches look identical, the palette wasted an entry on edge noise, and dropping the count by two will usually clean the result up.
Anti-aliasing deserves a special mention, because it surprises people. The soft one-pixel fringe around the shapes in your PNG exists to fool your eye at small sizes; to a tracer it is a ring of extra colours. At low colour counts the fringe is absorbed into the nearest region, which slightly fattens or thins shapes. At high counts it can become its own thin outline path. Neither is a bug — it is the tracer faithfully reporting pixels that were only ever a visual trick.
Marching squares: following the outline
The algorithm is a classic of computer graphics, and its honesty is its charm: it invents nothing. For one colour at a time, imagine a grid laid over the image where each point is marked inside or outside the colour. Each little square of the grid has sixteen possible inside/outside patterns, and each pattern dictates exactly which edges the boundary crosses. Connect those crossings across every cell and you get the complete outline of the region — including separate loops for separate islands of the same colour, and inner loops for holes. This tool then simplifies each loop with the Douglas–Peucker algorithm, which discards points that deviate from a straight line by less than your tolerance, turning the pixel staircase into clean polylines.
Two consequences follow from doing it this way. First, the output is guaranteed to be real vector data — paths with fills — because that is literally all the algorithm produces. Second, the output can only be as good as the region map: marching squares traces the posterised image, not the artwork you remember uploading. Every quality decision happens in the posterise step and the tolerance; the tracer just reports them faithfully.
Choosing colours, tolerance and working size
The three settings trade against each other. Colour count decides how faithfully the palette matches the original. Tolerance decides how faithfully the outline matches the pixels. Working size decides how much detail exists to match in the first place. A useful order of operations: set the working size first (512 for anything with small text or thin lines), then the colour count (the smallest number that keeps the artwork's parts separate), then nudge the tolerance up until the path count and file size settle — the statistics under the settings update on every trace, so you can watch the trade-off happen.
Black & white mode replaces quantisation with a luminance threshold at the midpoint: every pixel becomes pure black or pure white. It is the right choice for scanned text, stamps and line drawings, and it produces the smallest, cleanest files of any mode. Silhouette mode goes one step further and traces only the dark foreground, leaving the background transparent — the format cutters, engravers and stencil makers actually want.
What traces well — and what does not
The best candidates share a profile: a limited palette, regions that meet at crisp edges, and detail that is large relative to the image size. Logos are the textbook case — most were designed as vectors in the first place. Icons, pictograms, signatures, rubber stamps, flat spot illustrations, simple charts and diagrams, and pixel art all share the profile. A simple test tells you most of what you need: a red circle on a white background traces to exactly two fill colours and a pair of clean paths, one for the disc and one for the background around it — you can run that test yourself with any drawing program and this page.
The poor candidates are equally predictable. Anything with a gradient must band. Anything with a drop shadow gains a grey halo region. Photographs fragment. Screenshots of text sit in between: the shapes are ideal but the text is small, so the working size decides whether letters survive as letters. When a trace disappoints, the fix is almost never a different tracer — it is a cleaner, larger, flatter source image.
The honest truth about photographs
This page will not pretend otherwise, because the gap between expectation and result is where converter tools earn their bad reputation. A photograph of a face contains thousands of subtly different colours arranged in soft transitions. Posterised to sixteen, it becomes a paint-by-numbers version: recognisable, sometimes striking, never faithful. Raise the detail and the file grows paths by the hundred while looking no more photographic — the regions just get smaller. Professional "photo to vector" results are redrawn by illustrators, not traced by algorithms.
Where the effect is genuinely useful: pop-art and screen-print styles, where flat colour is the aesthetic; reducing a photo to a stencil for a single-colour cut; and making deliberately low-detail artwork for embroidery or laser work, where the machine itself imposes the same limits. If that is your goal, embrace it — drop to 4–8 colours, raise the tolerance, and treat the output as a starting point to clean up in a vector editor.
Real tracing vs the embedded-raster shortcut
The shortcut exists because it is trivial to implement and hard for a casual user to detect: the file opens, it displays, it even "works" in tools that accept SVG. The giveaway is in the file itself. Open a wrapped SVG in a text editor and you will find an image element carrying a long base64 data string — that string is your PNG, unchanged. Open a file from this page and you will find path elements with fill colours and coordinate data, and no image element anywhere. The path count and colour swatches shown before you download are your proof before the fact: they are counted from the traced output, not from your original.
Why it matters beyond honesty: a wrapped raster defeats every purpose of converting. It does not scale, it cannot be recoloured or edited as shapes, cutting machines cannot follow it, and it usually weighs more than the source. If a converter will not tell you how many paths it produced, it probably did not produce any.
Settings guide by image type
| Image type | Mode | Colours | Tolerance | Working size |
|---|---|---|---|---|
| Two-colour logo | Colour | 2 | 0.75 | 384 |
| Multi-colour logo / icon | Colour | 4–8 | 0.75 | 384–512 |
| Signature or stamp | Black & white | — | 0.5 | 512 |
| Cut file / stencil | Silhouette | — | 1 | 512 |
| Scanned line art | Black & white | — | 0.75 | 512 |
| Flat illustration | Colour | 12–16 | 0.5 | 512 |
| Photograph (stylised) | Colour | 8–16 | 1–2 | 256–384 |
Treat the table as a starting point, not a rulebook — the preview is the judge. Two traces of the same image at different settings can both be "right" for different jobs: the crisp one for print, the small one for a web icon. Because tracing is instant and free here, the practical workflow is to try the row for your image type, look at the result next to the original, and adjust one setting at a time.
Editing and using your SVG
A few practical notes for using the output well. Scale by changing the width and height or the viewBox in your editor — the shapes redraw at any size, which was the point. If you need the background gone, delete the path whose fill matches the background colour (on a white-background trace it is usually the first path) or re-trace in Silhouette mode. If you are sending the file to a cutter, run it through your cutting software's preview and check that inner holes — letter counters, ring centres — survived; the even-odd fill rule this tool writes is exactly what keeps them hollow. And keep your original PNG: tracing is a one-way inference, and if you ever need a different palette or tolerance, the source pixels are the only place the lost detail still exists.
Finally, the privacy property that makes this tool safe for client work and unreleased artwork: the image is read, drawn, sampled and traced entirely inside your browser tab, using the Canvas API. It is never uploaded, never transmitted and never stored — close the tab and nothing remains. That is also why there is no queue and no file-size account limit: your device does the work, so your device sets the pace.
Sources & References
Every source below was checked live in November 2026 and returned a readable page at the time of checking. Disclosure: the Potrace project page blocks plain automated downloads (it returned HTTP 403 to a simple curl check), so it was verified by full content retrieval of the live page instead; all other sources returned HTTP 200 to a direct check.
- MDN — SVG: Scalable Vector Graphics — the reference for the SVG format this tool writes: path elements, fill and viewBox.
- MDN — Canvas API — the browser API used to draw and sample the uploaded image entirely on the device.
- MDN — ImageData — the pixel array the quantiser and tracer read, one colour region at a time.
- MDN — FileReader — how the chosen file is read locally in the browser without any upload.
- W3C — SVG 2 Specification — the formal specification of SVG paths and fill rules, including the even-odd rule used for holes.
- Wikipedia — Image tracing — an overview of raster-to-vector conversion, its strengths on flat graphics and its limits on photographs.
- Potrace — Transforming bitmaps into vector graphics — Peter Selinger's bitmap tracer, the best-known reference implementation of polygon-outline tracing; this tool implements its own marching-squares tracer in JavaScript, informed by the same published approach.