Image to SVG: Vector Icons, Background Removal and Path Control
When to use
I often pull a logo out of a screenshot and scale it up for a poster. That is when the jagged edges show. A bitmap has fixed pixels, so enlargement always softens it. An SVG is geometry, and it stays sharp on a 4K display.
This tool fits flat icons, logos, simple illustrations and line art. Their colour blocks are clear and their edges are defined, so tracing does not explode into thousands of tiny paths. Upload a PNG, JPG or WebP, adjust a few controls, and get an editable SVG.
It also fits front-end asset work. An SVG can be embedded in HTML or opened in Figma and Illustrator for node-level edits. The panel reports path count, colour count and file size so you can decide whether it is ready to ship.
The generated file is self-contained. It does not embed the original bitmap, and it does not depend on a remote font or CDN. That makes it easy to archive and easy to move between projects.
It does not fit photographs. Noise, gradients and texture become many colour blocks. Path count rises, the file can be larger than the original, and the result does not look like the photo.

Parameters
There are three presets. Logo uses 8 colours, detail 1.0 and minimum area 8. Line art uses 4 colours, detail 1.2 and minimum area 5. Illustration uses 24 colours, detail 0.6 and minimum area 18. Choosing a preset overwrites the colour and detail fields, but you can still fine-tune them.
Colour count runs from 2 to 32. More colours preserve more shades, and more colours create more paths. Four to eight colours are usually enough for an icon. An illustration can use 16 to 24.
Detail runs from 0.1 to 4.0. Lower values trace more detail and create more paths. Higher values simplify edges. A logo usually works at 0.8 to 1.2, while line art can go to 1.5.
Minimum area runs from 1 to 64 pixels. Colour regions smaller than this are dropped. It removes noise, but set it too high and small dots or thin lines disappear with the noise.
Blur radius runs from 0 to 4. A small blur smooths edges at the cost of sharpness. Icons usually stay at 0. Illustrations can use 0.5 to 1.
Maximum edge runs from 128 to 1600 pixels. The image is scaled down proportionally before tracing. A web icon is fine at 512 to 768. Print artwork can go higher.
Remove background samples the four corners, then flood-fills from the image border and makes similar colours transparent. It works on a solid background. Gradients and multi-colour backgrounds tend to leave a halo.
ViewBox makes the SVG describe its coordinates with a viewBox, which scales more naturally. Stroke adds a 1px outline to each path. Line art benefits; flat colour icons usually do not.
Steps
- Click the upload area or drop a PNG, JPG or WebP into it. You can also click Sample Icon to see the flow first.
- Choose a preset. Start with Logo for icons, Line art for sketches and Illustration for colour artwork.
- If the background is a solid colour, tick Remove background and check that no large area remains.
- Adjust colour count, detail, minimum area and blur. Each change retraces and updates the statistics.
- Click Generate SVG. Check whether the path count is above 6000 and whether the file size is acceptable.
- Click Copy SVG to paste it into a project, or Download SVG to save the file. Open it in a vector editor if you need to refine nodes.

What you get
The SVG uses absolute coordinates in the selected viewBox. If you open it in a code editor, each path is a sequence of move and line commands. There is no hidden bitmap layer.
The statistics show path count, colour count, file size and output dimensions. Path count is the main quality signal. A few dozen paths is a clean icon. A few hundred is an illustration. More than 6000 paths will visibly slow down browser rendering.
Colour count is the number of unique fill values in the SVG. It is not necessarily the number you set, because quantization can merge similar colours. A lower count is not automatically a bug.
File size is measured in UTF-8 bytes. More paths and more coordinate precision produce a larger file. A 512px icon commonly lands between 2 and 10KB. A traced photo can easily reach hundreds of kilobytes.
The Compare view puts the original and the SVG next to each other. Original shows only the bitmap. SVG shows only the vector result. Switching views does not retrace.
The checks cover image decoding, colour range, path count, path budget, file size and undefined placeholders. If any item is red, adjust the parameters before exporting.

