PWA and Web App Manifest Icons
A Progressive Web App does not get its Home Screen icon from a single favicon.ico. Browsers read a web app manifest, Safari still looks for apple-touch-icon, and Android launchers may crop whatever you give them unless you also ship a maskable icon. This guide walks through the files, the HTML and a real manifest.webmanifest so an installable app shows the right artwork on iPhone, Android and the desktop.
The files you actually need
The short favicon list for a marketing site is in our favicon sizes guide. A PWA adds a few more, and the manifest has to describe them precisely. A solid set in 2026 looks like this:
| File | Size | Role |
|---|---|---|
favicon.ico | 16, 32 and 48 px (multi-size ICO) | Browser tabs and older clients. Place it at the site root if you can. |
favicon-32x32.png | 32 × 32 | Modern tab icon via <link rel="icon">. |
apple-touch-icon.png | 180 × 180 | Safari Home Screen and some iOS share sheets. Prefer an opaque PNG; iOS used to fill transparency with black. |
icon-192x192.png | 192 × 192 | Minimum installable icon in Chromium. Purpose any. |
icon-512x512.png | 512 × 512 | Splash screens and high-density launchers. Purpose any. |
maskable-icon-192x192.png and maskable-icon-512x512.png | 192 and 512 | Opaque, subject inside the safe zone, "purpose": "maskable". |
safari-pinned-tab.svg (optional) | Vector, monochrome | Older Safari pinned tabs via rel="mask-icon". |
Our generator’s Web favicons option produces favicon.ico, PNG favicons, a 180 px Apple touch icon, 192/512 Android Chrome icons, site.webmanifest and an HTML snippet. The PWA / maskable option adds 192 and 512 “any” and maskable icons, with artwork scaled into the central 80%, plus a manifest-icons.json fragment you can merge into your real manifest. Prepare the 1024 px source as described in the source file guide.
HTML in the document head
Put the links on the pages that can be installed — at least the start URL, and usually the whole site. Paths in this example assume the files live at the site root:
<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" href="/apple-touch-icon.png">
<link rel="manifest" href="/manifest.webmanifest">
<meta name="theme-color" content="#111827">
<!-- Optional: older Safari pinned tabs -->
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#111827">
A few details that cause odd bugs:
rel="manifest"can point atmanifest.webmanifestorsite.webmanifestormanifest.json. The file must be served withapplication/manifest+json(or a JSON content type that browsers accept) and must be reachable without a login.- On iOS, also consider
apple-mobile-web-app-capable/mobile-web-app-capableonly if you intend a standalone Home Screen experience. That is separate from the icon, but people often change both at once. - Do not list a 180 × 180 file as
rel="icon"only and assume Safari will use it as the touch icon. Keep the explicitapple-touch-iconlink.
A complete manifest icon block
The rest of the manifest (name, short_name, start_url, display, theme_color, background_color) is required for a good install, but the icon entries are what this page focuses on. A compact, valid set:
{
"name": "Example App",
"short_name": "Example",
"start_url": "/",
"display": "standalone",
"background_color": "#111827",
"theme_color": "#111827",
"icons": [
{
"src": "/icon-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/icon-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "/maskable-icon-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/maskable-icon-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
}
Do not combine "purpose": "any maskable" on a single file unless that file truly works both as a padded “any” icon and as a full-bleed maskable icon. Those two layouts conflict: an “any” icon often already has padding, and a maskable icon should fill the canvas. Two files are clearer and are what Chromium recommends.
src paths are resolved relative to the manifest URL, not always the home page. If the manifest lives at /app/manifest.webmanifest, a value of icon-512x512.png points at /app/icon-512x512.png. Leading slashes from the site root avoid that surprise.
Maskable icons and the 80% safe zone
Android and some other launchers apply a mask: circle, squircle, rounded square, or a vendor shape. If your logo touches the edges of a 512 × 512 file, the corners get cut off. A maskable icon is drawn full-bleed on an opaque brand-color background, with the important artwork inside the safe zone.
Per web.dev, that safe zone is a circle centered on the icon whose radius is 40% of the icon’s width — in other words, the central 80% diameter. The outer 10% of the square on each side may be cropped and should only contain background color.
- Fill the entire 192 and 512 canvas with an opaque color. Transparency in a maskable icon can become black or show as a hole, depending on the launcher.
- Scale the logo so it sits comfortably inside that circle, not just inside a square that is 80% wide. The corners of an 80% square still fall outside the circle.
- Do not pre-round the canvas. The launcher supplies the mask, the same way iOS does for app icons.
Chrome DevTools has a maskable preview: open Application → Manifest and use the control that shows only the minimum safe area. If the logo is clipped there, it will be clipped on a phone too.
Safari: apple-touch-icon and pinned tabs
When someone adds your PWA or site to the Home Screen in iOS Safari, Safari has long preferred apple-touch-icon over the web app manifest. That is why a PWA can look perfect in Chrome and still show a screenshot of the web page — or a tiny favicon — on an iPhone.
- Provide
/apple-touch-icon.pngat 180 × 180 pixels, square, ideally flattened onto a solid background. iOS has historically composited transparent touch icons on black. - Link it with
<link rel="apple-touch-icon" href="/apple-touch-icon.png">. You can omitsizesif you only ship 180. - Do not rely on the old convention of a silent
/apple-touch-icon.pngrequest with no link tag. Include the tag.
For older Safari pinned tabs, a monochrome SVG plus a color works like this:
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#4f46e5">
The SVG should be a single solid shape, not a full-color logo. The color attribute is the fill Safari uses. This is optional; skip it if you do not have a simple glyph.
How to test
- Open each icon URL directly in the browser and confirm it is 200, the right pixel size, and not an HTML error page.
- In Chrome (or Edge), open DevTools → Application → Manifest. You should see the 192 and 512 icons, no 404s, and a sensible maskable preview.
- Run Lighthouse (or a Chromium installability check) on the start URL. A missing 192/512 pair, a non-installable manifest, or an unreachable icon will be listed there.
- On an Android device, install the PWA and look at the launcher, the app drawer and a circular-icon launcher if you have one.
- On an iPhone, use Safari’s Add to Home Screen and confirm it uses the 180 px touch icon, not a page screenshot.
- After a change, test in a private window. Favicons and Home Screen icons are cached aggressively. Request indexing again in Search Console only if you also care about the favicon next to search results, as covered in the favicon guide.
When you want every web and PWA file produced from one 1024 × 1024 source, use the free icon generator and merge the included snippet and manifest-icons.json into your site. If you also ship native apps, the iOS vs Android checklist helps keep the PWA icon in the same family as the store icons.
Frequently asked questions
What is the difference between purpose "any" and "maskable"?
Icons marked "any" (or with no purpose) are shown as-is, usually with their own padding already in the file. Icons marked "maskable" may be cropped into a circle, squircle or rounded square by the launcher, so the subject must sit inside the central safe zone and the background must be opaque. Ship both, and let the browser pick.
Do I still need apple-touch-icon if I have a web app manifest?
Yes, if you care about Safari on iOS. Safari has historically ignored manifest icons when adding a site to the Home Screen and used apple-touch-icon instead. Provide a 180 × 180 PNG, preferably opaque, and link it from the document head as well as any manifest entry.
Is favicon.ico enough for a PWA?
No. A PWA that should be installable needs at least 192 × 192 and 512 × 512 PNG icons in the manifest. favicon.ico still helps browser tabs and older clients, but it does not satisfy installability checks in Chromium-based browsers.
Do Safari pinned tabs still need a monochrome SVG?
Pinned-tab mask icons are optional in 2026. Safari used <link rel="mask-icon"> with a monochrome SVG and a color attribute. If you already have a simple glyph, adding one is cheap and looks better in older pinned-tab and some tab-overview contexts, but it is not required for a PWA to install.