SVG Converter
Convert SVG to PNG or JPG, or trace a raster image into an SVG online for free. Works both directions automatically, right in your browser, no uploads.
About This Tool
Convert in either direction between vector and raster images. Upload an SVG and get a PNG or JPG rendering of it, ideal for using a vector icon or logo where SVG is not supported. Upload a JPG, PNG, or WebP instead and the tool traces it into a scalable SVG, which works best on simple logos, icons, and line art rather than detailed photos. The tool detects which direction to run automatically based on what you upload.
How To Use
- Drop an SVG file (to rasterise it) or a JPG/PNG/WebP (to trace it into SVG).
- For SVG input, choose the output format; for raster input, choose how many colors to trace.
- Click "Convert" and the file is processed in your browser.
- Download your converted file.
How It Works
For SVG input, the tool decodes the vector file into pixels using the browser's own SVG renderer, draws it onto a canvas at its natural size, and exports that as a PNG or JPG. This is a direct rendering, so text, gradients, and paths in the SVG appear exactly as the browser would display them.
For raster input, the tool reads the decoded pixel data and passes it to a tracing algorithm that groups similar colors together, based on the color count you choose, and outlines each group as a vector path. Fewer colors produce simpler, smaller SVGs that look more like flat illustrations; more colors preserve more of the original detail at the cost of a larger, more complex file. This works well for logos, icons, and other images with clean, distinct color regions, and works poorly for photographs, which have gradients and noise that do not trace cleanly into flat shapes.
Rasterising an SVG runs directly on the page since only the browser's own rendering engine can decode SVG; tracing a raster image into an SVG runs in a Web Worker so it never blocks the page. Either way, nothing is uploaded.
Frequently Asked Questions
How does the tool know which direction to convert?
It looks at the file type you upload. An SVG file is rasterised to an image; a JPG, PNG, or WebP is traced into an SVG.
Will tracing a photo into SVG look good?
Not usually. Tracing works well on logos, icons, and line art with flat, distinct colors. Photos with gradients, textures, and fine detail tend to look posterized or messy once traced.
What does the color count control?
It sets how many distinct color regions the tracer groups the image into. Lower values (2-8) give a simpler, more stylized result; higher values (16-64) preserve more detail but produce a larger file.
Does rasterising an SVG lose quality?
An SVG is infinitely scalable, so rendering it to a fixed-size PNG or JPG means you lock in one resolution. Choose PNG if the SVG has transparency you want to keep.
Are my files uploaded to a server?
No. Both directions of conversion happen entirely in your browser. Your files never leave your device.