How to Create an ICO File from an Image
By Arin Prajapati · Published
The short answer
Open Make an ICO file, add one image, enter comma-separated sizes such as 16,32,48,256, and press Build the icon. The result is one ICO containing those sizes. Prepare a square image first: rectangular sources are center-cropped to fill each square.
Prepare an image that survives a small icon
Start with a square PNG if you need transparency. Use a simple mark with clear edges and enough space around it; a detailed wordmark that reads at 512 pixels may become an indistinct line at 16 pixels. Use a source at least as large as the largest size you plan to include. Enlarging a small source cannot recover detail.
Make an ICO file creates a real icon container with several PNG-compressed images inside it. Renaming a PNG to .ico does not create that container. Microsoft documents how one ICO can contain multiple image sizes.
Build and check the ICO
- Open Make an ICO file and choose one image.
- In Sizes (px), keep the default
16,32,48,256, or enter your own comma-separated integers between 8 and 256. For a small three-size icon, use16,32,48. - Press Build the icon. The engine resizes the same artwork separately for each entry and puts the entries in one file.
- Check Sizes included in the result. Download the
.ico, which uses your source’s base filename. - Inspect the icon in the application or website that will use it, including its smallest display size. A large preview alone will not reveal unreadable small details.
Invalid entries are filtered out rather than rounded or clamped. For example, 16,32,512 produces entries for 16 and 32 only. If nothing valid remains, the tool asks for at least one size between 8 and 256. Check the report instead of assuming every number you typed was included.
Try the existing synthetic example
Download the 256 × 256 synthetic PNG, set Sizes (px) to 16,32,48, and build it. The existing sample ICO contains those three sizes and is 3,305 bytes. That example deliberately omits 256; it does not represent the tool’s default setting or predict your file size.
Why did the edges disappear?
Both icon tools scale an image to cover a square, then crop the excess from the center. A wide logo loses material on its left and right; a tall image loses material at the top and bottom. They do not automatically add padding to preserve the whole rectangle.
Use Crop image to choose a square composition first. If you must retain an entire rectangular mark, place it on a square canvas in an image editor with transparent padding before converting. Padding becomes part of every generated size, so avoid leaving so much that the mark becomes tiny.
When should you generate a favicon set instead?
Use Favicon set when a website needs several separate assets. It always generates PNGs at 16, 32, 48, 96, 180, 192 and 512 pixels. The 180-pixel file is named apple-touch-icon.png; the others use names such as favicon-32x32.png.
There are two toggles, both on by default:
| Option | What it adds |
|---|---|
| Also produce favicon.ico | One ICO containing 16, 32 and 48 pixel entries |
| Include a web manifest | site.webmanifest with icon references for the 192 and 512 pixel PNGs |
With both toggles enabled there are nine files. Download the results and put them at your site’s public root, then add references in the HTML head:
<link rel="icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
The HTML standard defines rel="icon" as a way to associate an icon with a document. These lines assume the files are at the domain root. If you put them in a subdirectory, update both these links and the generated manifest’s root-relative icon paths.
The generated manifest contains only an icons array. Add any other metadata your application requires separately; generating this file does not make a website an installable app by itself.
Troubleshooting and limits
- The icon is blurry: try a larger original or simplify the artwork. All sizes come from the same source; there is no separate hand-tuned drawing for the 16-pixel entry.
- The background is wrong: JPEG has no transparency to preserve. Use a transparent source if you need transparent output; the tool does not remove an existing background.
- An older program rejects the ICO: entries use PNG compression, not legacy bitmap icon images. Test the target program; if it requires bitmap entries, use an icon editor that supports that representation.
- The browser still shows the old favicon: open the deployed asset URL directly and check that it returns the new file, then reload the page and check for a cached icon. Confirm the HTML points to the path you actually deployed.
- The source cannot be decoded: try exporting it as PNG first. The image picker accepting a file does not guarantee that its contents can be decoded.
The resizing and ICO assembly happen in the browser. Loading the page and its scripts still requires downloads; local processing is not a guarantee that a fresh visit will work without a connection. For a way to examine request direction, see how to check whether a converter uploads your file.