OPEN SOURCE · RUNS LOCALLY

A PNG to SVG CLI for honest paths.

Turn every visible pixel into real SVG geometry. Keep exact color and alpha, choose the rendered size, or use one flag for a compact website asset.

  • No uploads
  • No embedded PNG
  • One dependency
--web --width 512REAL OUTPUT
INPUTdemo-input.png1236 × 1273 · 1.1 MB
Original gold M.O.D. brain logo in PNG format
PNG TO SVG
OUTPUTdemo-output.svg512 × 529 · 135 KB
The same gold M.O.D. brain logo as vector-only SVG paths
16 colors0 embedded images100% SVG paths

THREE CLEAR MODES

Use only the detail you need.

Exact mode preserves the pixels. Size controls change how the SVG renders. Web mode reduces trace complexity before conversion.

01

Pixel exact

Every visible RGBA pixel becomes geometry. Ideal for icons, sprites, and pixel art.

png2svg icon.png
02

Your output size

Set width, height, or scale without changing the SVG viewBox geometry.

--width 512
03

Light for the web

Cap tracing at 128 pixels and reduce the palette to keep detailed logos practical.

--web

QUICK START

From install to SVG in two commands.

Python 3.10+ and Pillow are all you need. Your images never leave your machine.

See every option
Terminal2 COMMANDS
$ python -m pip install git+https://github.com/cocodedk/png2svg.git
$ png2svg logo.png --web --width 512

THE HONEST LIMIT

Clearer size, not invented detail.

png2svg traces pixels; it does not redraw a blurry logo into smooth Bézier curves. Use exact mode for maximum fidelity and --web when file weight matters more.

View the source on GitHub →