How to make a favicon
- Pick a source. Text draws one to three letters, Image uses a logo you upload (drag it in, paste it, or click the box), and Emoji draws any emoji your system can display.
- Choose a shape and background. Untick Background for a transparent icon. Use Content size and Padding to control how much of the square the letter, logo or emoji fills.
- Check the browser-tab preview. It shows the icon at real tab size on a light and a dark tab, which is where most favicon problems become obvious.
- Click Download all (ZIP), unzip the files into your site's root folder, and paste the HTML snippet into the
<head>of every page.
If your icons will not live in the root folder, change Icon path (for example to /static/icons/); the HTML and the manifest update to match. Keep a copy of favicon.ico in the root anyway, because some browsers and crawlers request /favicon.ico directly without reading your HTML.
Which favicon files you need, and what each is for
| File | Size | Used by |
|---|---|---|
favicon.ico | 16, 32 and 48 px in one file | Fallback for every browser, and the file requested automatically from the site root. Windows uses the 48 px image for shortcuts. |
favicon-16x16.png, favicon-32x32.png | 16, 32 | Browser tabs and bookmarks. High-density screens use the 32 px file in a 16 px slot. |
favicon-48x48.png | 48 | A size Google Search can use for the icon next to your result. |
apple-touch-icon.png | 180 | iPhone and iPad “Add to Home Screen”. Always square and opaque, because iOS rounds the corners itself and turns transparent areas black. |
android-chrome-192x192.png, android-chrome-512x512.png | 192, 512 | Listed in site.webmanifest; Android home screen icons, installable web apps and splash screens. |
That set covers current browsers on desktop and mobile. You do not need dozens of extra sizes such as 57, 72 or 114 px for old iPhones or Windows 8 tiles; those were needed a decade ago and modern devices scale the 180 and 192 px files.
How the favicon.ico file is built
An ICO file is a small container: a 6-byte header, a 16-byte directory entry per image (width, height, colour depth, byte length and offset), then the images themselves. This generator writes three 32-bit images, 16×16, 32×32 and 48×48, each stored as an uncompressed bitmap with a full alpha channel plus the 1-bit transparency mask that older Windows code expects. That is the most widely compatible form of ICO. Renaming a PNG to favicon.ico, which many guides suggest, usually works in browsers but is not a real ICO and fails in tools that check the format.
To check a file yourself, open it in Python with Pillow: Image.open("favicon.ico").info["sizes"] should list (16, 16), (32, 32) and (48, 48).
The HTML to add
With the default path, the snippet is:
<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">
<meta name="theme-color" content="#4f46e5">
Put it inside <head> on every page, not only the home page. The theme-color tag tints the browser toolbar on Android and in some desktop browsers. If you already use a framework, it may have its own convention: in the Next.js App Router, placing favicon.ico, icon.png and apple-icon.png in the app folder makes Next.js generate the tags for you, so you would skip the snippet.
Designing an icon that reads at 16 pixels
- Simplify. A full logo with a wordmark becomes a smudge at 16×16. Use the symbol only, or the first letter of the name.
- Use strong contrast. A light grey letter on white disappears in a tab. White on a saturated colour, or a dark colour on a light one, survives.
- Test dark mode. A transparent icon with a black glyph is invisible on a dark tab. Either keep the background or choose a glyph colour that works on both, and check both previews above.
- Fill the square. Small icons look small next to other tabs if they have wide margins. Keep padding low for favicons; the generator keeps the Apple touch icon square and opaque automatically.
- Start from a large, square source. Upload at least 512×512 if you can. A small source is blurry at 192 and 512 px, and the tool warns you when the image is smaller than 512 px.
Emoji are drawn with the emoji font of your own operating system, so the same emoji looks different on Windows, macOS and Android. Whatever you see in the preview is exactly what goes into the files, because they are images, not text.
Favicon not showing? Common causes
The old icon is still in the tab
Browsers cache favicons aggressively, often separately from the page. Do a hard reload, open the page in a private window, or add a version to the URLs, for example href="/favicon.ico?v=2", so the browser treats it as a new file.
404 on the icon file
Open https://your-site/favicon.ico directly. If it does not load, the file is in the wrong folder or the path in the snippet does not match. Paths that start with / are relative to the domain root, not to the current page.
Google shows a generic globe instead of your icon
Google Search picks up the favicon from your home page's <link rel="icon"> tag. The image must be square, at least 8×8 pixels (Google recommends larger than 48×48), and both the icon and the home page must be crawlable, so check that robots.txt does not block them. Changes can take days or weeks to appear because Google recrawls favicons on its own schedule.
The home-screen icon on iPhone is black around the edges
The Apple touch icon had transparent pixels. This generator always fills that file with your background colour, or white if the background is off, so re-download it and replace the old file.
Making favicons with code instead
If you prefer the command line, ImageMagick 7 can pack several PNGs into one ICO:
magick favicon-16x16.png favicon-32x32.png favicon-48x48.png favicon.ico
And Python with Pillow can create a multi-size ICO from a single large image:
from PIL import Image
img = Image.open("logo-512.png")
img.save("favicon.ico", sizes=[(16, 16), (32, 32), (48, 48)])
Both give a valid ICO. The advantage of this page is that you see every size before you export it, and you get the PNGs, manifest and tags in the same step.
Privacy
Images are read with the browser's FileReader and drawn on a <canvas>. Nothing is sent to a server: the ZIP is assembled in the page by JSZip and saved directly from memory. For a longer walkthrough, read the favicon generator guide.
Frequently asked questions
What sizes does a favicon need?
A practical modern set is favicon.ico containing 16, 32 and 48 px images, PNG icons at 16 and 32 px for tabs, a 180 px Apple touch icon, and 192 and 512 px icons listed in site.webmanifest for Android and installable web apps. This generator produces all of them.
Is the favicon.ico a real ICO file or a renamed PNG?
A real one. It contains three 32-bit bitmap images (16×16, 32×32 and 48×48) with alpha transparency, written byte by byte to the ICO format, so Windows, browsers and image libraries all read it.
Can I make a favicon from text or an emoji?
Yes. Choose Text and type one to three letters, or choose Emoji and paste an emoji. Pick a font, colours and a shape, and the icon is rendered at every size. Emoji use your operating system’s emoji design.
Where do I put the favicon files?
Upload them to the root folder of your site so that /favicon.ico loads, then paste the generated link tags into the head of each page. If you keep them in a subfolder, set Icon path first so the tags and manifest point to the right place.
Why is my new favicon not showing?
Usually caching. Hard-reload the page, try a private window, or add ?v=2 to the icon URLs. If that fails, open the icon URL directly to check that it does not return a 404.
Do I need an SVG favicon?
No. SVG favicons are supported by current Chrome, Edge and Firefox and are nice for crisp scaling and dark-mode tricks, but Safari support has been limited, so the PNG and ICO set from this page is still the reliable baseline.
Is my image uploaded anywhere?
No. The image is drawn on a canvas inside your browser and the files, including the ZIP, are created in the page. Nothing leaves your computer.