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.
- Upload the SVG file from your computer or phone.
- Set the output width to 256 pixels. Height follows the shape of the SVG.
- Keep the background transparent for a logo, or choose white for an icon that sits on a white page.
- 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.
- Upload the PNG file. A square image works best, so crop it square first if the logo is wide or tall.
- Tick the icon sizes to include: 16, 32 and 48 pixels for a website favicon, and add 256 pixels for a Windows application icon.
- Convert and download the ICO file.
- 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.
- Upload favicon.ico to the top folder of your website.
- Open the site in a browser tab and look at the tab icon.
- If the old icon still shows, hard refresh the page and clear the browser cache for the site.
- 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
| Use | Size | Where it shows |
|---|---|---|
| Browser tab | 16 by 16 pixels | The small icon in a browser tab |
| Bookmarks and high density screens | 32 by 32 pixels | Bookmarks bar and sharper displays |
| Windows desktop and folders | 48 by 48 pixels | Desktop shortcuts and folder views |
| Windows application icon | 256 by 256 pixels | Large 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.