2Dex Plain comparisons of image and design tools

How to turn a raster icon into an SVG for web designers

Steps for web designers to turn a raster icon into an SVG, what to prepare, which tool options exist, and mistakes to avoid.

By 2Dex ·

2Dex is published by the makers of SageThumbs 2K, RēDesign and VectorMagik, which are compared here alongside other tools.

A raster icon is a grid of pixels, so it blurs when enlarged. Turning it into an SVG means tracing its shapes into vector paths, checking the trace against the original, and then exporting the file for the web. The steps below work with any tracing tool.

OptionWhat it doesPriceLicence
VectorMagikTraces a picture into vector shapes using its own engine [1]Free for everyone; business use needs a licence [1]PolyForm Noncommercial 1.0.0 [1]
Other tracing toolsNot publishedNot publishedNot published
Manual redraw in a vector drawing programNot publishedNot publishedNot published

What you need before you start

Gather these items before you open a tool, so the trace starts from a clean source.

Step by step

These steps work with any tracing tool, so follow them in order whichever one you choose.

  1. Open a copy of the icon. Check its edges at high zoom. Blurry or jagged edges will carry into the vector.
  2. Clean up the background. Remove stray pixels and any backdrop you do not want. A clean background leaves fewer stray shapes to delete later.
  3. Decide the colours you need. Count the flat colours in the icon and limit the trace to that count, so the output stays simple.
  4. Run the trace. Start with the default settings and look at the result before you change anything.
  5. Compare the vector against the original. View the two at high zoom and check that corners and thin lines still match.
  6. Simplify the curves. Too many tiny pieces make the SVG heavy and fussy. Merge neighbouring pieces where the shape stays true.
  7. Fix nodes and corners. Move or delete stray points, and round corners that the trace made too sharp or too soft.
  8. Remove unwanted shapes. Delete any background shape that came through, and merge two near-identical shades if the icon does not need both.
  9. Export as SVG. Choose SVG as the format, and keep the file name short and descriptive, in lower case with hyphens.
  10. Test it on the web. Open the SVG in a browser at several sizes, then place it on your page and check it against a light background and a dark one.

Tools that can do it

VectorMagik is made by the team that publishes this site. It traces a picture into vector shapes using its own engine.[1] A setting merges neighbouring curve pieces into fewer, simpler ones. [1] It can also pick the strongest simplification that still keeps the picture close to the original.[1] You can limit the result to between 1 and 64 colours.[1] After converting, you can move or delete curve nodes and round individual corners.[1] You can compare the vector with the bitmap side by side, or flip between them with the B and V keys.[1] You can click shapes to delete them, such as a background, or merge two shades into one.[1] When you are done, you can save the result as SVG, PDF, EPS, AI, DXF, EMF or PNG.[1]

It is free for everyone, and business use needs a licence (PolyForm Noncommercial 1.0.0).[1] It is licensed under PolyForm Noncommercial 1.0.0.[1] It runs on Windows, Mac and Linux computers, and there is also a version that runs in a web browser.[1] A version runs in the web browser using the same engine.[1] A version without a window for people who prefer to run it by typing commands does the same tracing work, and it lets an AI assistant trace pictures on your computer.[1]

Facts are not published here for other tools. For any other option, such as another tracing tool or a vector drawing program you redraw in by hand, check its own page for the output formats it lists, its price, its licence, and whether it runs on your operating system or in a browser.

Common mistakes to avoid

Frequently asked questions

Why does a traced SVG stay sharp when an icon is enlarged?

An SVG stores shapes as mathematical paths rather than a fixed grid of pixels. Because of that, the edges can be redrawn at any size without the blur that a raster file shows when it is stretched. That is why turning a raster icon into an SVG suits web designers who need one icon at many sizes. Check the trace at a large zoom level to confirm the edges hold up before you publish the file.

Can VectorMagik save an icon as an SVG file?

Yes. You can save the result as SVG, PDF, EPS, AI, DXF, EMF or PNG.[1] Choose SVG when the icon is headed for a website. After converting, you can move or delete curve nodes and round individual corners.[1] Open the saved file in a browser at several sizes to check it before you place it on a live page.

Is VectorMagik free for web designers?

It is free for everyone, and business use needs a licence (PolyForm Noncommercial 1.0.0).[1] It is licensed under PolyForm Noncommercial 1.0.0.[1] Designers doing paid client work should read the licence text themselves before relying on the output. Keep a note of which kind of use applies to each project, so you can show it later if a client asks.

Which systems can run VectorMagik?

It runs on Windows, Mac and Linux computers.[1] The browser version runs in the web browser using the same engine as the desktop tool.[1] Windows and Linux installers are available, and there is a zip file for Mac.[1]

Can VectorMagik remove a background shape from a traced icon?

You can click shapes to delete them, such as a background.[1] You can also merge two shades into one.[1] Use the side by side comparison to confirm that the icon's edges are still intact after a deletion.[1] Once the shapes look right, export the result as SVG and test it on the web.

Free for personal and non-commercial use; business use needs a licence (PolyForm Noncommercial 1.0.0). [1]

Try VectorMagik

Sources

  1. VectorMagik's own description of itself (the product of this site's publisher)

Related comparisons