Favicon generator
Upload a logo or SVG, set a square crop and see the icon in a browser tab and on a phone screen. You get a complete set of files, a manifest and HTML tags.
Your icon in a tab and on a phone
Set the crop and colours. The preview, files and code below change along with them.
No account. The file stays on your device, nothing is sent to a server.
Drag the image to move it. Zoom with the slider or two fingers. On a keyboard, use the arrows and + and -.
The tab strips and screens are illustrative. Icon shape and size depend on the system and browser, and here they show whether the mark stays readable.
The icon swaps on the real tab of this page, and the previous one comes back when you leave.
The complete set of files
Each size comes from the documentation named next to its group. The ZIP also has the manifest and a head.html file with the tags.
Browser tab and search
MDN gives 16 x 16 px as the usual favicon size, the HTML specification also shows 32 and 48 px, and Google recommends a file larger than 48 x 48 px, hence the 96 px version.
favicon-16x16.png16 x 16 px
favicon-32x32.png32 x 32 px
favicon-48x48.png48 x 48 px
favicon-96x96.png96 x 96 px
iPhone and iPad
Apple documentation gives 180 x 180 px for an iPhone with a Retina display, 167 x 167 px for an iPad with a Retina display and 152 x 152 px for an iPad. The colour from the settings fills the background.
apple-touch-icon-152x152.png152 x 152 px
apple-touch-icon-167x167.png167 x 167 px
apple-touch-icon.png180 x 180 px
App manifest
Chromium requires at least 192 x 192 px and 512 x 512 px icons in the manifest. Transparency stays.
icon-192x192.png192 x 192 px
icon-512x512.png512 x 512 px
Maskable icon
The system crops it to its own shape, so it has a solid background and a margin. web.dev recommends a separate file rather than sharing one with the regular version.
icon-maskable-192x192.png192 x 192 px
icon-maskable-512x512.png512 x 512 px
Tags for the head section
<link rel="icon" href="/favicon.ico" sizes="16x16 32x32 48x48">
<link rel="icon" href="/favicon-16x16.png" type="image/png" sizes="16x16">
<link rel="icon" href="/favicon-32x32.png" type="image/png" sizes="32x32">
<link rel="icon" href="/favicon-48x48.png" type="image/png" sizes="48x48">
<link rel="icon" href="/favicon-96x96.png" type="image/png" sizes="96x96">
<link rel="apple-touch-icon" href="/apple-touch-icon-152x152.png" sizes="152x152">
<link rel="apple-touch-icon" href="/apple-touch-icon-167x167.png" sizes="167x167">
<link rel="apple-touch-icon" href="/apple-touch-icon.png" sizes="180x180">
<link rel="manifest" href="/manifest.webmanifest">
<meta name="theme-color" content="#0F6E6E">Manifest
{
"name": "Mountain Coffee",
"short_name": "Coffee",
"start_url": "/",
"display": "standalone",
"theme_color": "#0F6E6E",
"background_color": "#F7E7C6",
"icons": [
{
"src": "/icon-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/icon-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "/icon-maskable-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/icon-maskable-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
}Upload the files to the folder you set and paste the tags into the head section of every page. The manifest uses the .webmanifest extension registered for this file type in the W3C specification, and the server should send it as application/manifest+json.
What can be measured
These measurements apply to your crop. Source size follows MDN advice, and the other values are our own helper measures, not browser requirements.
- Source size
- 1024 x 1024 pxRecommended sizeMDN advises at least 1024 x 1024 px or a file that can be scaled, such as SVG.
- Crop fill
- The more empty space around the mark, the smaller it will be at 16 px.
- Detail at 16 px
- How many brightness differences in the crop disappear when it is reduced to 16 x 16 px.
- Visibility on the tab strip
- How much of the mark has at least 3:1 contrast with the background. This is the WCAG threshold for graphical elements.
Five rules for an icon that works when small
Start from a large square or SVG
Google requires a 1:1 ratio. MDN advises a source of at least 1024 x 1024 px or a vector, because the largest icons are already 512 x 512 px.
Simplify the mark for the smallest size
MDN recommends versions with less detail where the icon is small. At 16 px you have 256 pixels to work with, so a full logo with a name is hard to read, and a symbol alone stands a better chance.
Check light and dark tab strips
A dark mark with no background can vanish on a dark theme, and a light one on a light theme. An outline, a solid background or an adaptive SVG helps.
Give the maskable icon a margin
The important part of the mark must fit in a circle with a radius of 40% of the icon width. The outer 10% may get cut off, and the background should be solid.
Keep PNG and ICO next to SVG
MDN advises keeping PNG versions for systems and small sizes, and the Google Search format list does not name SVG. The icon address should not change often either.
Favicon questions
Does your logo get lost at small sizes?
Logo design covers the mark, colour versions and vector files, and starts from 1,200 PLN net.