Raster vs vector, in one paragraph
A raster image like PNG records color per pixel. A vector image like SVG records shapes: this region is a red circle, that region is a blue curve. Because shapes are math, not pixels, vectors scale forever without blurring. Vectorization, also called tracing or raster-to-vector conversion, is the algorithmic jump from one representation to the other. For a side-by-side comparison of the two formats, see PNG vs SVG.
How vectorization works
Tracing algorithms generally work in three stages. The details vary by implementation, but the shape of the process is the same everywhere:
- Color quantization. The image is reduced to a limited set of flat colors. A photo with millions of colors might be simplified to a few dozen representative ones, while a logo may already use only three or four.
- Path tracing. For each flat color region, the tracer finds its edges and describes them as paths, either following the pixel edges exactly or fitting smoother curves and simplified polygons along them. This is where the pixel grid becomes geometry.
- Stacking and simplification. The traced regions are layered back to front and tiny specks are discarded, producing clean layered paths, one layer per color.
What vectorizes well, and what does not
Vectorizes well: logos, icons, typography, clip art, cartoons, diagrams, line art, and any artwork with flat colors and crisp edges. These trace into compact, accurate paths.
Vectorizes poorly: photographs, soft gradients, film grain, and heavy texture. The tracer has to approximate smooth transitions with flat shapes, which takes a huge number of them, so the files get very large. That is a property of the technique, not a bug in any particular converter.
Fidelity versus simplicity
Every tracer balances two goals: matching the original image closely and producing simple, light paths. The presets in PNG2SVG.IO sit at different points on that scale.
- Pixel-perfect. The default. Paths follow exact pixel edges, and a correction layer of tiny rectangles reproduces the anti-aliased pixels along each edge. At its original size the SVG matches the PNG pixel for pixel.
- Smaller file. Simplified polygon paths. The file is much smaller and easier to edit, at the cost of exact pixel matching.
- Black & white. The image is reduced to a single color, producing one silhouette. Ideal for stencils, vinyl, and Cricut cut files.
Under Advanced settings you can adjust the individual controls behind these presets, such as color detail (how many distinct colors are kept), speck removal (how small a region must be before it is discarded), and edge style (how outlines are drawn).
Why client-side vectorization matters
Traditional converters upload your image to a server, trace it there, and send the result back. Client-side vectorization runs the same kind of algorithms in your browser with WebAssembly, so your images are never uploaded. Files stay in your browser's local storage until you remove them, which keeps private artwork private.
Try it on your own image
The fastest way to understand vectorization is to watch it happen. Convert a PNG to SVG, switch between the presets, and drag the compare slider to see how each one handles the same edges.