Most sites need four favicon image files. These are a favicon.ico that contains 16×16, 32×32 and 48×48 images, a 180×180 PNG for iPhone and iPad home screens, and 192×192 and 512×512 PNGs listed in a web app manifest for Android and installable web apps. An SVG icon is an optional fifth file for browsers that support it.
The quickest route is to design one 512×512 master, export the smaller sizes from it, and add four lines of HTML to your page's <head>.
Favicon sizes at a glance
| Size (px) | Format | Where it shows up | How the browser finds it |
|---|---|---|---|
| 16×16 | ICO or PNG | Browser tabs and bookmarks on standard-density screens | Inside favicon.ico, or <link rel="icon"> |
| 32×32 | ICO or PNG | Browser tabs on high-density (Retina) screens | Inside favicon.ico, or <link rel="icon"> |
| 48×48 | ICO or PNG | Desktop shortcuts and other places that want a slightly larger icon | Inside favicon.ico, or <link rel="icon"> |
| 180×180 | PNG | iPhone and iPad home screen ("Add to Home Screen") | <link rel="apple-touch-icon"> |
| 192×192 | PNG | Android home screen shortcut, installed web app icon | Web app manifest |
| 512×512 | PNG | Install prompts and splash screens for installable web apps | Web app manifest |
| Any (vector) | SVG | Tabs in browsers that support SVG favicons; scales to any size | <link rel="icon" type="image/svg+xml"> |
You can skip the long lists of Apple sizes (57, 60, 72, 76, 114, 120, 144, 152) that older pages give. Current iOS uses the 180×180 icon and scales it down where needed. Windows tile sizes, browserconfig.xml and Safari's old mask-icon file can go too. They served features that are retired or no longer need a separate icon.
Which sizes you actually need
Pick your set based on what your site does:
- Any website:
favicon.ico(16, 32 and 48 inside) plus a 180×180 Apple touch icon. That covers browser tabs, bookmarks and iOS home screens. - Sites people might add to an Android home screen, or a progressive web app (PWA): add the 192×192 and 512×512 PNGs in a manifest. These are the two sizes Chrome uses for home-screen icons and install prompts.
- Sites that want a sharp icon at every zoom level, or a dark-mode version: add an SVG favicon and keep the ICO as the fallback.
Google Search shows your favicon next to your results. Google's favicon guidelines require a square icon and recommend one larger than 48×48. The icon should be served at a stable URL that Googlebot is allowed to crawl.
Design for 16 pixels, not 512
People mostly see a favicon at 16 or 32 pixels, and at that size a full logo turns into a smudge. These hold up at small sizes:
- One letter, a monogram or a single simple shape
- Strong contrast between the mark and the background
- Thick strokes (thin lines vanish below 32 px)
- No taglines, and no words longer than two characters
Design the 512×512 master with the 16 px version in mind. Then check the small export before you ship it. If the small one is unreadable, simplify the master. Sharpening the small file won't fix it.
For the Apple touch icon, use a solid background. iOS rounds the corners itself and doesn't keep transparency, so transparent areas can show up black.
ICO vs PNG vs SVG
| Format | What it holds | Browser support | Use it for |
|---|---|---|---|
| ICO | Several bitmap sizes in one file (typically 16, 32, 48) | Every browser, including old ones | favicon.ico at your site root, the universal fallback |
| PNG | One size per file, supports transparency | All current browsers | Apple touch icon, manifest icons, or tab icons via <link> tags |
| SVG | Vector shapes that scale to any size | Chrome, Edge and Firefox; Safari's support has historically lagged | Optional sharp tab icon, with dark-mode styling |
There's a reason to keep an ICO even now. Browsers, feed readers and other tools request /favicon.ico from your site root by default, even when your HTML points elsewhere. If the file isn't there, they get a 404. One ICO with three sizes inside solves that.
SVG favicons can do one thing the other formats can't: switch colors in dark mode with a CSS media query inside the file.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<style>
circle { fill: #111111; }
@media (prefers-color-scheme: dark) { circle { fill: #ffffff; } }
</style>
<circle cx="16" cy="16" r="14"/>
</svg>For more on how the two kinds of image differ, see vector vs raster images.
HTML link tags
Put the files in your site's root folder and add these lines inside <head> on every page:
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">What each line does:
- The ICO line is the fallback. Marking it
sizes="32x32"tells browsers it's a small bitmap, so browsers that support SVG favicons choose the SVG instead. - The SVG line is the sharp, scalable icon. Delete it if you don't have an SVG.
- The Apple touch icon line points to your 180×180 PNG. You don't need a
sizesattribute when you provide one file. - The manifest line points to a JSON file that lists your Android and PWA icons.
If you'd rather not make an ICO, PNG tags work in every current browser:
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">Browsers will show your icon. Tools that request /favicon.ico directly will still get a 404.
The manifest file
Save this as site.webmanifest in your root folder, then change the names and paths to match your site:
{
"name": "Your Site Name",
"short_name": "YourSite",
"start_url": "/",
"display": "standalone",
"icons": [
{ "src": "/icon-192.png", "type": "image/png", "sizes": "192x192" },
{ "src": "/icon-512.png", "type": "image/png", "sizes": "512x512" },
{ "src": "/icon-maskable-512.png", "type": "image/png", "sizes": "512x512", "purpose": "maskable" }
]
}The third icon is optional. Android crops app icons into circles, squircles and other shapes. Marking an icon "maskable" tells Android the image was designed to be cropped that way. Keep the important part of a maskable icon inside the central circle, whose diameter is 80% of the icon's width, and fill the whole square with your background color. If you don't provide a maskable icon, Android shrinks your regular icon and places it on a white background.
Generating all sizes at once
You need one source image and a way to export it at each size. These are the main routes:
| Method | Output | Cost | Good for |
|---|---|---|---|
| Picify Favicon tool | PNG at 16, 32, 48, 180, 512 | Free account | Designing a simple letter or icon favicon in the browser |
| RealFaviconGenerator | Icons for desktop browsers, iOS, Android and Windows | Check the site for current pricing | A full cross-platform set, including build-tool workflows |
| ImageMagick (Terminal) | ICO from your PNGs | Free | Building favicon.ico yourself |
| Your CMS or framework | Link tags (plus resized copies on WordPress) from files you provide | Included | WordPress and Next.js sites |
With Picify's Favicon tool
We make Picify. Its Favicon tool runs in your browser, and your design isn't uploaded anywhere. Downloading requires a free Picify account.
- Open the Favicon tool.
- Pick a template: Letter/Initial, Icon, Gradient or Minimal.
- Fill in the fields and choose your colors. The design canvas is 512×512.
- Download the set, and sign in when asked. You get PNG files at 16, 32, 48, 180 and 512 pixels.
- Open the 16 and 32 px files at actual size and check that they still read clearly.
The tool leaves a few gaps. Here's how to fill them:
- No 192×192 file. Open the 512 export in the Image Resizer, keep the aspect ratio locked, set the width to 192, choose PNG and download.
- No ICO or SVG output. Combine the 16, 32 and 48 PNGs into an ICO with ImageMagick (below), or use the PNG link tags instead.
- No maskable version. If you want one, make a separate 512×512 version with extra padding around the mark.
If you're starting from an existing logo, use a version with a transparent background. It works better than a logo sitting on a white box.
With RealFaviconGenerator
RealFaviconGenerator creates the icons needed for desktop browsers, iPhone and iPad, Android and Windows. It also comes as a Node.js command-line tool, Grunt and Gulp plugins, a Ruby on Rails integration and a WordPress plugin. That's useful if favicon generation is part of your build process. As of November 2026 we couldn't confirm its pricing on the official site, so check there first.
Its FAQ says it's meant for people who want a quick result rather than fine control over every file. A third-party source reports that it processes images on its servers rather than in your browser.
By hand with ImageMagick
If you have ImageMagick installed, one command combines your small PNGs into a single multi-size ICO. Run it in the folder that contains the PNGs, and swap in your own file names.
This overwrites any existing favicon.ico in that folder.
magick favicon-16.png favicon-32.png favicon-48.png favicon.icoThis writes all three images into one favicon.ico. To undo it, delete the new file. On ImageMagick 6, use convert in place of magick.
If your CMS or framework handles it
- WordPress: the Site Icon setting asks for a square image at least 512×512. It generates the smaller sizes and the tags for you. Upload your 512 PNG there and don't add your own tags on top.
- Next.js (App Router): put
favicon.ico,icon.png(oricon.svg) andapple-icon.pngin theappfolder. Next.js adds the link tags for you.
If your favicon doesn't show up
The old icon still shows after you changed it. Browsers cache favicons aggressively. Open the icon's URL directly (for example yoursite.com/favicon.ico), reload it, then reload your page. For returning visitors, rename the file or add a version to the link, such as href="/favicon.ico?v=2".
No icon at all in the tab. Check that the link tag is inside <head> and that the path is right (a leading / means the site root). Then open the file's URL. A 404 there means the file isn't where the tag says.
It looks blurry or muddy. You're seeing a detailed logo scaled down too far. Simplify the design to one shape or letter, with thicker strokes and stronger contrast. Export each size separately instead of letting the browser shrink a 512 px image.
The iPhone home screen shows a screenshot of the page. iOS didn't find an Apple touch icon. Add the 180×180 PNG with the apple-touch-icon tag, or name it apple-touch-icon.png and put it in the site root.
The iPhone icon has a black background. The PNG has transparent areas. Export it again with a solid background color.
Google Search shows a generic globe or an old icon. Make sure the favicon is square, linked from your home page and not blocked in robots.txt. Google picks up changes when it recrawls your site, and that can take a while.
The Android icon is cropped or sits on a white background. Add a maskable icon with the mark inside the central 80% circle, or add padding to your regular 192 and 512 icons.
FAQ
What is the standard favicon size?
A browser tab shows the favicon at 16×16 on standard screens and 32×32 on high-density screens. Design at 512×512 and export down, so every size comes from the same master.
Do I still need favicon.ico?
Current browsers don't need it, because they read PNG and SVG from your link tags. Keep one anyway as the fallback for old browsers and for tools that request /favicon.ico directly.
Is rel="shortcut icon" still needed?
No. rel="icon" is the standard. The "shortcut" keyword was only ever needed by old versions of Internet Explorer.
To learn what a favicon is and where browsers use it, read what is a favicon. Your site also needs an image for link previews, covered in Open Graph image size. If you're shipping an app too, see App Store screenshot sizes.