Embed this tool on your site
About this tool
Image to SVG Tracer converts raster images (PNG, JPG, GIF) into scalable SVG vector files entirely in your browser using imagetracerjs. Upload an image, tune the number of colors (2–16), path simplification, and coordinate rounding (smoothness), then click Trace. The live SVG preview renders instantly alongside your original. A file-size comparison shows original versus SVG output. Download the SVG for use in Figma, Illustrator, Inkscape, or directly in HTML, or copy the SVG markup to the clipboard. All processing is local — your image is never uploaded.
Why use it
Runs entirely in-browser — no upload, full privacy.
Real-time SVG preview with file-size comparison.
Adjustable colors and path quality for a wide range of use cases.
Output SVGs work in Figma, Inkscape, Illustrator, and directly in HTML.
Free, no sign-up, no watermarks.
Runs entirely in-browser using imagetracerjs — no upload, full privacy.
How to use
- Upload a PNG, JPG, GIF, or WebP image using the file input.
- Adjust the number of colors (fewer = simpler SVG, more = richer detail).
- Set Simplification (0.1–5.0): higher values discard more tiny edge paths, removing specks and noise.
- Set Smoothness (0–5): the number of decimal places kept in path coordinates — lower values round more and produce a smaller file.
- Click 'Trace to SVG' and review the preview alongside the original.
- Click 'Download SVG' to save the vector file, or 'Copy SVG' to copy the markup.
When it helps
- Converting a PNG logo to a vector for use at any resolution without pixelation.
- Creating a scalable version of a simple icon or illustration for a design system.
- Generating SVG artwork from pixel-based designs for web use.
- Preparing a raster image for import into a vector design tool.
Examples
InputPNG company logo at 512 × 512 px with 3 flat colours
Expected resultSVG file ~2 KB with three filled paths that scale to any size without pixelation.
InputJPG cartoon character at 1024 × 1024 px with about 8 distinct colours
Expected resultSVG ~15 KB with stacked colour-region paths suitable for embedding in a marketing email.
InputPNG country outline map at 800 × 600 px
Expected resultSVG with one path per region, ready for hover and click interactivity in HTML.
Tips
- Start with the lowest colour count that still preserves the brand colours of your logo — 4–6 is plenty for most flat designs.
- If the SVG is bigger than the original PNG, the input is too photographic; reduce colours, increase simplification, or use the source as a raster instead.
- For pixel art, set Simplification to its minimum (0.1) and Smoothness to 0 — small details survive and coordinates snap to whole pixels.
- After download, run the SVG through SVGO (or paste it into an SVGO online tool) to remove redundant attributes and shrink the file 30–50% further.
- Crisp logo edges trace better at 1× source resolution than at 4×; tracer algorithms see anti-aliasing as additional colours.
- If your raster has a transparent background, the tracer will produce holes in the SVG — flatten on a solid background first if you want a continuous shape.
Frequently Asked Questions
Does it upload my image?⌄
No. imagetracerjs runs entirely in your browser via JavaScript. Your file is never sent to any server.
What image formats are supported?⌄
PNG, JPG, GIF, and WebP — any format your browser can display as an image.
Why is my SVG very large?⌄
Photographic images with many colors and complex edges produce large SVGs. Reduce the color count and increase path simplification to get a smaller file.
Can I use the SVG in Figma or Illustrator?⌄
Yes. The output is a standard SVG that can be imported into any vector editor or used directly in HTML/CSS.
What is path simplification?⌄
It sets imagetracerjs’s path-omit value (0.1 to 5.0). Edge paths shorter than that are discarded, which removes specks and noise and trims the file at the cost of the very smallest details.
Is there a maximum image size?⌄
Very large images will be slow. For best results, resize the source to under 1000 × 1000 px before tracing.
Glossary
- Bezier curve
- A smooth parametric curve defined by control points; SVG paths are constructed from sequences of cubic and quadratic Bezier segments to draw shapes.
- Vector vs raster
- Vector images (SVG, PDF, AI) describe shapes with mathematical curves and scale infinitely without pixelation; raster images (PNG, JPG) are grids of fixed-size pixels.
- Colour quantization
- The process of reducing a full-colour image to a limited palette (e.g., 8 colours) by clustering similar colours; required so the tracer can produce one path per colour.
- Path simplification
- An algorithm (often Ramer-Douglas-Peucker) that removes redundant control points from a curve while keeping its shape within a tolerance, shrinking SVG file size.
- SVG (Scalable Vector Graphics)
- A W3C standard XML format for two-dimensional vector graphics; supported natively in every modern browser and design tool.
- Indexed image
- An intermediate raster representation where each pixel holds an index into a small palette rather than a full RGB triplet — used by the tracer between quantization and path generation.
- Anti-aliasing
- The blending of pixel colours along edges to soften staircase artefacts; tracers may interpret anti-aliased pixels as additional palette colours, inflating SVG complexity.
A LITTLE HELP. A LOT DONE.
Good tools.
Great flow.
Your shortcut to the everyday. Create, convert, calculate,
and get back to what you love.
✳
✳
✓ Free to use✓ No sign-up✓ 500+ possibilities