Web app manifest (manifest.json): every field, icon sizes and maskable icons
A practical guide to the web app manifest: required fields for installability, a complete manifest.json example, PWA icon sizes and how to make maskable icons.

The web app manifest is a small JSON file that tells the browser what your site is called, which icons to use, where to start and how to look when installed. Get it right and your site becomes installable on Android and desktop and looks right on iPhone. Get it wrong and the install option never appears. Here is every field that matters, with a complete example.
If you just need a file, use the manifest generator. If you want to inspect an existing one, the manifest viewer lists every field and flags problems. The rest of this guide explains what the fields mean.
What the browser requires to offer install
According to web.dev, an installable page is served over HTTPS and has a manifest that includes a `short_name` or `name`, `icons` that include a 192 pixel and a 512 pixel icon, a `start_url`, a `display` of `fullscreen`, `standalone`, `minimal-ui` or `window-controls-overlay`, and does not set `prefer_related_applications` to true. Other browsers have similar criteria with minor differences. Everything else is optional but improves the experience.
A complete example
{
"id": "/",
"name": "Example Notes",
"short_name": "Notes",
"description": "Quick notes that work offline.",
"start_url": "/?source=pwa",
"scope": "/",
"display": "standalone",
"orientation": "portrait",
"background_color": "#ffffff",
"theme_color": "#ff3f55",
"lang": "en",
"icons": [
{ "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" },
{ "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" },
{ "src": "/icons/maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
],
"screenshots": [
{ "src": "/shots/home.png", "sizes": "1080x1920", "type": "image/png", "form_factor": "narrow" }
]
}Link it from every page in the head:
<link rel="manifest" href="/manifest.webmanifest">
<meta name="theme-color" content="#ff3f55">
<link rel="apple-touch-icon" href="/icons/apple-touch-icon-180.png">The fields, one by one
| Field | What it does | Advice |
|---|---|---|
| `name` | The full app name, shown on install and splash screens | Keep it recognisable; browsers may truncate long names |
| `short_name` | The label under the icon | Aim for around 12 characters or fewer |
| `id` | A stable identity for the app | Set it explicitly (for example "/") so changing `start_url` does not create a different app |
| `start_url` | The page that opens when the app launches | Must be inside scope and return 200; add a query parameter to measure installs |
| `scope` | The URLs that belong to the app | Links outside scope open in the browser |
| `display` | How the window looks | `standalone` for an app feel; `minimal-ui` keeps a small bar; `browser` opens a normal tab |
| `orientation` | Preferred screen orientation | Leave it out unless the app really needs one |
| `theme_color` | Colours the title bar or status area | Match your brand; also set the theme-color meta tag |
| `background_color` | The splash screen colour while the app loads | Match the first screen to avoid a flash |
| `icons` | Icons for install, launcher and splash | See the next section |
| `screenshots` | Images for a richer install dialog | Optional; recommended by web.dev |
| `description` | A short summary shown in install UI | One or two sentences |
| `lang`, `dir` | Language and text direction | Set when your app is not English or is right-to-left |
| `shortcuts` | Quick actions from the app icon | Optional; for example New note |
Support for the optional fields varies between browsers, and Apple's engine uses what it supports and ignores the rest. The MDN reference is the place to check a specific member before relying on it.
PWA icon sizes: what to ship
Each entry in `icons` declares a file, its pixel size and type. The only sizes required for the install criteria are 192 by 192 and 512 by 512, and the browser scales them for other uses. Shipping a few extras helps in specific places:
| Size | Used for | Needed? |
|---|---|---|
| 192 × 192 | Android home screen and launcher | Yes, required for the install criteria |
| 512 × 512 | Splash screen and store-style listings | Yes, required for the install criteria |
| 512 × 512, purpose maskable | Adaptive icons on Android | Strongly recommended |
| 180 × 180 apple-touch-icon | iPhone and iPad Home Screen | Recommended, linked in the page head |
| 32 × 32 and 16 × 16 favicon | Browser tabs | Recommended |
| Any square larger size | High-density screens | Optional |
- Use PNG for photographic or complex icons, and SVG with `sizes: "any"` for a simple mark if your target browsers accept it.
- Make the file the exact size you declare. A mismatch between `sizes` and the real image can cause the icon to be ignored.
- The `src` path must return 200 and be reachable without login.
- Keep a solid or well-chosen background for the main icon; transparent edges look different on dark and light launchers.
Maskable icons and the safe zone
Android launchers cut icons into a shape (circle, squircle, rounded square). A normal icon with a transparent border gets placed on a white or grey backing. A maskable icon fills the whole square and lets the launcher crop it. You mark it with `"purpose": "maskable"`.
The W3C manifest specification defines the safe zone as the area that is always visible, a circle in the centre with a radius of 40% of the icon width, so a diameter of 80%. Keep your logo inside it and extend the background to the edges.
Start with a 512 × 512 canvas
Fill it entirely with your brand colour or background pattern.
Draw a circle guide
Centre it, with a diameter of about 410 pixels, which is 80% of 512.
Keep the logo inside the circle
Anything outside might be cut off on some launchers.
Export a PNG and declare it
Add it to `icons` with `purpose: "maskable"` and keep a separate `purpose: "any"` icon for other uses.
Preview it
Check it in a maskable previewer or in Chrome DevTools, Application, Manifest, which shows icons and warnings.
You can write `"purpose": "any maskable"`, but one image rarely suits both uses: a maskable icon with a huge background looks oversized when used as a plain icon. Ship separate files.
What iPhone does with your manifest
Apple's engine reads the manifest, and WebKit says that if you define icons in it, they are used, and that giving users a web app experience no longer requires a manifest at all. In practice, add an `apple-touch-icon` link as well, because it remains the most reliable way to set the Home Screen icon on older iOS versions. Read more about the platform in PWAs on iPhone.
Test the manifest
- Open Chrome DevTools, then Application, then Manifest. Warnings about missing fields and icon problems appear there, along with the installability status.
- Fetch the manifest URL directly. It should return 200 with a JSON content type (`application/manifest+json` is conventional, and `application/json` also works in most setups).
- Run the page through the installability test and the PWA checker.
- If the install option is still missing, work through Add to Home Screen missing or not working.
Common mistakes
- A relative `start_url` that points outside the scope or redirects to a login page.
- Icons that return 404 because of a wrong path or a deployment that did not copy the files.
- A `short_name` that is the full sentence of your tagline.
- A manifest served only on some pages, so the install option appears inconsistently.
- Changing `start_url` after launch without setting `id`, which can make browsers see a new app.
- A maskable icon whose logo runs to the edges and gets cropped.