Sign in

How to make a favicon for your website (all sizes)

5 min read, updated

Quick answer

A modern website needs a favicon.ico (with 16, 32 and 48 px images) in the site root, a 180×180 apple-touch-icon.png for iPhone and iPad home screens, and 192×192 and 512×512 PNGs listed in a site.webmanifest for Android. An SVG favicon is a useful extra. Start from a square logo of at least 512×512 px, generate all the files at once with a favicon generator, upload them to your site root and paste the link tags into your page's head.

How to create and install a favicon

  1. 1
    Prepare a square logo

    Use a square PNG or SVG of at least 512×512 px. A simplified mark or a single letter reads better at 16 px than a full logo with text.

  2. 2
    Generate the icon set

    Drop the image into the Favicon Generator, set padding, the Apple icon background colour, your site name and theme colour, then click Generate favicons.

  3. 3
    Check the previews

    Look at the 16 and 32 px previews. If the icon is unreadable, simplify the design or reduce the padding.

  4. 4
    Upload the files

    Download the ZIP and upload its files to the root folder of your website, next to your homepage.

  5. 5
    Add the HTML tags

    Paste the generated link and meta tags inside the head of every page, or your site template.

Which favicon files and sizes do you need?

You don't need dozens of sizes. Browsers and devices scale icons themselves, so a small, well-chosen set covers everything:

FileSizeUsed by
favicon.ico16, 32 and 48 px in one fileBrowser tabs, bookmarks, older browsers, tools that request /favicon.ico
favicon-16x16.png, favicon-32x32.png16 and 32 pxBrowser tabs on standard and high-density screens
apple-touch-icon.png180×180iPhone and iPad home-screen shortcuts
android-chrome-192x192.png192×192Android home screen, listed in the manifest
android-chrome-512x512.png512×512Android splash screens and installable web apps
site.webmanifest-Tells browsers your app name, icons and theme colour
favicon.svg (optional)VectorBrowsers that support SVG favicons; stays sharp at any size

Our Favicon Generator creates every file in this table from one image, plus the HTML snippet, in a single ZIP. It runs in your browser, so your logo isn't uploaded anywhere. An SVG favicon is included only if you upload an SVG.

Design tips for a favicon that reads at 16 px

A browser tab shows your icon at 16×16 CSS pixels (32 px on high-density screens). That's tiny, so a full logo with a tagline turns into a smudge.

  • Simplify. Use the symbol from your logo, or the first letter of your brand on a coloured shape.
  • Use strong contrast. Thin lines and pale colours disappear. Bold shapes survive.
  • Think about dark mode. A black logo on a transparent background can vanish on dark browser tabs. A solid background shape, or a light outline, fixes that. An SVG favicon can also contain a prefers-color-scheme media query in its own styles, so it switches colours to suit the theme in browsers that support SVG favicons.
  • Leave a little breathing room. The generator's padding option keeps the mark from touching the edges, which matters most for the Apple and Android icons.
  • Start square. Non-square images are centred rather than stretched, but crop to a square first with Crop Image for the tightest result.

Adding the favicon to your site

Upload the files to your site root, so that yourdomain.com/favicon.ico opens the icon. Then add tags like these inside the head of your pages. The generator gives you the exact snippet to copy:

  • A link with rel icon pointing to /favicon.ico
  • A link with rel icon and type image/svg+xml pointing to /favicon.svg, if you have one
  • Links with rel icon for the 32×32 and 16×16 PNGs
  • A link with rel apple-touch-icon and sizes 180x180
  • A link with rel manifest pointing to /site.webmanifest
  • A theme-color meta tag that matches your brand

Website builders and content management systems usually have a site icon setting instead. Upload the 512×512 PNG there and the platform generates its own sizes. Frameworks may also have a convention, such as placing an icon file in a specific folder; check your framework's documentation.

Only need a single .ico file?

If you just want a favicon.ico, or a Windows icon, convert directly: PNG to ICO keeps transparency, SVG to ICO works from vector logos, and JPG to ICO works from photos. These create a multi-size ICO with 16, 32, 48 and 256 px images, stopping at your image's own size so nothing is upscaled. Need to edit an existing icon? ICO to PNG extracts the largest image.

Favicon not showing? Common fixes

  • You still see the old icon. Browsers cache favicons aggressively. Open yourdomain.com/favicon.ico directly and refresh it, try a private window, or add a version query to the link, such as /favicon.ico?v=2.
  • 404 for /favicon.ico. The file must be in the site root, not in an images folder, unless your link tags point there explicitly.
  • Icon is blurry. The source was too small or too detailed. Start from at least 512×512 px, ideally an SVG, and simplify the design.
  • Wrong icon in Google search results. Search engines recrawl favicons on their own schedule, so changes can take days or weeks. Google asks for a square icon, recommends one larger than 48×48 px, and needs the file to be crawlable.
  • Home-screen icon looks wrong on iPhone. Check that apple-touch-icon.png is 180×180 with a solid background and that its link tag is on the page.

Frequently asked questions

Provide a favicon.ico containing 16, 32 and 48 px images, a 180×180 Apple touch icon, and 192 and 512 px PNGs for Android. Start from a square image of at least 512×512 px.

It's still worth having. Older browsers, feed readers and other tools request /favicon.ico from the site root automatically, even when your pages link to PNG or SVG icons.

Yes. Modern browsers accept PNG favicons, and most support SVG favicons. Keep favicon.ico and PNG versions as a fallback because support for SVG isn't universal.

Yes for the ICO, PNG and SVG files. The Apple touch icon should have a solid background, because iOS shows transparent areas badly.

It isn't a ranking factor, but Google shows favicons next to search results, so a clear, recognisable icon helps your listing stand out and look trustworthy. It also makes your site easier to find among open tabs and bookmarks.

Usually caching. Open the favicon URL directly, hard-refresh, or add a version query such as ?v=2 to the link. Search engines update favicons on their own schedule.

Tools used in this guide

Related guides