What image tracing is

Image tracing — also called raster-to-vector conversion — rebuilds a pixel image as mathematical shapes. A PNG stores a grid of coloured dots; an SVG stores outlines and fills. Tracing finds the boundary of each colour region in the grid and writes that boundary as a path, so the result can scale to any size without going blurry.

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

Quick answer: choose or drop an image, pick a mode and colour count, and the trace runs automatically. The image is sampled on a canvas, reduced to a small palette, traced region by region, and offered as a downloadable SVG — all in your browser, with the original and the result shown side by side.

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

A tracer cannot outline a million colours, so the image is first reduced to a handful. This tool uses median-cut quantisation: it repeatedly splits the colour box containing the widest colour spread at its median, until it has the number of boxes you asked for, then averages each box into one palette colour.

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

Marching squares walks the boundary between "this colour" and "not this colour", cell by cell, emitting a small line segment wherever the boundary crosses a cell, then chaining the segments into closed loops. Those loops, simplified, are your SVG paths.

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

Quick answer: logos — 2 to 6 colours, tolerance 0.75, working size 384 or 512. Line art and text — Black & white mode. One-colour marks for cutting — Silhouette mode. Raise the tolerance when the file is too big; lower it when corners look rounded off.

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

Flat, few-coloured, hard-edged artwork traces beautifully. Gradients, shadows, textures and photographs do not. If the original was born as a vector and later exported to PNG, tracing gets you most of the way back. If it was born as a photograph, no tracer can un-bake it.

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

Tracing a photograph gives you a poster, not a photograph. Sixteen flat colours cannot hold skin tones, sky gradients or foliage texture. The result can be a deliberate, attractive stylisation — but if you need the photo itself, keep the photo.

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

Some "PNG to SVG converters" do not convert anything: they paste the original PNG inside an SVG wrapper. The file ends in .svg but still contains pixels, still blurs when enlarged, and is often larger than the PNG. This tool never does that — its output contains only paths.

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 typeModeColoursToleranceWorking size
Two-colour logoColour20.75384
Multi-colour logo / iconColour4–80.75384–512
Signature or stampBlack & white—0.5512
Cut file / stencilSilhouette—1512
Scanned line artBlack & white—0.75512
Flat illustrationColour12–160.5512
Photograph (stylised)Colour8–161–2256–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

The downloaded file is a standard, self-contained SVG: one path per colour, an even-odd fill rule, and a viewBox matching the traced size. It opens in every vector editor and browser, and each colour region can be selected, recoloured or deleted independently.

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.