File4Edit

How to make a favicon for your website

Start from one square image at least 512 pixels wide that still reads at 16 pixels. The favicon generator turns it into favicon.ico, PNG icons, a web manifest and the HTML to paste into your pages.

What is a favicon, and where does it appear?

A favicon is the small icon a browser shows in a tab, in bookmarks and in its history, and the one a phone uses when someone adds your site to the home screen. Each place asks for its own size, from a 16-pixel tab icon to a 512-pixel app icon, and a missing one is replaced with a blurry scaled copy or a generic globe.

Which favicon sizes do you need?

These are the files the favicon generator writes, and what each one is for.

The files in the favicon pack
FileSizeUsed by
favicon.ico16, 32 and 48 pixels in one fileBrowsers and tools that ask for /favicon.ico by path
favicon-16.png, favicon-32.png, favicon-48.png16, 32 and 48 pixelsBrowser tabs, bookmarks and history
apple-touch-icon.png180 pixelsiPhone and iPad home screens
icon-192.png, icon-512.png192 and 512 pixelsAndroid home screens and installed web apps, through the manifest
icon-maskable-512.png512 pixels, with the artwork inside the middle 80 percentLaunchers that crop icons to a circle or another shape
site.webmanifestTextThe app name, theme color and icons of an installed web app
snippet.htmlTextThe tags to paste into the head of every page

Browsers pick the closest size they are offered, so one set covers standard and high-density screens without you deciding for each.

How do you make one?

  1. Drop one square image, at least 512 pixels on each side, into the favicon generator. A smaller one still works, but the large icons are then enlarged from it and look soft, and the tool warns you. Favicon generator
  2. Pick a background color. The Apple and maskable icons cannot be transparent, so this fills them; turn on rounded corners if you want the tab and web icons rounded over it too.
  3. Type the app name, which goes into site.webmanifest, and the theme color, which goes into both site.webmanifest and the snippet.
  4. Check the contact sheet, which shows every icon at its actual pixel size, then download the ZIP.
  5. Copy the files into the root folder of your website, and paste the snippet into the head of every page.

How do you design an icon that reads at 16 pixels?

Design for the smallest size first. A 16-pixel icon has 256 pixels in total, so a detailed logo becomes a smudge. A single letter, a simple shape or a bold mark reads far better than a wordmark, and strong contrast against both light and dark browser tabs matters more than exact color.

If your artwork is not square, the favicon generator centers it inside a square rather than stretching it. The space around it stays transparent in the tab and web icons, and takes the background color in the Apple and maskable icons, or in every icon when rounded corners are on. Cropping it square yourself with Crop image usually gives a better icon, and Remove white background can clear the white box around a logo so the tab icon is transparent.

Worth knowingBrowsers cache favicons hard. After replacing one, a new private window is often the quickest way to see the new icon.

Do you still need favicon.ico?

It is still worth including. Some browsers and tools request /favicon.ico from the root of a site without reading any HTML, and the one in the pack holds its 16, 32 and 48 pixel versions in a single file. If you need an .ico with larger sizes, for a desktop shortcut or an app, the PNG to ICO converter writes one with seven sizes up to 256 pixels.

Favicons: common questions

What size should a favicon be?

There is no single size. A browser tab uses 16 or 32 pixels, an iPhone home screen 180, and Android and installed web apps 192 and 512, so start from one square image of at least 512 pixels and generate the rest from it.

Why is my old favicon still showing?

Browsers keep favicons in a cache of their own, apart from the page. Open the site in a private window, or clear the browser's cache for it, and the new icon should appear.

Where do the favicon files go?

In the root folder of your site, next to your home page, which is where the snippet's links point. If you put them anywhere else, change the paths in the snippet to match.

Is my logo uploaded to make the icons?

No. Every icon is drawn in your browser tab from the image you drop in, and the ZIP is put together there too.