Icon Converter
Convert an image into a multi-size .ico file.
What is Icon Converter
The Icon Converter resizes an uploaded image (PNG, JPEG, WebP or GIF) into six sizes — 16, 32, 48, 64, 128 and 256 px — and packs them into a single .ico file you can use as a browser favicon or a Windows shortcut icon. Conversion runs on the Canvas API inside your browser; the file never leaves your device (5 MB limit).
File
🔒 Everything runs in your browser. Nothing is uploaded.
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Size limit
- 25 MB
- Offline
- Works with the network disconnected
Rasterising is real; vectorising is not
Going from a vector format to PNG, JPEG or WebP is a genuine conversion: the source is drawn at the target resolution, so the output is sharp at any size. Going the other way — PNG to SVG — cannot recover paths that were never there.
A PNG-to-SVG conversion is either an embedded bitmap wrapped in an SVG container (which is a PNG with extra steps and no scaling benefit) or an automatic trace that approximates edges with curves. The trace looks convincing at a glance and produces thousands of nodes, wrong curves on text, and a file larger than the original.
Transparency is the thing that breaks
PNG and WebP support an alpha channel; JPEG does not. Converting a transparent icon to JPEG fills the transparent area with white or black depending on the encoder, which is why logos converted to JPEG for a favicon end up with a visible box.
ICO is the other special case: it can carry alpha and several sizes at once. An ICO built from a JPEG source loses transparency permanently, and rebuilding it later cannot recover what the source never had.
Choosing the output format by use
PNG for icons with transparency or few colours, WebP for photographic content that needs to be small, JPEG only for photographs, SVG whenever the source is vector. AVIF is smaller again for photos but support in older tooling is still patchy.
Check the file size against the use, not against the original. An icon that ships at 200 KB because it was exported at 1024px for a 32px slot costs more than the layout it decorates — batch-resize to the largest rendered size before shipping.
How to use it
- 1.Choose an image file
- 2.Run to build the 6-size ICO
- 3.Download favicon.ico and add it to your site
How Icon Converter works under the hood
Every image operation here is decode → transform pixels → re-encode. That order matters: it explains both why resizing is exact and why repeated compression slowly degrades a photo.
- 1
Decode to a pixel buffer
The browser's own decoder turns the file into RGBA pixels. EXIF orientation is applied at this step so portrait photos are not sideways.
- 2
Draw at the target size
The pixels are drawn onto a canvas at the requested dimensions with high-quality smoothing, which is where resampling actually happens.
- 3
Encode with a chosen quality
canvas.toBlob re-encodes to JPEG, WebP or PNG. Quality applies to lossy formats only; PNG ignores it and stays lossless.
- 4
Hand back a Blob
The encoded bytes become a download link. No network request is involved at any point.
Processing pipeline
Why the file gets bigger sometimes
Re-encoding is not free. Converting a small, well-compressed JPEG to PNG usually makes it several times larger, because PNG is lossless and must store every pixel exactly. The same happens when a JPEG is re-saved at quality 1.0. If size is the goal, keep the format and lower the quality; if transparency is the goal, PNG or WebP is the right choice.
Metadata is dropped on purpose
Camera EXIF can contain GPS coordinates, device serial numbers and timestamps. Re-encoding through canvas writes fresh pixels and no metadata, which is a privacy win but means the location tag is gone. If you need metadata preserved, this pipeline is the wrong tool.
Formats the browser cannot open
HEIC and HEIF (the default on recent iPhones) are not decodable by most browsers, so they cannot be converted client-side. TIFF and some camera RAW formats fail for the same reason. There is no server fallback here by design — the file never leaves your device, so if the browser cannot read it, the tool cannot either.
Verify it yourself
Re-encoding happens locally. Check the network panel while it runs.
- 1.Open DevTools on this page and switch to the Network tab
- 2.Keep the filter on Fetch/XHR and run the tool
- 3.Confirm no request carries your file — you should see only page assets and fonts
Frequently asked questions
Which formats can I upload?
PNG, JPEG, WebP and GIF, up to 5 MB.
What is inside the .ico?
Six PNG sizes (16–256 px) packed into one .ico container, supported by modern browsers and Windows Vista and later.
What this kind of conversion cannot keep
Image work happens on a canvas: the file is decoded, drawn, re-encoded and handed back as a download. Nothing is uploaded, so a 20 MB photo costs you nothing but a few seconds. Re-encoding always loses a little quality — that is true of every tool, including desktop software.
Go deeper
More in Image
On this page
- What is Icon Converter
- What this tool actually does with your file
- How it actually behaves
- How to use it
- How it works inside
- Frequently asked questions
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →