Guide
Favicon size guide: every icon you need
A favicon is not one file. It is a small set of icons that browsers, phones and app launchers pick from depending on where the site is shown.
Most sites ship a single 32-pixel favicon and hope for the best. It works in a browser tab and looks blurry on a phone home screen, if it appears at all.
A complete icon set is small, cheap to generate and removes a surprising amount of visual inconsistency. This guide lists the sizes worth creating and the markup that connects them.
The sizes that matter
You do not need dozens of files. These cover browser tabs, bookmarks, iOS home screens, Android launchers and installable web apps.
| File | Size | Purpose |
|---|---|---|
| favicon.ico | 16, 32 and 48 px (multi-size) | Legacy browsers, tabs and bookmarks |
| favicon.svg | Vector | Modern browsers, sharp at any size |
| apple-touch-icon.png | 180 x 180 | iOS home screen |
| icon-192.png | 192 x 192 | Android home screen and PWA |
| icon-512.png | 512 x 512 | PWA splash screen and stores |
| icon-maskable-512.png | 512 x 512 with safe zone | Android adaptive icons |
| mstile-150x150.png | 150 x 150 | Windows pinned site (optional) |
Design for 16 pixels first
The smallest version is the hardest. If the mark is still readable at 16 x 16, it will work everywhere else. Start with a simple silhouette, strong contrast and generous padding.
Avoid text, thin lines and fine gradients. They disappear or turn into noise at tab size. Test the icon against both light and dark browser chrome.
- Use a square canvas and keep the mark centred.
- Leave breathing room around the edges.
- Use a transparent or solid background deliberately.
- For maskable icons, keep important artwork inside the central safe zone so Android's shape crop does not cut it off.
- Export a large master (at least 512 px) before generating the small sizes.
The HTML to add
Place these tags in the document head. Paths assume the files live at the site root.
- link rel="icon" href="/favicon.ico" sizes="any"
- link rel="icon" href="/favicon.svg" type="image/svg+xml"
- link rel="icon" href="/favicon-32.png" sizes="32x32" type="image/png"
- link rel="apple-touch-icon" href="/apple-touch-icon.png"
- link rel="manifest" href="/manifest.webmanifest"
The web app manifest
The manifest tells Android and installable web apps which icons to use. Include at least a 192-pixel and a 512-pixel PNG, plus a maskable variant if you want the icon to sit nicely inside adaptive shapes.
- name, short_name and start_url are required for installability.
- icons array entries need src, sizes and type.
- Use purpose "any" for standard icons and "maskable" for the padded variant.
- Declare theme_color and background_color to avoid a white flash on launch.
Generate the whole set from one image
The Favicon generator takes a square image or logo and produces the ICO, PNG icons, manifest and HTML tags in one ZIP. That is faster and less error-prone than exporting each size by hand.
- Start with a square source image, ideally at least 512 x 512 pixels.
- Open the Favicon generator and add the image.
- Adjust padding and background so the mark stays readable at small sizes.
- Generate and download the ZIP.
- Copy the icons to the site root and paste the provided tags into the head.
Related:Favicon generator, SVG to ICO
Testing checklist
Favicons are cached aggressively. After replacing them, test in a private window or clear the browser cache before deciding something is broken.
- Open the site in a browser tab and a bookmark bar.
- Add it to the home screen on iOS and Android.
- Check Windows pinned-site behaviour if that matters to your audience.
- Look at the icon in light and dark browser themes.
- Confirm the manifest loads without console errors.
Frequently asked questions
What size should a favicon be?
Provide a multi-size ICO with 16, 32 and 48 pixel entries, a 180 x 180 Apple touch icon, and 192 and 512 pixel PNGs for Android and PWA use. An SVG favicon is a useful bonus.
Can I use a PNG as a favicon?
Modern browsers accept PNG favicons, but a multi-size ICO still helps older browsers and bookmarks. Ship both when possible.
Why does my new favicon not show up?
Browsers cache favicons for a long time. Try a private window, clear the cache, or change the file name or path to force a fresh request.
What is a maskable icon?
A maskable icon has extra padding so Android can crop it into a circle, squircle or other shape without cutting off the artwork.
Do I need an SVG favicon?
It is optional but useful. SVG stays sharp on high-density screens and can adapt to dark mode with CSS inside the file.
Continue reading
- Image optimization checklist for faster websitesA practical image optimization and image SEO checklist: formats, compression, responsive sizes, lazy loading, alt text and Core Web Vitals.
- Image file formats explainedA plain-language guide to JPG, PNG, WebP, AVIF, HEIC, SVG, GIF, TIFF and RAW: what each format is good for, and how to choose the right one.