How to make a favicon for your website
A favicon is the tiny icon in the browser tab next to your website's name. It is only 16 pixels wide, yet it is the first thing people see when they have ten tabs open — and the thing that helps them find your site again in bookmarks and history. A website without one shows a blank page icon, which looks unfinished. The good news is that making a favicon takes a few minutes, needs no design software, and costs nothing.
What a favicon is, and where it appears
The word favicon is short for "favourite icon". Browsers show it in the tab bar, in the bookmarks list, in the history page, and on the shortcuts people save to their phone's home screen. The same small image appears in all of these places, so it becomes a visual shortcut for your whole site. A blog, a shop, a portfolio, or a school project all benefit from one: it tells visitors at a glance which tab is yours, and it makes the site look finished and trustworthy. A favicon is not a logo for your business — it is a small mark that works at a tiny size, usually a single letter, a simple shape, or a simplified version of your logo.
What makes a good favicon
A favicon has to work at 16 pixels wide — about the size of a grain of rice on most screens. That one fact decides almost everything about the design. A simple shape with strong contrast works; a detailed photo or a full wordmark does not. A single bold letter on a solid background is the most common favicon in the world, and it works because there is nothing to blur. If you use a logo, strip it down to one recognisable element — the first letter, the main symbol, or one strong shape — and drop the small text. Check your design at 16 pixels before you publish it: if you cannot tell what it is at that size, simplify it further. Bright, flat colours read better than soft gradients, and a dark icon on a light background — or the other way round — stays visible on every browser theme.
The sizes and files you need
Browsers ask for a favicon in more than one size, because the icon appears in places of different sizes. The classic file is favicon.ico, which holds several sizes inside a single file and still works in older browsers. Modern browsers also accept PNG files: 16 by 16 pixels for the browser tab, 32 by 32 for high-resolution screens and bookmarks, and 48 by 48 for shortcuts and larger displays. You do not need to memorise this list — a favicon generator makes all of them from one upload. Start from a square image at least 512 by 512 pixels if you have one; a large, clean source makes sharper small icons than a small source stretched up. PNG, JPG, or WebP all work as the starting image, and square works best because the icon itself is square.
Make a favicon in five steps
You do not need design software. A free favicon generator does the whole job in your browser, and your image is never uploaded anywhere.
- Pick your image. A square logo, a single letter on a solid background, or a simple symbol. If you only have a photo, crop it square and keep the subject in the centre.
- Open the Favicon Generator and upload the image. The tool runs in your browser — nothing is uploaded to a server.
- Check the live preview at 16, 32, and 48 pixels. This is the moment that matters: if the icon is unreadable at 16 pixels, simplify the image and try again.
- Download favicon.ico and the three PNG files (16, 32, and 48 pixels), and copy the HTML snippet the tool gives you.
- Put the files in your website's main folder and paste the snippet into the head section of your pages. Then hard-refresh your browser to see the new icon.
Add the favicon to your website
Making the files is only half the job — the website has to know they exist. Upload favicon.ico and the three PNG files to your website's main folder, the same folder as your homepage. Then add a short snippet inside the head section of your pages, which tells browsers where the icons live. A favicon generator gives you this snippet ready-made — copy it, paste it, and there is nothing to write yourself. Once the files and the snippet are in place, open your site and look at the browser tab. If the old blank icon is still showing, your browser has cached the old one: do a hard refresh — Ctrl and F5 on Windows, or Cmd, Shift and R on a Mac — or open the site in a private window to check. A new favicon can take a day to appear for every visitor, because each browser caches it on its own schedule, so do not worry if a friend still sees the old icon.
Common mistakes to avoid
Most favicon problems come from the same few mistakes. Using a photo as a favicon is the most common: a face or a landscape becomes a blurry coloured dot at 16 pixels. Use a simple logo or a single letter instead. Skipping the small sizes is another: an icon that looks fine in the tab can look broken in bookmarks if only one size exists. Forgetting the HTML snippet means browsers may never find your files, even if they are uploaded. And the mistake that causes the most confusion is the cache — people upload a new favicon, see the old one, and assume it failed, when a hard refresh would have shown the new one. Finally, remember that a favicon is not a replacement for a logo: it is a tiny signpost, not a brand identity, so keep it simple and let your real logo do the detailed work elsewhere on the page.
Related guides
How to choose image dimensions for a website →
Frequently asked questions
What size should a favicon be?
The tab icon is 16 by 16 pixels, but you should provide 16, 32, and 48 pixel versions, plus a favicon.ico file that holds several sizes. Start from a square image at least 512 by 512 pixels for the sharpest result.
Can I use a photo as a favicon?
You can, but it rarely works well. A photo becomes a blurry dot at 16 pixels. A simple logo, a symbol, or a single letter on a solid background reads far better at that size.
Why doesn't my new favicon show up?
Browsers cache favicons aggressively, so the old icon can linger for hours or even a day. Do a hard refresh — Ctrl and F5 on Windows, or Cmd, Shift and R on a Mac — or check in a private window. If it shows there, the files are fine and it is only the cache.
Is a favicon free to make?
Yes. Pixelkit's Favicon Generator is free, works entirely in your browser, and needs no sign-up. Your image is never uploaded anywhere.
Do I need a favicon for my website?
It is not required, but it is expected. Without one, browsers show a blank page icon, your site is harder to spot among open tabs, and the site looks unfinished. It takes a few minutes and costs nothing, so there is little reason to skip it.