Back to the blog
For makers10 min read

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.

A stylised JSON file next to a row of app icons in growing sizes, the largest with a circular safe zone

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

FieldWhat it doesAdvice
`name`The full app name, shown on install and splash screensKeep it recognisable; browsers may truncate long names
`short_name`The label under the iconAim for around 12 characters or fewer
`id`A stable identity for the appSet it explicitly (for example "/") so changing `start_url` does not create a different app
`start_url`The page that opens when the app launchesMust be inside scope and return 200; add a query parameter to measure installs
`scope`The URLs that belong to the appLinks 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 orientationLeave it out unless the app really needs one
`theme_color`Colours the title bar or status areaMatch your brand; also set the theme-color meta tag
`background_color`The splash screen colour while the app loadsMatch the first screen to avoid a flash
`icons`Icons for install, launcher and splashSee the next section
`screenshots`Images for a richer install dialogOptional; recommended by web.dev
`description`A short summary shown in install UIOne or two sentences
`lang`, `dir`Language and text directionSet when your app is not English or is right-to-left
`shortcuts`Quick actions from the app iconOptional; for example New note
Fields are read by different browsers differently

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:

SizeUsed forNeeded?
192 × 192Android home screen and launcherYes, required for the install criteria
512 × 512Splash screen and store-style listingsYes, required for the install criteria
512 × 512, purpose maskableAdaptive icons on AndroidStrongly recommended
180 × 180 apple-touch-iconiPhone and iPad Home ScreenRecommended, linked in the page head
32 × 32 and 16 × 16 faviconBrowser tabsRecommended
Any square larger sizeHigh-density screensOptional
  • 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.

01

Start with a 512 × 512 canvas

Fill it entirely with your brand colour or background pattern.

02

Draw a circle guide

Centre it, with a diameter of about 410 pixels, which is 80% of 512.

03

Keep the logo inside the circle

Anything outside might be cut off on some launchers.

04

Export a PNG and declare it

Add it to `icons` with `purpose: "maskable"` and keep a separate `purpose: "any"` icon for other uses.

05

Preview it

Check it in a maskable previewer or in Chrome DevTools, Application, Manifest, which shows icons and warnings.

Do not combine purposes in one file

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

  1. Open Chrome DevTools, then Application, then Manifest. Warnings about missing fields and icon problems appear there, along with the installability status.
  2. 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).
  3. Run the page through the installability test and the PWA checker.
  4. 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.
FAQ

Frequently asked questions

Which manifest fields are required for a PWA to be installable?

According to web.dev: a name or short_name, icons including 192 and 512 pixel sizes, a start_url and a display mode of standalone, fullscreen, minimal-ui or window-controls-overlay, served over HTTPS, without prefer_related_applications set to true.

What size should PWA icons be?

Ship at least 192 by 192 and 512 by 512 pixel PNG icons. Add a 512 by 512 maskable icon for Android, an apple-touch-icon of 180 by 180 for iPhone, and small favicons.

What is a maskable icon?

An icon that fills the entire square so Android launchers can crop it to any shape. Keep the important artwork inside the central safe zone, a circle with a diameter of 80% of the icon.

Should the file be called manifest.json or manifest.webmanifest?

Either works as long as you link it with rel="manifest" and it is served as valid JSON. The .webmanifest extension is the conventional one.

Does iOS use the manifest?

Apple's engine uses the manifest members it supports, including icons when defined. It is still worth adding an apple-touch-icon, and a manifest is no longer strictly required for a site to open as a web app on iOS 26.