FAQ
Why is the SVG larger than the PNG?
Photos and noisy images produce many paths. Reduce colours, raise the minimum area and lower the maximum edge. Icons rarely have this problem.
Why is there a white halo after removing the background?
Anti-aliased pixels keep a little background colour. Start with a solid background, or raise the colour count and clean the edge in a vector editor. Gradient backgrounds are a poor fit for one-click removal.
Can I convert GIF or HEIC?
The tool accepts PNG, JPG and WebP that the browser can decode. Export the first frame from a GIF, and convert HEIC to PNG first. The per-file limit is 10MB.
Boundaries
The tool does not run OCR and does not turn text in an image into editable text. It outputs colour paths only. It does not provide cloud storage or account sync, but it does include a queue of up to eight images, processed one at a time, with a ZIP export when the queue finishes.
What 1.1.0 adds: queue, overlay and similarity
The upload area now accepts several files at once, up to eight, still 10MB each. A row of queue chips appears below the drop zone. Click a chip to make that image active; the options are shared, so changing a colour or detail value retraces only the active image. When the options look right, click Convert All. The tool traces each item in order and the status line shows 2 of 5. When every item is done, Package ZIP writes only the finished SVGs, with sanitised names and numeric suffixes for duplicates.
The preview has an Overlay tab. It draws the original underneath and the SVG on top with an opacity slider, so you can see whether an edge has shifted. Overlay does not replace Compare: Compare shows colour blocks and silhouette, Overlay shows pixel fit. Switching tabs does not retrace; changing an option does.
The stats line now includes visual similarity. The tool scales the original and the SVG to 160 by 160, compares RGB values and reports a 0-100% reference. Use it to spot lost detail, not as an objective quality score. Photos, gradients and soft alpha edges score lower by nature. Below 50%, add colours or lower the detail threshold before blaming the source image.
The ZIP is written locally with stored entries, CRC32 and a central directory, so common unzip tools can open it. Buttons disable during conversion to prevent the same file from being written twice. Closing the page releases the queue and the SVGs; nothing is persisted.
What 1.2.0 adds: path precision, whitespace minification and a ZIP manifest
Path precision controls how many decimal places SVG coordinates keep, from 0 to 3. Zero saves bytes but can roughen curves; two is the balanced default; three suits high-fidelity delivery. It is separate from detail and minimum area: precision changes coordinate writing, while detail decides which regions survive. If edges look faceted when zoomed, try three before adding colours.
Whitespace minification removes comments and gaps between tags without changing path data, colours or viewBox. It is safe for production. Turn it off to keep a readable file for manual editing. The compressed byte count is what feeds similarity, path count and checks; the tool does not report the pre-compression size as the result.
A multi-file ZIP now includes manifest.csv with file name, path count, colour count, bytes, similarity, dimensions and precision. It is a plain-text delivery record for designers and scripts. A single download still returns one SVG, not a ZIP.
The queue remains eight files, converted serially. The ZIP includes only finished SVGs; if any file is still converting, the button stays disabled. File names are sanitised and de-duplicated, and manifest.csv uses the same names so the files line up one-to-one.
What 1.3.0 adds: from one SVG to an icon pack
Many projects need a set of icons for a PWA, Android, iOS or a desktop shortcut, not just one SVG. Version 1.3.0 adds "export icon pack": it rasterizes the selected SVG into 32, 180, 192 and 512 PNGs, then bundles them with the original icon.svg and a manifest.csv into one ZIP.
All four PNGs use an RGBA transparent background. Transparency comes from the SVG itself; if the source has a white plate and background removal is off, the exported icons keep that plate, so check the preview first. 32 is for favicons, 180 matches Apple touch icons, and 192/512 serve Android and PWA. Canvas draws the exact pixel sizes instead of upscaling a bitmap.
The pack always uses the active queue item's SVG and never switches files silently. Whichever item is selected is the one exported; the button stays disabled while conversion runs and re-enables when it finishes. With no SVG in the active item, it will not produce an empty pack.
manifest.csv records file name, pixel size, format and source. The ZIP stores binary PNGs with STORE compression so images are never treated as text. Packaging makes no network request and uploads nothing.
The icon pack is not a full brand kit. It solves reproducible, transparent, correctly sized assets; corner radius, padding, light/dark themes and small-size legibility still need a designer's platform review, especially whether 32px remains recognizable.
1.4.0: SVG sprite and batch reuse
1.4.0 adds “Export SVG Sprite”. It parses every completed SVG in the queue into a <symbol>, derives a sanitized id from the file name, and places all symbols in one <defs> inside toolcms-icons-sprite.svg. Pages can reuse the set with <svg><use href="#icon-logo"></use></svg>, cutting duplicate paths and requests.
The sprite only reuses existing conversions; it never re-traces or includes unfinished items. Ids are lowercased, non-alphanumeric characters become hyphens, the prefix icon- is enforced, and duplicates get a numeric suffix. The batch ZIP also carries icons-sprite.svg, with a placeholder row in the manifest so recipients know it is present.
A sprite is not a universal icon system: internal ids inside symbols can still collide, and complex filters or external fonts may not survive cross-document reuse. Prefer individual SVGs or the icon pack when strict isolation matters, and check each symbol's viewBox and path count before shipping.