Format comparison
ICO vs PNG favicons for modern websites
Browser tabs, Apple touch shortcuts, and progressive web apps each demand specific icon files. Choosing between ICO and PNG across the board overlooks how modern browsers actually resolve them. This guide breaks down exact file roles, HTML declarations, and manifest paths so you can ship a lean, fully functional icon set directly from your browser.
Use a multi-size ICO as a conventional favicon fallback and explicit PNG icons where the browser or installation manifest expects an image at a stated size. Our local generator builds both from the same source. Neither format alone configures Apple touch icons, a web manifest or every platform-specific icon requirement.
One container versus one image per file
An ICO file can contain several image entries at different pixel sizes. The generated favicon.ico contains 16, 32 and 48 pixel square entries encoded as PNG inside a pure-JavaScript ICO container. A standalone PNG has one image size, so favicon-16x16.png and favicon-32x32.png are separate files. Both can represent transparency. That does not make the files interchangeable: renaming a PNG to .ico does not build an ICO directory or add the other sizes. Choose the declaration and format together, then verify that its path returns the file you actually generated.
| Feature | favicon.ico (Multi-Layer) | PNG (Apple Touch / PWA) | SVG (Vector Favicon) |
|---|---|---|---|
| Reference | 16x16, 32x32, 48x48 px | 180x180, 192x192, 512x512 px | Scalable Vector Graphic |
| Opens everywhere | 100% All Browsers (Legacy IE) | iOS Home Screen / Android PWA | Modern Chrome, Safari, Firefox |
| Color depth | 32-bit RGBA (PNG inside ICO) | 32-bit RGBA TrueColor | CSS Light/Dark Mode Responsive |
| File size cap | 15 KB to 35 KB (3 Layers) | 5 KB to 25 KB / Asset | 2 KB to 8 KB (Lightweight) |
Match each output to its declaration
The generator always produces favicon.ico and also produces the PNG sizes you select, packaging them together with a generated site.webmanifest file inside the ZIP download when you export the full bundle. Its HTML link snippet is displayed on-screen for copying (not written into the ZIP), declaring the ICO and selected 16 or 32 pixel PNG favicons, an Apple touch icon link when 180 px is selected, and a manifest link when 192 or 512 px is selected. Fill in your app names in site.webmanifest and adapt paths to your deployment. The generated icons do not include maskable safe-area padding or Safari pinned-tab artwork.
| Generated file | Contents | Where to declare it |
|---|---|---|
| favicon.ico | 16, 32 and 48 pixel PNG entries in one ICO | HTML icon link; conventional fallback |
| favicon-16x16.png / favicon-32x32.png | One square image per selected size | HTML icon links with matching sizes |
| apple-touch-icon.png | 180 pixel square PNG | Apple touch icon link |
| android-chrome-192x192.png / android-chrome-512x512.png | 192 or 512 pixel square PNG | Web manifest icon entries |
| Feature | Chrome / Edge Favicon | Safari Favicon Cache | HTML Header Tag |
|---|---|---|---|
| Breakdown | Aggressive Root /favicon.ico Cache | Touch Icons Cached in SQLite DB | Missing <link rel="icon"> |
| Processing mode | Append: /favicon.ico?v=2 | Clear ~/Library/Safari/Favicon Cache | <link rel="icon" type="image/png"> |
| Result | Instant Tab Icon Refresh | Clean Bookmark Tile | Zero 404 in Server Logs |
Generate from a source that survives small sizes
Use a simple source image whose important shape remains clear at 16 pixels. The tool accepts JPEG, PNG, WebP, AVIF and SVG up to 50 MB. A non-square input is cropped to its centred square before resizing, so off-centre artwork can be cut off. Prepare the framing in an image editor first if needed. Select the required sizes, generate the files and inspect the small PNGs as well as the larger icons. Processing happens in the browser. The generator can resize and package the artwork, but it cannot judge whether tiny text or thin lines still communicate your identity.
Check the deployed page, not just the download
Place the exported files at the paths your HTML and manifest declare. Open those paths directly and check their response type; a successful status that returns an HTML fallback is not a working image. Inspect the page's icon link elements and, for an installable app, the manifest's icon entries. Test a browser tab, a bookmark and the home-screen or installation flow you actually support. Icon caching can keep an old image visible, so use a clean test context when comparing a replacement. Keep a record of which contexts passed instead of assuming that a complete download proves every browser will select the intended icon.
The tools used in this guide
Frequently asked questions
Can I remove favicon.ico if my PNG icons work?
An explicit PNG icon can work in browsers that support that declaration, but an ICO fallback can still be useful for other clients and conventional favicon requests. Decide from the clients you support and their tested behaviour. Removing the ICO declaration or file is a site compatibility choice; it does not replace touch-icon or manifest declarations.
Does a 512-pixel PNG cover every icon requirement?
No. Size is only one part of an icon's purpose. A large PNG does not create an ICO with several entries, configure Apple touch metadata or make artwork maskable. Use the relevant declarations, supply files that meet the target's requirements and test the actual page or installation flow.