ICO to SVG Converter

Wrap an ICO icon in an SVG as an embedded PNG, keeping its transparency.

or drop files here

IC

ICO Format

Windows icon

A container format for icons on Microsoft Windows that can hold several bitmap images of different sizes and color depths in a single file. Browsers also use it for favicons.

  • multiple sizes in one file
  • alpha transparency
  • PNG or bitmap entries
SV

SVG Format

Scalable Vector Graphics

An XML-based vector image format and W3C standard. Shapes, paths and text are described mathematically, so images scale to any size without losing sharpness.

  • resolution independent
  • XML text
  • supports animation and scripting
  • styleable with CSS

How to convert ICO to SVG

Follow these steps to convert ICO to SVG online.

    1

    Choose your ICO file, or several at once.

    2

    Wait while the converter turns each file into SVG.

    3

    Download each new SVG file. Your original file isn't changed.

What to know before converting ICO to SVG

  • The SVG holds one embedded PNG of the icon, not traced shapes.
  • It is the picture's pixel size, so it doesn't scale like a vector.
  • Transparency is kept in the embedded PNG.
  • The page doesn't let you pick which icon size is used.
  • Each ICO you choose gives its own SVG.

Understanding ICO for SVG output

What is an ICO file?

Microsoft created ICO for the icons you see in a graphical interface. One .ico file can hold more than one image, so a program can pick the size that suits a taskbar, a desktop shortcut or a title bar. The format stores its numbers in little-endian byte order, and its registered media type is image/vnd.microsoft.icon. Microsoft's guidance for Windows Vista icons adds 256-by-256 pictures aimed at high-DPI screens.

You meet ICO files as Windows application icons and as website favicons, and the .ico extension is widely associated with favicons. Each image inside is a bitmap, stored either as a PNG or as a plain bitmap, not a drawing made of shapes. An ICO can carry alpha transparency.

Programs that open ICO files

  • Windows, Mac and Linux: ImageMagick reads ICO images at the command line.
  • Windows, Mac and Linux: XnView MP lists ICO among the image formats it reads. Company use requires a license.
  • Web: Firefox and Chrome both display ICO pictures in a page.

ICO and SVG compared

  • Extensions and media types: .ico with image/vnd.microsoft.icon, against .svg with image/svg+xml; a gzip-compressed SVG takes the ending .svgz.
  • Contents: ICO holds a set of bitmaps of different sizes. SVG describes shapes, text and embedded images in XML.
  • Scaling: shape-based SVGs stay crisp at every size, while an ICO offers a few fixed pixel sizes.
  • Transparency: ICO images can have alpha transparency, and the PNG this converter embeds keeps it.
  • Readable as text: the markup is ordinary text, so a plain editor can open and change it, and search tools or compressors can handle it.
  • Styling: an SVG works with CSS and JavaScript, so it can be styled, scripted and animated.

What this converter makes is not a drawing of the icon. Your browser decodes the ICO into one picture. The page writes that picture as a PNG and embeds it, in base64, in an SVG with a single <image> element. The SVG is sized in the picture's own pixels, width and height alike, and transparent areas stay transparent. Nothing is traced, resized or reduced in color. The ICO is left alone; you get a separate file with the same base name, such as favicon.svg. Several ICO files chosen at once each give their own SVG, one after another, with no ZIP.

SVG can embed bitmaps, and a bitmap keeps its fixed resolution however large the SVG is shown. Metadata isn't copied: EXIF, color profiles and XMP are dropped, and only the pixels are carried over. Current browsers show SVG directly as a document or embedded in a web page.

Other ways to convert ICO to SVG

  • GIMP: open the ICO in GIMP, which the format reference lists among the programs that open it, then use File > Export As (Shift+Ctrl+E) and pick SVG. The Export Image as SVG dialog has an Embed raster layers as setting; PNG (always) includes raster layers as PNG images. The SVG holds the picture, as it does here.
  • ImageMagick: run magick favicon.ico favicon.png, following the pattern of ImageMagick's own magick image.jpg image.png example. Its format table lists ICO as readable. This gives you a PNG to use in other programs.
  • Inkscape Trace Bitmap: choose File > Import to bring in a PNG made from the icon, pick it with the Selector tool, and run Path > Trace Bitmap. Use Update to refresh the preview and confirm with OK. This makes vector paths, but the manual warns that a 100% faithful vector copy shouldn't be expected, and it suits dark silhouettes on a bright background best. A color trace creates one object per color.

Pick GIMP when you want a picture inside an SVG, as this page makes, and Trace Bitmap when you want shapes.

Problems with ICO files

  • Soft icon: a small image stretched for a high-DPI display looks soft. Use an ICO that includes a larger image.
  • Only one size converts: an ICO can hold many images, so look through its variants rather than trusting the first preview. This page converts one picture and offers no way to choose which.
  • The file won't open: malformed image offsets can confuse an ICO reader. That is a damaged file, not a missing file association. Get the icon again from its source.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert an ICO to an SVG?

Is the SVG a real vector drawing of my icon?

Which size from my ICO ends up in the SVG?

Does the SVG keep the icon's transparency?

Why is my favicon fuzzy when I enlarge the SVG?

Does it matter if my ICO holds PNG or bitmap images?

Why does my ICO fail to convert?

Is my ICO uploaded anywhere?

Does the SVG keep the icon's full color?

Is the ICO's metadata copied into the SVG?