THE VECTOR FIELD GUIDE

Convert SVG to ICO: Make a Favicon from a Vector Logo

Convert SVG to ICO in two quick steps: export the SVG as a PNG, then pack it into a multi size ICO favicon with the free tools on this site. Learn which sizes to include and how to check the favicon in a browser tab.

By Shahab Uddin · Updated

The short answer

To convert SVG to ICO, export the SVG as a PNG first, then pack that PNG into an ICO file. An ICO file stores raster images at fixed sizes, so a vector SVG cannot be saved as an ICO directly. Use the free SVG to PNG converter on this site to export a 256 pixel PNG with a transparent background, then use the free JPEG to ICO converter on this site to pack the 16, 32, 48 and 256 pixel sizes into one ICO file. No account is needed, and both steps run in your browser.

What converting SVG to ICO actually does

An SVG file stores shapes as paths, so it can scale to any size without losing sharpness. An ICO file is a container that stores raster images at fixed sizes, usually 16, 32 and 48 pixels, and sometimes 256 pixels for larger icons. Converting SVG to ICO means rasterizing the vector at each size the ICO will hold.

That change is one way. Once the shapes become pixels, you cannot get the paths back from the ICO. Keep the original SVG file, because you will need it if you ever want a different size or a new favicon.

An ICO file can hold several sizes at once, and the browser or operating system picks the size that fits the place where the icon appears. A single size ICO works, but a multi size ICO looks sharp in tabs, bookmarks and desktop shortcuts alike.

Step 1: export the SVG as a PNG

Open the SVG to PNG converter on this site and export the SVG at 256 pixels wide. That is the largest size the ICO will hold, and the converter makes the smaller sizes from it. Use a transparent background so the favicon has no white box around it.

  1. Upload the SVG file from your computer or phone.
  2. Set the output width to 256 pixels. Height follows the shape of the SVG.
  3. Keep the background transparent for a logo, or choose white for an icon that sits on a white page.
  4. Convert and download the PNG, then open it and zoom in to check the edges and lettering.

Step 2: pack the PNG into an ICO

Open the JPEG to ICO converter on this site and upload the PNG you just exported. The converter crops the image to a square, resizes it to each icon size you tick, and packs the sizes into a single ICO file. The converter also offers 64 and 128 pixel sizes, which suit larger displays. The conversion runs in your browser, so the file is not sent to a server.

  1. Upload the PNG file. A square image works best, so crop it square first if the logo is wide or tall.
  2. Tick the icon sizes to include: 16, 32 and 48 pixels for a website favicon, and add 256 pixels for a Windows application icon.
  3. Convert and download the ICO file.
  4. Check the file name. A website favicon is usually named favicon.ico.

Step 3: install the favicon and check it

Upload the ICO file to the top folder of your website, next to the home page, and name it favicon.ico. Most browsers look for that name on their own. If your site uses a link tag for the icon, point it at the ICO file instead. Then check the favicon in a real browser tab, not only in the converter preview.

  1. Upload favicon.ico to the top folder of your website.
  2. Open the site in a browser tab and look at the tab icon.
  3. If the old icon still shows, hard refresh the page and clear the browser cache for the site.
  4. Check the icon on a phone and in bookmarks too, because each place may pick a different size from the ICO file.

Favicon sizes table

UseSizeWhere it shows
Browser tab16 by 16 pixelsThe small icon in a browser tab
Bookmarks and high density screens32 by 32 pixelsBookmarks bar and sharper displays
Windows desktop and folders48 by 48 pixelsDesktop shortcuts and folder views
Windows application icon256 by 256 pixelsLarge icons and application shortcuts

Common mistakes

  • Exporting the PNG too small, then packing it into an ICO. Small source pixels blur when they are used at larger sizes, so export at 256 pixels first.
  • Using a white background for a logo on a dark browser theme, which shows as a white box around the logo.
  • Including only the 16 pixel size, so the icon looks blurry in bookmarks and on desktop shortcuts.
  • Using a wide or tall logo with no crop, so the icon shrinks to a thin strip inside the square.
  • Forgetting to hard refresh after uploading, so the browser keeps showing the old favicon from its cache.
  • Deleting the original SVG after the conversion, so a new size means starting again.

When ICO is the wrong choice

Use a PNG icon or an SVG icon when the platform accepts it. Modern browsers accept a PNG favicon through a link tag, and many accept an SVG favicon too, which stays sharp at every size because it is still a vector. An SVG favicon needs a link tag, because browsers do not pick it up from the favicon.ico name alone.

ICO is still the right choice when you need one file that works everywhere, including older browsers and Windows shortcuts. Keep the ICO for compatibility, and add a PNG or SVG icon with a link tag when you want the sharpest result on modern browsers.

Sources

Written by Shahab Uddin. Published ; updated . Corrections are welcome through the contact page.

A few useful answers

Before you hit download

Can I convert SVG to ICO for free?

Yes. Use the free SVG to PNG converter and the free JPEG to ICO converter on this site. Export the SVG as a PNG, then pack it into an ICO. No account is needed and both steps run in your browser.

Will the ICO keep a transparent background?

Yes, if the PNG you pack into it has a transparent background. Export the SVG with transparency in the SVG to PNG converter, and check the PNG before you convert it. A JPEG source has no transparency, so start from the PNG.

Which sizes should a favicon include?

Include 16 by 16 and 32 by 32 pixels for browser tabs, and 48 by 48 pixels for Windows. Add 256 by 256 pixels if the icon is also used as a Windows application icon. Modern sites also link a PNG or SVG icon.

Why does my new favicon not show?

Browsers cache favicons for a long time, so the old icon can stay visible after you upload the new file. Hard refresh the page, clear the browser cache for the site, and check the file is named favicon.ico in the top folder of the website.

Next, make it useful.