Home › Guides › Web Design › Favicon sizes and files you actually need

Favicon sizes and files you actually need

A short, current list of favicon files and sizes, with the link tags to use, design tips for tiny icons and common mistakes.

By the tools4free.dev team · Last reviewed 4 December 2026

For most sites you need only a handful of favicon files: an SVG or PNG icon for modern browsers, a small favicon.ico as a fallback, a 180 x 180 pixel apple-touch-icon.png for iOS home screens, and 192 and 512 pixel PNGs listed in a web app manifest if the site is installable. This guide explains what each file does, which sizes are worth making, and how to link them without clutter.

What a favicon is used for

A favicon is the small icon that represents a site. It appears in browser tabs, bookmarks, history, search results on some engines, and on a phone's home screen if a visitor adds the page. Different places ask for different sizes, which is why old advice suggested a long list of files. Browsers have since become better at scaling a single good source, so a short list is enough.

The files that matter

FileSizeUsed byNeeded?
favicon.ico32 x 32 (can hold 16 and 48 too)Legacy browsers and tools that request it at the site rootRecommended fallback
icon.svgScalableBrowsers that accept SVG iconsOptional, very handy
icon-192.png192 x 192Android home screen, installable web appsIf you ship a manifest
icon-512.png512 x 512Splash screens and install promptsIf you ship a manifest
apple-touch-icon.png180 x 180iOS and iPadOS "Add to Home Screen"Recommended

You will see lists with a dozen other sizes (57, 60, 72, 76, 114, 120, 144, 152 and so on). Those came from older device generations. Today the browser or operating system scales one of the larger images down, so you can skip them unless a platform you target explicitly asks for one.

The markup

This is a compact, widely used set of tags:

<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">

The manifest lists the larger icons:

{
  "name": "Example",
  "icons": [
    { "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" },
    { "src": "/icon-512.png", "sizes": "512x512", "type": "image/png" }
  ]
}

Using sizes="32x32" on the ICO link stops some browsers from choosing the ICO over a better SVG. Always keep a file at /favicon.ico if you can, since many crawlers and tools request that path directly even when your HTML points elsewhere.

Worked example 1: a minimal static site

You run a small blog and want the least work that still looks right everywhere.

  1. Draw a simple mark on a 512 x 512 canvas with generous padding.
  2. Export a 32 x 32 favicon.ico and a 180 x 180 apple-touch-icon.png.
  3. Optionally export the same mark as icon.svg.
  4. Add the three link tags from the section above.

That is three files and no manifest. Tabs, bookmarks and iOS home screens are all covered. If the blog is never installed as an app, a manifest adds nothing.

Worked example 2: an installable web app

A tool site wants to be installable on Android. Add the manifest with 192 and 512 pixel PNGs, plus a "purpose": "maskable" version if the icon should fill whatever shape the system applies. A maskable icon needs its important content inside a central safe zone, because the operating system may crop the edges into a circle or rounded square. Keep the logo within about the middle 80% of the canvas and fill the whole background with a solid colour. Test it in your browser's application panel, which previews maskable icons.

Why 32 pixels and not 16

A tab icon is drawn at 16 CSS pixels, but many screens have two or three device pixels for each CSS pixel. A 32 x 32 file therefore looks sharp on a high-density display, while a 16 x 16 file looks soft. An ICO file can hold several sizes in one container, and the browser picks the closest match, so including 16, 32 and 48 pixel versions is a reasonable way to cover small tabs, high-density tabs and Windows shortcuts. If you only export one size, make it 32.

Design rules for tiny icons

Search engines and favicons

Google Search can show your favicon beside results. Its documentation asks for a square image, with a size that is a multiple of 48 pixels, at a stable URL that it can crawl. A 48 x 48 or larger icon and a link tag in the home page's head are the usual way to satisfy it. Check the current Search Central page before relying on specifics, as such guidance changes.

Common mistakes

Checklist before publishing

  1. Open the site in a fresh private window and look at the tab.
  2. Request /favicon.ico directly and confirm it loads.
  3. Check the page in a dark browser theme.
  4. If you have a manifest, open it in developer tools and confirm every icon path resolves.
  5. Add the page to an iOS or Android home screen if you can, and view the result.
Try it: generate the sizes above from one image with the favicon generator. If you need to convert a source file first, the image converter can change its format.

Frequently asked questions

Do I still need a .ico file?

It is not strictly required for modern browsers, but it costs little and protects you against tools and crawlers that request /favicon.ico by default.

Can I use SVG alone?

For current browsers that accept SVG icons, yes. It is not enough for iOS home screens, which use the Apple touch icon, or for a manifest, which expects PNG sizes.

What size should the master file be?

Start from a square image of at least 512 x 512 pixels, or a vector. You can then export every smaller size from it without upscaling.

Why does my old favicon still appear?

Favicons are cached separately from page content. Clear the site's data, change the file name, or add a query string, and give the browser time to refetch it.

Sources