How to Make a Favicon for Your Website
Images · Published October 5, 2026 · Updated October 24, 2026 · 3 min read
Written by Akinrinmade Michael
A favicon is the small icon shown in the browser tab, in bookmarks and on a phone home screen. A site without one shows a blank page icon, which looks unfinished. Getting it right takes one image and a few lines of HTML, and the details below save you from the usual traps.
The files you need
favicon.icoin 16, 32 and 48 pixel sizes, for browsers and older software.favicon-32x32.pngandfavicon-16x16.pngfor modern browsers.apple-touch-icon.pngat 180 by 180 pixels, used when someone adds your site to an iPhone or iPad home screen.android-chrome-192x192.pngandandroid-chrome-512x512.png, listed in a web manifest for Android and installable apps.site.webmanifest, a small JSON file that names the icons and sets the theme color.
Where each size shows up
| Place | Size it uses | Notes |
|---|---|---|
| Browser tab | 16 or 32 px | The smallest and most common view |
| Bookmarks and history | 16 to 32 px | Seen in lists, so contrast matters |
| Desktop shortcuts and Windows tiles | 48 px and up | Slightly larger |
| iPhone and iPad home screen | 180 px | Apple adds rounded corners itself |
| Android home screen and installed apps | 192 and 512 px | Declared in the manifest |
| Search results | A multiple of 48 px | Google asks for a square icon whose size is a multiple of 48 pixels |
Start with the right image
Tiny icons need simple shapes. A single bold letter, a simple symbol or a logo mark works far better than a logo with small text. Start from a square image, because the icons are square. If your logo is wide, crop it first with the Image Cropper. At 16 pixels there are only 256 dots to work with, so every detail you add is a detail you lose.
Design rules for a tiny square
- Use strong contrast between the shape and its background.
- Keep a little padding so the edges don't get clipped by a round or rounded frame.
- Use your brand color so people can pick your tab out of a row of ten.
- Test on both a light and a dark browser theme. A black icon with a clear background vanishes on a dark tab.
- Check it at 16 pixels, not only at the big preview size.
Make the whole pack in one go
The Favicon Generator builds every file above from a letter, an emoji or your own image. Pick a color and a shape, check the preview at 16 pixels, then download the ZIP.
Add it to your pages
Put the files in the root folder of your site and paste this into the <head> of every page:
<link rel="icon" href="/favicon.ico" sizes="48x48"> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> <link rel="manifest" href="/site.webmanifest">
What the manifest looks like
The manifest is a short JSON file that tells phones about your icons and your site's colors:
{
"name": "Example Site",
"short_name": "Example",
"icons": [
{"src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png"},
{"src": "/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png"}
],
"theme_color": "#6366f1",
"background_color": "#ffffff",
"display": "standalone"
}If it doesn't show up
- You see the old icon. Browsers cache favicons for a long time. Do a hard refresh, open the page in a private window, or rename the file and update the link.
- You see a blank icon. Open yourdomain.com/favicon.ico directly. If it's a 404, the file isn't in the root folder.
- Search results show the old one. Search engines update their copy on their own schedule, which can take days or weeks.
- It looks blurry. Use the PNG at the exact size, and make sure the source was square and large enough.
Browsers request /favicon.ico on their own even when you haven't linked one, so a missing file fills your server logs with 404 errors. The Meta Tag Generator can help you finish the rest of your page head, such as the title, description and social sharing tags.
Related reading: to choose a brand color for the icon, see how to pick colors from a photo.