Free tool · Image tools
Favicon generator
Choose an image, or type a letter or an emoji, and get favicon.ico, five PNG sizes, a web app manifest and the exact link tags to paste. Every file is made in your browser and downloads on its own, with no signup.
- Free
- No sign-up
- Runs in your browser
Your browser may ask to allow several downloads at once.
- favicon.ico written from PNG frames
- Example: pick an image or type a letter to see yours
- favicon.ico16, 32, 48 px insideThe classic file: browsers ask for it on their own
- favicon-16x16.png16 x 16 pxBrowser tab, as a PNG
- favicon-32x32.png32 x 32 pxBrowser tab on a sharper screen, bookmarks
- apple-touch-icon.png180 x 180 pxHome screen icon on an iPhone (apple-touch-icon)
- icon-192.png192 x 192 pxWeb app manifest icon
- icon-512.png512 x 512 pxWeb app manifest icon, large
- site.webmanifesttext fileWeb app manifest that points to the 192 and 512 icons
<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">site.webmanifest
{
"name": "My site",
"short_name": "My site",
"icons": [
{
"src": "/icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/icon-512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#1d3557",
"background_color": "#1d3557",
"display": "standalone"
}- Sizes drawn
- 16, 32, 48, 180, 192, 512 px
- favicon.ico
- shown for your icon
- Source
- shown for your icon
How to use the Favicon Generator
- Under Make the icon from choose An image and pick a file, or choose Text or an emoji and type up to four characters.
- Set the Background color, the Shape and the Margin. Tick Transparent background if your logo should keep see-through areas.
- Type the Folder on your site where you will upload the files, and an App name for the manifest.
- Press Download beside each file, or Download all files, then use Copy the tags and Copy the manifest.
How do I make a favicon from an image?
Choose the image, pick how it fits the square, and download the files. The page draws your picture onto a square canvas at six sizes (16, 32, 48, 180, 192 and 512 pixels), saves each as a PNG, and then writes favicon.ico from the 16, 32 and 48 pixel frames. Nothing is sent anywhere: the picture is decoded and drawn by your own browser.
A square logo with a plain or transparent background gives the best result. A wide photo has to be either shrunk to fit, which leaves empty bands, or cropped from the middle, so the page offers both: Show all of it and Fill the square. Take a busy photo through a crop image tool first if the part you want is not in the middle.
A favicon is tiny, so detail disappears. At 16 pixels there are only 256 pixels in all. Thin lines, small text and gradients turn to mush, while a bold letter, a single shape or an emoji stays readable. The text mode exists for that reason: one or two letters on a solid color is often a better favicon than a shrunken logo.
Margin matters too. With a margin of 8%, an 800 by 600 pixel image drawn into the 48 pixel icon is scaled to 40.32 by 30.24 pixels and placed 3.84 pixels from the left and 8.88 from the top. The page does this sum for every size, so the proportions stay the same at 16 and at 512.
What sizes does a favicon need?
There is no single required size, but five PNG files plus one ICO cover the usual cases. Google Search says a favicon must be square, at least 8 by 8 pixels, and recommends one larger than 48 by 48 pixels so it looks good on different surfaces. It accepts several formats, including ICO and PNG, allows one favicon per hostname, and asks that its address stays stable.
For installable web apps, web.dev says Chromium needs at least a 192 by 192 pixel icon and a 512 by 512 pixel icon in the manifest. Those two files are the reason the table below has them. Apple documents its own icon through a separate apple-touch-icon link, and its example declares a 180 by 180 pixel icon for an iPhone.
The sizes are conventions that these sources describe, not a promise that every browser or device asks for every file. The table lists what the page makes and what each file is for. The third column is plain arithmetic: the memory an uncompressed bitmap of that size would need, at 4 bytes per pixel. The PNG you download is far smaller, because PNG compresses.
| File | Pixels | Raw RGBA size | What it is for |
|---|---|---|---|
| favicon.ico | 16, 32, 48 | 14,336 bytes (all three) | The classic file: browsers ask for it by name |
| favicon-16x16.png | 16 x 16 | 1,024 bytes | Browser tab, as a PNG |
| favicon-32x32.png | 32 x 32 | 4,096 bytes | Browser tab on a sharper screen, bookmarks |
| apple-touch-icon.png | 180 x 180 | 129,600 bytes | Home screen icon on an iPhone (apple-touch-icon) |
| icon-192.png | 192 x 192 | 147,456 bytes | Web app manifest icon |
| icon-512.png | 512 x 512 | 1,048,576 bytes | Web app manifest icon, large |
How do I make a favicon.ico file?
An ICO file is a small directory followed by the images it lists. This page writes it itself, with no library. The file starts with a 6-byte header: two zero bytes, the number 1 for an icon, and the count of images. Next comes one 16-byte entry per image, giving its width, height, color depth, byte length and where its data starts. The images follow, and here each one is a PNG.
A worked example: three PNG frames of 300, 700 and 1,200 bytes need a 6-byte header and three 16-byte entries, so the first image starts at byte 54 (6 + 3 x 16). The second starts at 354 and the third at 1054, and the whole file is 2,254 bytes. The page reads the header of the file it just wrote and shows how many frames it found, as a check.
Storing PNG frames inside the ICO keeps the transparency and the file small. A 256 by 256 pixel entry would be written with a width of 0, which is how the format says 256, but this page stops at 48 pixels because that is enough for a tab and a taskbar shortcut.
How do I add a favicon to my website?
Upload the files to your site, then paste the tags into the head of every page. With the folder set to "/" the tags point at /favicon.ico, /favicon-32x32.png and the other files. If you keep icons in a folder such as /icons/, type it into the folder field and the tags and manifest change to match. A tag can use a relative path, an absolute address or a file on a CDN, since Google does not require favicon.ico at the site root.
When a page lists several icons, MDN says the browser uses the media, type and sizes attributes to pick the most appropriate one, and takes the last if several fit equally. That is why each tag carries its size. The manifest link goes in the same head and points at the JSON file, which lists the 192 and 512 pixel icons.
Browsers cache favicons hard. After you replace one, a hard refresh or a private window shows the real state. Search results update on Google's schedule, and Google says a favicon is not guaranteed to appear even when its rules are met.
What is an apple-touch-icon and what size is it?
The apple-touch-icon is the picture an iPhone or iPad uses when someone adds your site to the home screen. Apple's page says iOS looks for a PNG called apple-touch-icon.png in the site root, or for a link tag, and picks the icon of the most suitable size. If none matches exactly, it uses the smallest one that is larger, and otherwise the largest. This page makes a 180 by 180 pixel file, the size in Apple's own iPhone example.
The apple-touch-icon is saved with a solid background in your chosen color, even when you tick Transparent background for the others. A PNG with see-through areas has no defined background on a home screen, so the page fills it rather than leave the outcome to the device. Keep the artwork inside the margin so it does not touch the edges.
For the manifest icons, MDN describes a maskable icon as one with a safe zone: a circle whose diameter is 80% of the icon, which is always visible after a mask is applied. This page does not mark icons as maskable, because a mask can cut off the corners of a plain square. If you want one, add a larger margin here and set the purpose in the manifest by hand.
Use it with
- Image Resizer: resize by pixels or percent.
- Image to WebP: convert JPG/PNG to WebP for faster sites.
- Image to Base64: encode an image as a data URI.
Questions
How do I make a favicon from an image?
Choose the image, pick Show all of it or Fill the square, and download. The page draws it at 16, 32, 48, 180, 192 and 512 pixels and writes favicon.ico from the first three.
What sizes does a favicon need?
Google asks for a square of at least 8 by 8 pixels and recommends larger than 48 by 48. Chromium web apps need 192 and 512 pixel manifest icons, and Apple documents an apple-touch-icon with a 180 pixel example. This page makes 16, 32, 48, 180, 192 and 512.
Can a favicon be a PNG instead of an ICO?
Yes. Google Search accepts several formats, including PNG and ICO. The tags the page writes list both, so a browser can use the file that suits it.
What is inside a favicon.ico file?
A 6-byte header, one 16-byte entry per image, then the images. Here the images are PNGs of 16, 32 and 48 pixels, so the first starts at byte 54.
Why does my new favicon not show?
Browsers cache favicons for a long time. Try a hard refresh or a private window. Google updates the icon in search on its own schedule and does not guarantee that one appears.
Is my image uploaded anywhere?
No. The image is read and drawn by your browser, the files are built in the page and they download from it. The page makes no network request with your image.
Sources
- Google Search Central: Define a favicon to show in search results, read
- web.dev: Add a web app manifest, read
- MDN: Web app manifest, icons member, read
- MDN: Define your app icons (maskable safe zone), read
- MDN: HTML rel attribute (icon, apple-touch-icon), read
- Apple: Configuring Web Applications (Safari Web Content Guide), read
How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.