What Is a .ICO File?
A .ico file is a Windows icon file that bundles several small images, usually square sizes like 16, 32, 48 and 256 pixels, into one file. Windows uses ICO files for program, folder and shortcut icons, and websites use a favicon.ico for the little icon shown in browser tabs.
- Extension
- .ico
- Full name
- Windows Icon
- Type
- Image file
- MIME type
- image/vnd.microsoft.icon, image/x-icon
- Developed by
- Microsoft
About ICO files
An ICO file is a container: a small directory followed by one or more images at different sizes and color depths. Windows picks the best match for where the icon is shown, from a 16-pixel taskbar badge to a 256-pixel large-icon view. Older entries are stored as BMP-style bitmaps with a transparency mask; since Windows Vista, large sizes are usually stored as embedded PNG to save space.
Websites traditionally place a favicon.ico in the site root, and browsers request it automatically. Modern sites often add PNG or SVG favicons as well, but favicon.ico remains the most widely recognised fallback. Many site generators and frameworks still create one by default, and a missing favicon.ico shows up as a 404 error in server logs because browsers keep asking for it.
Because an ICO usually contains several images, simple converters that make a single-size icon from a PNG can produce blurry results at other sizes. Good icon tools let you supply a separate image for small sizes, where details must be simplified to stay legible. The closely related .cur format uses the same structure for mouse cursors.
What ICO files are used for
- Website favicons shown in browser tabs and bookmarks
- Windows program, shortcut and custom folder icons
- Icons embedded in Windows executables
- Desktop customization and icon packs
How to open a .ico file
Windows
Open it in Paint or the Photos app to view it; File Explorer shows it as a thumbnail.
Mac
Preview opens ICO files and shows each size contained in the file.
Online / any browser
Drag the file into Chrome, Edge, Firefox or Safari to view it.
Any desktop
GIMP opens each size in an ICO as a separate layer, and can export layered images back to ICO.
How to convert a .ico file
To make an ICO from a PNG, open the PNG in GIMP, add layers for the sizes you need (for example 16, 32, 48 and 256 pixels) and use File > Export As with an .ico name.
To extract an image from an ICO, open it in Preview on a Mac and choose File > Export > PNG, or open it in GIMP and export the layer you want.
Renaming a .png to .ico can appear to work in some browsers as a favicon, but it is not a real ICO file and Windows will not use it as a program or folder icon.
Convert it here, free and without uploading: ICO to PNG
Changing the extension in the file name does not convert the file. See how to change a file extension for when renaming is safe.
Naming and renaming ICO files
- Browsers look for favicon.ico by that exact lowercase name in the site root; do not rename it if you rely on automatic discovery.
- When keeping icon sources, name by size and purpose (app-icon-256.png, app-icon-16-simplified.png) so the ICO can be rebuilt later.
Renaming lots of .ico files? Use the free online bulk renamer for patterns and numbering, or try File Renamer AI to name each file from what is inside it.
Related file types
A .png file is a Portable Network Graphics image, a lossless format that keeps every pixel exactly as saved and supports full transparency. PNG is the standard for screenshots, logos, icons and web graphics with sharp edges or text, though photos saved as PNG are much larger than JPGs.
A .svg file is a Scalable Vector Graphics image: a text file written in XML that describes shapes, paths and text rather than pixels. SVGs stay perfectly sharp at any size, are usually tiny, and display in every web browser, which makes them the standard format for logos, icons and web illustrations.
A .bmp file is a Windows bitmap image that stores pixels in a simple, usually uncompressed grid. BMP is one of the oldest image formats on Windows, opens almost anywhere and preserves every pixel exactly, but files are very large compared with PNG or JPG, so it is rarely used for sharing.
A .exe file is a Windows executable: a compiled program that runs when you open it. Installers, apps and games on Windows are EXE files. Because running one gives it the same access to your computer that you have, only open EXE files from sources you trust. Macs, iPhones and Android cannot run them natively.
Frequently Asked Questions
What size should a favicon.ico be?
Include at least 16x16 and 32x32 pixels, and optionally 48x48. One ICO file can hold all of them.
How do I change a folder icon in Windows?
Right-click the folder, choose Properties > Customize > Change Icon, then browse to your .ico file.
Can I convert a PNG to ICO?
Yes. GIMP can export a PNG as ICO, and many free online converters do the same. For best results include several sizes in the file.