Make 7 favicon files and the head code from one logo
This favicon generator turns a logo image (PNG, JPG, WebP, GIF or SVG) or one or two characters into a complete set of website icons. You get favicon.ico (16, 32 and 48 px) for browser tabs and bookmarks, a 96 px PNG for search results, a 180 px icon for the iPhone and iPad home screen, 192 and 512 px icons for the Android home screen and app installs, a maskable icon that Android can crop into different shapes, and a site.webmanifest that lists them. The head code to paste into your pages is shown alongside.
A logo that looks fine at 512 px can turn into a blurry dot at 16 px, because thin lines and small letters do not survive the shrink. So the same stage lets you press '16' to see the 16 × 16 pixels that will actually be saved, enlarged into a grid, and the board on the right draws the icon at real size on a light tab, a dark tab, a search result, and the iPhone and Android home screens. Every setting you change updates all files and previews together. Your image is never uploaded; it is processed only inside this browser.
When you need a favicon
- You just launched a site or blog: with no favicon, the tab shows a generic icon and your site is hard to spot among many tabs. Browsers look for
/favicon.icoat the top of the site even when no link exists, so uploading that one file to the top-level folder is enough for the tab. - Your site icon is missing from search results: Google reads the icon link in your homepage head and shows the favicon in results. You need a file that meets the size, format and crawling requirements, plus the link that points to it.
- You changed your logo: tab, search and home screen icons all have to switch to the new logo together, and making each size by hand makes it easy to miss one.
- The icon looks blurry or cropped after adding the site to a phone's home screen: iPhone rounds the corners of a 180 px icon, and Android cuts icons into circles, rounded squares and other shapes depending on the device. A home screen icon has to be made separately from the tab icon to survive this.
- You don't have a logo yet: press 'Text', enter the first letter of your site name, and pick a background color and shape to get a letter icon you can use right away.
How to make it
- Drag your logo file onto the stage or press 'Choose image'. A screenshot can be pasted with Ctrl + V (⌘ + V on a Mac). With no logo, press 'Text' and type one or two characters.
- For a wide logo, set 'Fit' to 'Fill the square', then drag the stage so only the symbol stays in the frame. The 'Zoom' bar lets you go bigger.
- Under 'View', press 16 and 32 to check that the shape still reads at small sizes. If it looks muddy, reduce the padding or zoom in.
- On the board under 'Where it appears', look at the dark tab and the home screens. If the picture disappears on the dark tab, change 'Background' to 'Color'.
- Press 'Save all as ZIP', upload the files to your site, then paste the head code shown below into the
<head>of every page. If you uploaded the files somewhere other than the top-level folder, type that path into 'Where you'll upload the files' and the code updates.
Which files do you need, and why?
Each file is read by something different. If you provide only one, other places have to stretch or shrink whichever picture they have, so it is better to supply a file made for each size in use.
| File | Size | Read by | Background |
|---|---|---|---|
| favicon.ico | 16 · 32 · 48 | Browser tabs and bookmarks; the default address browsers try when there is no link | As chosen (can be transparent) |
| favicon-96x96.png | 96 × 96 | Search results (a favicon larger than 48 × 48 is recommended) | As chosen |
| apple-touch-icon.png | 180 × 180 | "Add to Home Screen" on iPhone and iPad | Opaque, square |
| icon-192.png | 192 × 192 | Android home screen and installs (required size for Chromium) | As chosen |
| icon-512.png | 512 × 512 | App install and splash screen (required size for Chromium) | As chosen |
| icon-maskable-512.png | 512 × 512 | Android, when the icon is cropped to the device's shape | Opaque, fitted to the safe zone |
| site.webmanifest | — | The site name and a list of the three PNGs above | — |
An .ico file holds several pictures in one file. This tool stores three of them, at 16, 32 and 48 px, as uncompressed 32-bit bitmaps. Microsoft's Windows icon guidance sets the largest size at 256 × 256 and says to compress only that size, so the small sizes are left uncompressed here. That is why the file is always 15,086 bytes (about 15.1 KB), whatever the picture. It consists of a 6-byte header and a 3 × 16-byte directory, plus, for each picture, 40 bytes of header, the pixels (side × side × 4 bytes) and a transparency mask.
| Picture | Header | Pixels | Mask | Total |
|---|---|---|---|---|
| 16 × 16 | 40 | 1,024 | 64 | 1,128 |
| 32 × 32 | 40 | 4,096 | 128 | 4,264 |
| 48 × 48 | 40 | 9,216 | 384 | 9,640 |
| Including the 54-byte header and directory | 15,086 |
What size should a favicon be?
There is no single right answer, because each place that reads a favicon sets its own minimum and recommendation. What they share is that the image must be square.
| Where | Minimum | Recommended | Formats |
|---|---|---|---|
| Google Search | 8 × 8 px | Larger than 48 × 48 px | BMP, GIF, ICO, PNG, JPEG, PPM, TIFF |
| Chromium app install | Both 192 × 192 and 512 × 512 | icons in the manifest | |
| iPhone home screen | 180 × 180 (the size commonly used for home screen icons) | PNG, opaque background | |
A source of 512 × 512 px or more is cleanest, because every file can then be made by shrinking only. A smaller source forces the 512 file to be enlarged, which softens the edges. If you use an SVG, each size is redrawn from the vector, so it stays sharp whatever the original size.
What disappears at 16 px?
A 16 × 16 icon has only 256 pixels. Shrinking a 512 px picture to 16 px divides lengths by 32, so a 10 px line at 512 becomes 0.31 px: it no longer fills a whole pixel and survives only as a pale dot. Press '16' on the stage to see each of these pixels as a grid, while the top right shows the same picture at its actual pixel size.
- Bold, simple shapes survive. If your logo combines lettering and a symbol, it usually reads better to keep only the symbol with 'Fill the square' and dragging.
- Color contrast shows up before shape does. Two colors of similar brightness merge into one blob at 16 px.
- One or two letters is the limit for text. With three, each stroke is about 1 px wide and is hard to read.
- Padding looks airy on a large screen but makes the picture smaller at 16 px. With 10% padding, the room left for the picture at 16 px shrinks to 12.8 px.
Why do home screen icons fill the background?
Both iPhone and Android reshape home screen icons instead of showing them as they are. Apple advises supplying app icon artwork as an opaque square that fills the whole canvas and letting the system round the corners. So the apple-touch-icon.png from this tool is always a square, whatever shape you pick, and if the background is 'Transparent' it is filled with white (or black if the picture itself is so light that it has less than 2:1 contrast against white).
Android cuts icons into circles, rounded squares, squircles and other shapes depending on the device and launcher. The Web Application Manifest standard defines the "safe zone" that survives any shape as a circle with a radius of 40% of the icon, centered on it, and web.dev notes that the outer 10% may be cropped. To make icon-maskable-512.png, this tool shrinks the picture until the visible pixel farthest from the center fits inside that circle. A square picture that fills its frame shrinks to 0.8 ÷ √2 ≈ 56.6% of the icon's side (about 290 of 512 px), while a round logo can use 80% of the diameter (about 410 px). In the Android preview the masks cycle through different shapes, the faded outer area shows what gets cut off, and the dotted circle is the safe zone.
When the icon vanishes on a dark tab
A black logo on a transparent background is crisp on a light tab but almost invisible for people who use a dark browser theme. A white logo has the opposite problem. When the background is transparent, this tool warns you if fewer than 25% of the visible pixels in the 32 px icon differ from the tab background (#ffffff for the light tab, #35363a for the dark tab) by a contrast ratio of at least 2:1. That threshold is this tool's own choice. To fix it, add a background color or use a version of the logo that mixes light and dark colors.
An SVG favicon can carry its own dark-theme colors, which solves this cleanly, but Safari supports SVG favicons only from version 26, and SVG is not on the list of formats Google Search accepts. So this tool makes ICO and PNG files even when you give it an SVG. To use an SVG favicon as well, upload your original SVG file and add one line, <link rel="icon" href="/favicon.svg" type="image/svg+xml">. The server must serve the file as image/svg+xml.
What goes into site.webmanifest?
The manifest is a JSON file with the site name and the list of home screen and install icons. This tool writes 'Site name' to both name and short_name, and lists the 192 and 512 PNGs and the maskable 512 PNG under icons. The icon addresses are relative to the manifest file, so as long as you upload all 7 files to the same folder, it works in any folder. theme_color and background_color take the background color (or, if it is transparent, the color used to fill the home screen icon).
| Setting | display | Opening from the home screen icon |
|---|---|---|
| Like an app | standalone | Opens like an app, without browser interface such as the address bar. |
| Browser tab | browser | Opens in an ordinary browser tab or window (the default when no value is given). |
For a blog or company site where readers benefit from the address bar and a back button, 'Browser tab' is the natural choice. If you want it to open on its own like an app, pick 'Like an app'. The icons are the same either way.
Common mistakes
- You replaced the file but the tab still shows the old icon: browsers remember favicons for a long time. Check in a new window or a private window, and if the old one still shows, clear the browser's data for that site. In search results, the icon changes only after Google recrawls your homepage, which takes days to weeks. Google also advises against changing the favicon address often.
- No favicon in search results: the link must be in the homepage head, Googlebot-Image must be able to crawl the favicon file and Googlebot must be able to crawl the homepage. Meeting every condition still does not guarantee it will be shown, and Google uses only one favicon per host name (it does not use different favicons for subfolders).
- You used a wide logo as is: the proportions are kept, but it becomes tiny inside a square frame. Switch to 'Fill the square' and drag the symbol into place.
- You used a transparent PNG as the home screen icon: on devices that cut the corners, an unintended background can show through. This tool fills the background only in the two files: the iPhone home screen icon (apple-touch-icon.png) and the maskable icon (icon-maskable-512.png).
- You uploaded the files to a subfolder but pasted code pointing to the top-level folder: the link points to a place with no file, so nothing shows. Type the real path (for example
/icons/) into 'Where you'll upload the files' and copy the code again. Putting a copy offavicon.icoin the top-level folder too lets browsers find it even on pages with no link. - You never checked at 16 px: judging only by the large preview easily gives an icon nobody can recognize in a tab. Always check it once with 'View' set to 16.
Where is the image processed?
Your image is not uploaded to a server. The browser reads the file, decodes it, redraws it on a canvas at each size, and builds the PNG and ICO files on this device. The saved files do not carry over the original's shooting data (EXIF) or color profile.
Limits
- It does not create an SVG favicon file. If you give it an SVG, it redraws the ICO and PNG files sharply at each size.
- Text icons are drawn with the fonts installed on this device. The same letter can look slightly different when made on Windows, a Mac or a phone, but the saved PNG and ICO are pictures, so they look identical on every viewer's device.
- An animated GIF uses only its first frame. HEIC opens only in Safari, so in other browsers convert it to JPG first.
- It opens files up to 50 MB and pictures up to 50 million pixels. A large photo is halved repeatedly until its long side is 3,072 px or less, then redrawn for each size from the nearest step.
- The dark tab warning and the automatic home screen background choice are based only on pixel brightness. They cannot know what your logo means or what your brand color rules are, so check the preview yourself.
- It does not create an ICO containing a 256 px picture, Windows tiles (browserconfig.xml) or a Safari pinned-tab mask icon.
Checked 2026-10-21. The sentences were checked against the documents below on that day. The dark tab warning (contrast 2:1, 25%), the automatic home screen background choice (black if the contrast against white is below 2:1), the corner radius of the rounded square (20% of the side), and the limits of 50 MB and 50 million pixels are this tool's own standards. The tab and search result previews are simple imitations of the real screens.
Sources
- 01Google Search Central — Define a favicon to show in search resultsSquare, at least 8 × 8 px, larger than 48 × 48 px recommended; formats BMP, GIF, ICO, PNG, JPEG, PPM, TIFF; Googlebot-Image and Googlebot must be allowed to crawl; one per host name; recrawling takes days to weeks
- 02WHATWG HTML Living Standard — Link type "icon"With no icon link, /favicon.ico relative to the document address is requested; sizes="any" means a resizable image
- 03W3C — Web Application ManifestIcon purpose (any, maskable, monochrome); safe zone = a circle with a radius of 2/5 (40%) of the icon, centered
- 04web.dev — Adaptive icon support in PWAs with maskable iconsKeep the logo inside a circle of 40% radius; the outer 10% may be cropped on some platforms
- 05web.dev — Add a web app manifestChromium needs 192 × 192 and 512 × 512 icons, and at least one of name and short_name
- 06MDN — display (Web app manifest)standalone opens without browser interface such as the address bar; browser opens in an ordinary tab or window; browser is the default
- 07Apple — Safari Web Content Guide: Configuring Web ApplicationsA site-wide icon is apple-touch-icon.png in the top-level folder; it can also be set with a link element
- 08Apple Human Interface Guidelines — App iconsOpaque layers that fill the canvas edge to edge; supply a square and the system rounds the corners
- 09Microsoft Learn — Icons (Windows design guidelines)Icons up to 256 × 256 px; only the 256 size is compressed to reduce file size
- 10Can I use — SVG faviconsChrome and Edge 80, Firefox 41, Safari and iOS Safari from 26; the server must send image/svg+xml
Frequently asked questions
What size should a favicon be?
It just has to be square, and the size depends on where it is used. Browser tabs use 16 and 32 px, Google Search requires at least 8 × 8 px and recommends larger than 48 × 48 px, the iPhone home screen uses 180 × 180, and Android installs use 192 × 192 and 512 × 512. A source of 512 × 512 px or more is cleanest, because every file can then be made by shrinking only.
Can I just upload a single favicon.ico?
For the browser tab, yes. Browsers look for /favicon.ico at the top of the site even when there is no link. But that file only goes up to 48 px, so search results and phone home screens either stretch it or ignore it. It is better to provide the 96, 180, 192 and 512 px files and the head code as well.
I changed my favicon but the tab still shows the old icon. Why?
Because browsers remember favicons for a long time. Check in a new window or a private window, and if the old icon still shows, clear the browser data for that site. The icon in search results changes only after Google recrawls your homepage, which can take days to weeks.
Why is my favicon not showing in Google search results?
The icon link must be in the homepage head, Googlebot-Image must be able to crawl the favicon file, and Googlebot must be able to crawl the homepage. The image must be square, at least 8 × 8 px, and in one of these formats: BMP, GIF, ICO, PNG, JPEG, PPM or TIFF. Even if you meet every condition, display is not guaranteed, and Google uses only one favicon per host name.
Why does the iPhone home screen icon have a filled background?
Apple advises supplying the icon as an opaque square that fills the whole canvas and letting the system round the corners. So apple-touch-icon.png is always made as a square, whatever shape you pick, and if the background is transparent it is filled with white. If the picture is so light that it cannot be told apart from white, it is filled with black.
What is a maskable icon?
Android cuts icons into circles, rounded squares and other shapes depending on the device. A maskable icon keeps the important part inside a circle of 40% radius at the center (the safe zone) and fills everything outside with the background color, so it survives any shape. This tool shrinks your picture automatically to fit inside that circle.
Can I make a favicon if I don't have a logo?
Yes. Press 'Text' at the top and enter the first letter or two of your site name. Pick a font (sans-serif, serif or monospace), a text color, a background color and a shape, and set the size with the 'Text size' bar. One or two letters is the limit that stays readable at 16 px, so check with 'View' set to 16.
Is my image uploaded to a server?
No. The image is read inside this browser and redrawn at each size to make the PNG and ICO files. Nothing is sent to a server, and the saved files do not carry over the original's shooting data.