Pixel to Vector

Turn a raster image (PNG, JPEG, WebP) into a clean SVG. Black-and-white mode traces the dark or the light shapes. Soft (anti-aliased) edges are traced with subpixel accuracy. Color mode reduces the image to a small palette and draws one layer per color, largest area first. Each layer extends under the smaller layers on top of it, so no gaps show between two colors. Nothing is uploaded.

  • Black-and-white mode: a brightness threshold splits the image. The outline follows the pixel edges, is refined between pixels where edges are anti-aliased, and is fitted with Bezier curves into one compact path.
  • Color mode: the palette comes from k-means clustering in the OKLab color space.
  • One "Exact to simple" slider sets the tolerances. Each parameter can also be set by hand, and each color layer can be traced on its own setting.
  • Transparency is kept, and the output is plain SVG paths. In a small benchmark the files came out 1.5 to 3 times smaller than Potrace's.