What is a favicon generator and what do you get?
A favicon is the small icon a browser shows in the tab, in bookmarks and in history. Modern sites need more than one file: a favicon.ico for browsers and crawlers, PNG icons in several sizes, an Apple touch icon for the iPhone home screen, and two larger icons that a web app manifest points to for Android and installed web apps. Making each size by hand in an image editor is slow and easy to get wrong.
This tool turns one picture into the whole set and writes the code that uses it. You get eight files:
| File | Size | Used for |
|---|---|---|
favicon.ico | 16, 32 and 48 px inside one file | Browsers, search results, old software |
favicon-16x16.png, favicon-32x32.png, favicon-48x48.png | 16, 32, 48 px | Tabs and bookmarks |
apple-touch-icon.png | 180 px | iPhone and iPad home screen |
android-chrome-192x192.png, android-chrome-512x512.png | 192, 512 px | Android, installed web apps |
site.webmanifest | text | Names, colours and the two big icons |
You also get the <link> and <meta> lines to paste inside the <head> of your pages. Everything is drawn in your browser from your picture: it is not uploaded, there is no account and no watermark.
How to create a favicon from an image
- Drop one picture on the page, click the file button or paste with Ctrl+V. JPG, PNG, WebP, HEIC, AVIF, GIF and BMP are accepted, one at a time. An example image is loaded first. A square picture of at least 512 px gives the best result.
- In Picture inside the icon, choose Keep the whole picture (nothing is cut, empty space is added where needed) or Fill the icon (crop the middle) for a picture that should touch the edges. With the first option, use Margin (0 to 30%, 10% by default) to leave breathing room.
- In Background, keep Transparent or choose Solid colour and pick the colour.
- Fill in App name and Theme colour; both go into
site.webmanifest, and the colour also becomes thetheme-colormeta tag. - In Folder where you will put the files, type the path the files will be served from:
/for the site root, or something like/assets/icons/. The generated HTML and manifest use it. - Click Create favicons. Download the files one by one or all in a ZIP, then copy the HTML shown under HTML for the <head> and the manifest text.
Examples
Logo for a personal site
logo.png, 1024 × 1024, transparent background. Settings: Keep the whole picture, Margin 10%, Transparent, folder /. You get the eight files, and the HTML references /favicon.ico, /favicon-32x32.png, /favicon-16x16.png, /apple-touch-icon.png and /site.webmanifest. Upload the files to the root of the site and paste the HTML in the head.
Rectangular logo
brand.jpg, 1600 × 900. With Keep the whole picture and Margin at 0% the logo is scaled to fit and centred, so a 1600 × 900 image becomes a 512 × 288 drawing inside the 512 × 512 icon, with empty bands above and below. With Fill the icon the middle is cropped to a square, which only works if the important part is in the centre.
Files in a subfolder
Folder /assets/icons/. The manifest then lists "src": "/assets/icons/android-chrome-192x192.png" and the HTML links point to /assets/icons/favicon-32x32.png. Remember that browsers still ask for /favicon.ico at the root when no link is found, so keep a copy there or keep the link in the head.
Icon that must not look black on the iPhone
A logo with a transparent background looks fine in a tab, but iOS fills transparency of the Apple touch icon with black. Choose Solid colour with your brand colour or white. The same background is used for every size, and the manifest's background_color takes that colour too (white when the background is transparent).
Common errors and how to fix them
- The icon looks blurry in the tab: the source was small or detailed. Use a square picture of at least 512 px with few, bold shapes; at 16 px, fine lines and small text disappear.
- The picture is cut off: you chose Fill the icon (crop the middle). Switch to Keep the whole picture.
- The icon is tiny inside its square: the Margin is too high. Lower it.
- The browser still shows the old icon: favicons are cached aggressively. Reload with Ctrl+Shift+R, open the icon address directly, or add
?v=2to the file names in the links. - A file is marked as unreadable: it is damaged or not a supported image. Open it in a viewer and export it as PNG.
- Only one picture is accepted: this tool takes a single source on purpose, since the whole set comes from it.
Frequently asked questions
What size should a favicon be?
Make the source at least 512 × 512 px and square. The tool produces 16, 32, 48, 180, 192 and 512 px from it. Google asks for a favicon whose size is a multiple of 48 px for search results, which the 48 and 192 px files satisfy.
Do I still need favicon.ico if I have PNG icons?
It is wise to keep it. Browsers request /favicon.ico by default and some crawlers and older programs only read that. The generated file embeds the 16, 32 and 48 px images as PNG.
Can I convert a PNG to ICO with this?
Yes: drop the PNG and download favicon.ico. For a plain format conversion without icons, use Convert images.
Does it make an SVG favicon or a maskable icon?
No. It creates the PNG and ICO files above and a manifest with two icons. If you need an SVG favicon or a maskable Android icon, prepare them separately.
Is my picture uploaded?
No. The icons are drawn in your browser. Nothing is sent to a server.
What do I do with the HTML it gives me?
Paste it inside the <head> of every page, or in your layout template, and upload the files to the folder you typed. If the source picture is too big or has the wrong proportions, prepare it first with Resize image or Crop image.