Image to SVG
Trace PNG, JPG or WebP images to scalable SVG vector graphics in your browser. Choose color count, blur and mode — no upload, fully private.
Converting a raster image to an SVG vector file used to require desktop software like Inkscape or Adobe Illustrator. This free browser-based tool brings that capability directly to your browser — no software to install, no file upload, and your images never leave your device. Powered by the ImageTracer algorithm, it quantizes your image's colors and traces the resulting regions into smooth vector paths that scale perfectly at any size.
What Is Image-to-SVG Conversion?
A raster image (PNG, JPG, WebP, GIF, BMP) stores pixels on a fixed grid. Enlarge it beyond its original resolution and it becomes blurry. An SVG (Scalable Vector Graphic) instead stores shapes as mathematical paths — circles, curves, and polygons — that render crisply at any size. Converting between the two formats is called vectorization or image tracing.
The converter works by:
- Analyzing the pixel colors in your image
- Reducing them to the selected number of color layers
- Tracing the boundary of each colored region into smooth Bezier paths
- Assembling the paths into a single SVG file
How to Use the Tool
- Upload — drop an image file onto the drop zone or click Browse to select one from your device
- Choose Colors — select how many unique colors the output SVG should use (4, 8, 16, or 32). More colors = more detail and larger file; fewer colors = simpler, smaller SVG
- Set Blur — a small blur applied before tracing reduces noise and smooths edges.
Noneis best for sharp graphics;LightorMediumwork well for photos - Pick Mode —
Colorpreserves the original palette;Grayscaleconverts to shades of grey first;B&Wapplies a hard black-and-white threshold - Click Convert to SVG — tracing runs entirely in your browser; a preview appears when complete
- Download — save the
.svgfile to your device
Options Reference
| Option | Description |
|---|---|
| Colors: 4 | Minimal color poster effect — very small SVG |
| Colors: 8 | Good balance for logos and icons (default) |
| Colors: 16 | More detail for illustrations |
| Colors: 32 | High fidelity — larger file size |
| Blur: None | Preserves sharp edges; best for flat graphics |
| Blur: Light | Slight smoothing; good general purpose choice |
| Blur: Medium | Reduces noise in photos before tracing |
| Mode: Color | Full original color palette |
| Mode: Grayscale | Traces luminance only |
| Mode: B&W | Hard threshold — pure black and white vectors only |
Tips for Best Results
- Logos and icons with flat colors vectorize perfectly at 4–8 colors with no blur
- Illustrations and cartoons work well at 8–16 colors with light blur
- Photos rarely produce clean SVGs — expect a stylized, posterized result; use 16–32 colors with medium blur for the most faithful output
- Resize first if your source image is very large (over 2000 px wide). Tracing runs synchronously so very large images may briefly freeze the browser tab
- Pre-clean your image — removing backgrounds, noise, or JPEG compression artifacts before tracing produces much cleaner paths
When to Use SVG Instead of PNG or JPEG
- Logos, wordmarks, and brand assets that need to scale from favicon to billboard
- Icons that are embedded in web pages and adapt to user font-size or system DPI
- Illustrations used in presentations that may be projected at large sizes
- Backgrounds or decorative graphics that need to look crisp on retina/HiDPI screens
FAQ
Is my image uploaded to a server?
No. The entire conversion runs in your browser using the HTML5 Canvas API and ImageTracer. Your image never leaves your device — there is no backend, no upload, and no data collection.
Why does my photo look like a painting after conversion?
Photographic images contain millions of gradual color variations. Vectorization quantizes them to a limited palette and traces hard-edged regions, producing an artistic, posterized effect. For photos, more colors (16–32) and medium blur produce better results, but SVG is fundamentally not designed for photorealistic images — PNG or JPEG are better choices for photos.
What is the best number of colors for a logo?
Most logos use 2–4 solid colors, so 4 or 8 is usually the right starting point. If your logo has gradients or shadows, try 16. If the result at 8 looks accurate enough, keep it simple — the SVG file will be smaller and faster to render.
Can I convert large images?
Yes, but the tracing algorithm runs synchronously and scales with image area. Images above approximately 2000×2000 px may temporarily freeze the browser tab while processing. Resizing the image to a smaller resolution before converting is recommended for large files.
Why is my SVG file larger than the original PNG?
SVG files store path data as text, and complex traced images (especially from photos) can generate thousands of paths. Many-colored or large images may produce SVGs larger than the source. For web use, you can compress SVGs with a tool like SVGO after exporting. Plain logos and simple graphics almost always produce compact SVG files.
What image formats are supported?
Any format your browser's Canvas API can decode: PNG, JPEG, WebP, GIF, BMP, AVIF (in supported browsers), and SVG itself. HEIC is supported only in Safari on Apple devices.