Image to ICO
Convert an image to an ICO (favicon) file.
GET
10 credits
/v1/convert/image-to-ico
curl -OJ "https://convert.toolkitapi.io/v1/convert/image-to-ico?url=https://toolkitapi.io/logo.png"
import httpx
resp = httpx.get(
"https://convert.toolkitapi.io/v1/convert/image-to-ico?url=https://toolkitapi.io/logo.png",
)
print(resp.json())
const resp = await fetch("https://convert.toolkitapi.io/v1/convert/image-to-ico?url=https://toolkitapi.io/logo.png", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response
200 OK
Binary ICO file streamed as a download (Content-Type: image/x-icon)
Description
Convert an image to an ICO (favicon) file.
How to Use
1
1. GET this endpoint with the image `url`.
2
2. Save the streamed ICO as `favicon.ico` and reference it in your HTML.
About This Tool
Converts an image into a multi-size ICO file suitable for use as a browser favicon. The ICO is generated with the standard favicon sizes (16×16, 32×32, 48×48) by default.
Use a square source image with some padding around the mark — very small sizes dramatically reduce detail.
Why Use This Tool
- Favicons — Generate a favicon.ico from any source image
- Desktop app icons — Legacy Windows apps often expect ICO
- Installer packages — ICO is still required by some installer tooling
- Branding pipelines — Automate favicon generation during deploys
Frequently Asked Questions
Should the source be square?
Yes — ICO files are square. Non-square sources are fitted by padding or cropping; padding is used by default.
What about SVG favicons?
Modern browsers support SVG favicons natively. Use [SVG to PNG](/convert/tools/svg-to-png) to raster-ize an SVG master before ICO conversion.
How big should the source be?
At least 64×64 to render well at the standard ICO sizes. Higher is better.
Start using Image to ICO now
Get your free API key and make your first request in under a minute.