Favicon Sizes & Formats Guide: ICO, SVG, Dark Mode & Next.js

6 min read
One mark across light tabs, dark tabs and search results: every surface crops and scales your favicon differently.

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:

SurfaceFileSize / FormatWhy it is needed
Safari & legacy fallbackfavicon.icoMulti-frame 16, 32, 48 pxSafari falls back to ICO; multi-frame avoids blurry browser scaling
Modern desktop tabsfavicon.svgVector / dual-theme SVGSharp at any DPI and supports dark-mode theme switching
Search & high-DPIfavicon-96x96.png96 × 96 px PNGMultiple of 48 px; crisp in search results and desktop shortcuts
Retina tabs & bookmarksfavicon-32x32.png32 × 32 px PNGStandard 2× tab and bookmark bar fallback
1× browser tabsfavicon-16x16.png16 × 16 px PNGDrawn directly at 16 px instead of shrunk from a large canvas
iOS home screenapple-touch-icon.png180 × 180 px PNGOpaque square; iOS drops transparency and rounds the corners
Android & PWAweb-app-manifest-192x192.png192 × 192 px PNGAndroid home screen and app switcher
Splash & install promptweb-app-manifest-512x512.png512 × 512 px PNGHigh-resolution install prompt and splash screen
Circular Android masksmaskable-icon-512x512.png512 × 512 px PNGAdds safe-zone padding so circular crops do not clip your mark
PWA metadatasite.webmanifestJSONDeclares app name, theme color and icon paths
Master archivesource/logo-1024.png1024 × 1024 px PNGClean 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.

Two initials rendered at 96, 48, 32 and 16 pixels, still readable at the smallest size
A full word rendered at 96, 48, 32 and 16 pixels, unreadable at the smallest size

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>
The same site preview in light and dark themes, the favicon inverting between them

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.ico
  • app/icon0.svg
  • app/apple-icon.png
  • app/manifest.json (referencing the 192 px and 512 px icons in public/)

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:

  1. Check the size. Google Search expects a square icon that is a multiple of 48 px (such as 48 × 48 or 96 × 96 px). Do not serve only a 16 px PNG.
  2. Check robots.txt. Neither the page nor the icon URL may be blocked for Googlebot or Googlebot-Image.
  3. Keep the URL stable. Avoid changing the icon filename on every deploy or serving it from an expiring CDN link.
  4. 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.

Generate all 12 favicon files in one click

Type your initials or upload a logo, preview it live at 16 px in light and dark mode, and download ICO, SVG, PNG, Apple and Android icons free.