PNG to SVG Converter
Turn a PNG into an SVG by threshold tracing black shapes into paths, or embed the bitmap, entirely in the browser.
Turn a PNG into an SVG without uploading it
Two outputs are available. Black and white trace treats pixels darker than a threshold as ink, merges neighboring ink into rectangles, and writes those rectangles as a single SVG path. Embed keeps the color bitmap and wraps it in an SVG image element. Both run in the browser. A built-in sample mark shows a trace as soon as the page opens.
When a trace looks good
Logos, icons, and high-contrast line art produce a small path. Photographs produce many rectangles and a large file, because each tone boundary becomes geometry. If the longest side is over 256 pixels, the image is scaled down before tracing so the SVG stays usable. Raise the threshold to keep only darker strokes, or lower it to pick up lighter gray.
For the reverse conversion, use the SVG to PNG Converter. To stay in raster formats, use the PNG to JPG Converter or the PNG to WebP Converter.
Example
The sample is an 8 by 8 canvas with a solid 4 by 4 dark block. At the default threshold it becomes one shape and 16 ink pixels. The markup is a white background rectangle plus one path.
Frequently Asked Questions
Does trace keep color?
No. Trace is black ink on white. Use Embed PNG in SVG when you need the original colors inside an SVG file.
Why are curves turned into blocks?
The tracer groups axis-aligned runs of dark pixels. It does not fit Bezier curves, so diagonal edges look stepped. That is a good match for icons and pixel art, and a poor match for portraits.
Are transparent pixels ink?
No. Pixels with very low alpha are ignored, even if their RGB values are dark.
Is there a file size limit?
The limit is your device memory. The converter scales the longest side to 256 pixels before it builds the SVG.
Can I copy the markup?
Yes. The SVG source is in the editor, with copy and download. Nothing is stored on a server.