Favicon Sizes & Formats Guide: ICO, SVG, Dark Mode & Next.js
Why a favicon is a set of files, not one image
A single favicon.ico used to be enough. Today, browsers, iOS home screens, Android launchers
and search engines each ask for a different size, aspect rule and transparency behavior.
If you only upload one 32 × 32 PNG, iOS stretches it onto a home-screen tile, Android clips the corners inside a circle mask, and dark-mode tabs swallow a dark logo whole. With Favicon Generator, every file is drawn from one design at its exact target pixels in your browser — nothing is uploaded and there is no watermark.
Every favicon file and size you actually need
Below is the complete 12-file package used across modern browsers, mobile home screens and web app manifests:
| Surface | File | Size / Format | Why it is needed |
|---|---|---|---|
| Safari & legacy fallback | favicon.ico | Multi-frame 16, 32, 48 px | Safari falls back to ICO; multi-frame avoids blurry browser scaling |
| Modern desktop tabs | favicon.svg | Vector / dual-theme SVG | Sharp at any DPI and supports dark-mode theme switching |
| Search & high-DPI | favicon-96x96.png | 96 × 96 px PNG | Multiple of 48 px; crisp in search results and desktop shortcuts |
| Retina tabs & bookmarks | favicon-32x32.png | 32 × 32 px PNG | Standard 2× tab and bookmark bar fallback |
| 1× browser tabs | favicon-16x16.png | 16 × 16 px PNG | Drawn directly at 16 px instead of shrunk from a large canvas |
| iOS home screen | apple-touch-icon.png | 180 × 180 px PNG | Opaque square; iOS drops transparency and rounds the corners |
| Android & PWA | web-app-manifest-192x192.png | 192 × 192 px PNG | Android home screen and app switcher |
| Splash & install prompt | web-app-manifest-512x512.png | 512 × 512 px PNG | High-resolution install prompt and splash screen |
| Circular Android masks | maskable-icon-512x512.png | 512 × 512 px PNG | Adds safe-zone padding so circular crops do not clip your mark |
| PWA metadata | site.webmanifest | JSON | Declares app name, theme color and icon paths |
| Master archive | source/logo-1024.png | 1024 × 1024 px PNG | Clean master copy for future stores or social profiles |
For HTML sites, wire the tab and touch icons in <head> alongside site.webmanifest. Make
sure favicon.ico contains genuine 16, 32 and 48 px frames rather than a renamed PNG.
Why 16 px breaks most text logos
A browser tab icon is drawn at 16 × 16 CSS pixels — roughly the size of a single lowercase letter in body copy. Designs that look clean in a 512 px Figma frame often turn into unreadable grey noise once they hit a tab bar.
Three habits keep a mark legible at 16 px:
- Use one or two letters, not a full word. Initials survive 16 px; a brand name turns into a horizontal smear.
- Push foreground-to-background contrast. Mid-tone gray on white disappears in a crowded tab strip.
- Leave a slight margin. Icons that touch the canvas edge get clipped by rounded masks on mobile and search chips.
In Favicon Generator, your live browser tab updates as you type, and the preview renders a true 16 px sample next to the larger sizes so you can spot mush before downloading.
How dark mode favicons work in one SVG
A black mark on a transparent background vanishes the moment a visitor opens your site in
a dark browser theme. You can solve this without JavaScript by shipping two versions inside
a single favicon.svg using a CSS prefers-color-scheme media query:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<style>
.dark { display: none }
@media (prefers-color-scheme: dark) {
.light { display: none }
.dark { display: inline }
}
</style>
<image class="light" width="512" height="512" href="data:image/png;base64,…"/>
<image class="dark" width="512" height="512" href="data:image/png;base64,…"/>
</svg>
Chrome, Edge and Firefox swap the artwork live — even in bookmarks and history — as soon
as the OS theme changes. Safari falls back to favicon.ico, which is why keeping both
favicon.svg and favicon.ico in your <head> is essential.
Next.js App Router setup
If you are building with Next.js App Router, you do not need to write manual <link> tags
or edit _document. Next.js reads convention-named files directly from app/:
app/favicon.icoapp/icon0.svgapp/apple-icon.pngapp/manifest.json(referencing the 192 px and 512 px icons inpublic/)
When you choose Next.js App Router in Favicon Generator, the
downloaded ZIP is already organized into app/ and public/ folders with those exact
filenames, plus a README.txt checklist.
Troubleshooting Google Search favicons
If your tab icon works locally but Google Search shows a generic globe icon:
- Check the size. Google Search expects a square icon that is a multiple of 48 px (such as
48 × 48or96 × 96px). Do not serve only a 16 px PNG. - Check
robots.txt. Neither the page nor the icon URL may be blocked forGooglebotorGooglebot-Image. - Keep the URL stable. Avoid changing the icon filename on every deploy or serving it from an expiring CDN link.
- Wait for recrawl. After requesting indexing for your home page in Search Console, favicon updates in live search results can take several weeks.
Frequently asked questions
What favicon sizes do I need in 2026?
You need 16 × 16, 32 × 32 and 48 × 48 px inside favicon.ico (and PNG fallbacks), a 96 × 96 px PNG for high-DPI surfaces and search, a 180 × 180 px opaque PNG for iOS (apple-touch-icon.png), and 192 × 192 plus 512 × 512 px icons (including a maskable version) for Android and web manifests. Adding favicon.svg covers modern desktop browsers at any resolution.
Do I still need favicon.ico if I have favicon.svg?
Yes. Chrome, Edge and Firefox use favicon.svg, but Safari falls back to favicon.ico in tabs and bookmarks, and older tools still request /favicon.ico by default. Keeping both tags lets modern browsers pick the SVG while Safari and legacy clients get a crisp multi-frame ICO.
How do I make a dark mode favicon?
Embed a @media (prefers-color-scheme: dark) rule inside favicon.svg that swaps between a light-mode artwork and a dark-mode artwork. Browsers that support SVG favicons switch it automatically when the visitor changes their system theme, without reloading the page.
Why does my favicon look blurry in browser tabs?
A 16 px tab icon has roughly the height of a lowercase letter. Full words, thin hairlines or low-contrast colors turn into a grey smudge when shrunk down. Use one or two bold initials or a simplified mark, and inspect it at actual 16 px before exporting.
Why is my favicon not showing up in Google Search?
Google requires a square icon that is a multiple of 48 px (such as 48 × 48 or 96 × 96 px), served from a stable HTTPS URL that is not blocked for Googlebot or Googlebot-Image. After fixing the tag or file, request indexing in Search Console — recrawling favicons can take several weeks.
What filenames does Next.js App Router expect for favicons?
Next.js App Router automatically wires up app/favicon.ico, app/icon0.svg, app/apple-icon.png and app/manifest.json (pointing to icons in public/). Place those files in your app directory and remove manual icon <link> tags so they do not conflict.