Guides · Updated 2026-12-04
The web app manifest: what each field does
The web app manifest is a small JSON file that describes your site to the browser as if it were an app: its name, its icons, its colours and how it should open. Browsers read it to decide whether to offer an install prompt and to build the home screen icon and splash screen.
A site does not need a manifest to work. But if you want people to add it to their home screen, or if you want the right icon and colour on Android, a short manifest does the job. This guide explains the fields worth knowing and the mistakes that stop install prompts from appearing.
Where the manifest lives
The file is usually called site.webmanifest or manifest.json, and is linked from the head of every page. The name is not important, but it should be served with the content type application/manifest+json, or at least application/json, which most hosts do automatically for those extensions.
<link rel="manifest" href="/site.webmanifest">The fields that matter
The specification lists many members, but a handful do nearly all the work. Learn these and you can write a valid manifest from memory.
- name: the full name, shown on the install dialog and the splash screen.
- short_name: a shorter label for the home screen, where space is tight, ideally 12 characters or fewer.
- icons: an array of image objects. At least a 192 and a 512 pixel PNG are needed for installability in Chrome.
- start_url: the page that opens when the app is launched. Make it a real, working URL.
- display: how the app looks. The value standalone hides the browser bar and feels like an app.
- theme_color: the colour of the browser toolbar or status bar around the app.
- background_color: the colour shown on the splash screen while the app loads.
A complete example
This is a small manifest that is valid and installable.
{
"name": "Faviqo Favicon Generator",
"short_name": "Faviqo",
"description": "Generate favicons and app icons in your browser.",
"start_url": "/",
"scope": "/",
"display": "standalone",
"theme_color": "#111827",
"background_color": "#ffffff",
"icons": [
{ "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/icon-512.png", "sizes": "512x512", "type": "image/png" },
{ "src": "/maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
]
}How icons are chosen
The browser picks the icon whose size is closest to what it needs, then scales it. That is why a 192 and a 512 pixel version are both expected: the smaller one serves the launcher, and the larger one is used for the splash screen and for store listings. Always include the sizes and type attributes, so the browser can choose without downloading each file.
Add a maskable icon as a separate entry for Android launchers. See the guide on maskable icons for the safe zone rules.
Colours: theme and background
The theme colour tints the toolbar or status bar when the app is open, and can also tint the tab strip on some browsers. The background colour fills the splash screen between launch and first paint. Choose values that match your icon's background and your page's top bar, so the transitions feel seamless instead of flashing white.
You can also set the theme colour with a meta tag in the HTML, which lets different pages use different colours. The manifest value is the default for the installed app.
<meta name="theme-color" content="#111827">Display modes
Standalone is the most common choice: the site opens in its own window without browser controls. Minimal-ui keeps a small set of controls, fullscreen hides everything and suits games, and browser opens a normal tab. Pick standalone unless you have a reason not to.
If you use standalone, make sure the site has its own navigation. Without a browser back button, users need links inside the page to move around and to leave a dead end.
Why the install prompt does not appear
When Chrome does not offer to install a site, the cause is almost always one of a few items. Check them in order.
- The site is not served over HTTPS. Localhost is the only exception.
- The manifest is missing name or short_name, start_url, or display set to standalone, fullscreen or minimal-ui.
- There is no 192 pixel icon and no 512 pixel icon.
- The manifest link is missing, or the file returns a 404 or HTML.
- The app is already installed, or the user dismissed the prompt recently.
Validating it
Open your browser's developer tools, go to the Application tab and select Manifest. It shows each parsed field, previews the icons and lists warnings for anything that blocks installation. You can also paste the file into Faviqo's manifest checker, which compares it against what install prompts and app stores require and explains each problem in plain terms.
Was this guide helpful?
Questions
Do I need a web app manifest?
Not for a normal website to work. You need one if you want installability, the right home screen icon on Android, or a custom splash screen.
What icon sizes does the manifest need?
A 192 by 192 and a 512 by 512 PNG are the minimum for Chrome's install prompt. Add a maskable icon for Android launchers.
What is the difference between theme_color and background_color?
The theme colour tints the toolbar or status bar around the app. The background colour fills the splash screen while the app loads.
Try it
More guides
- How to add a favicon to your website
- Favicon formats: ICO vs PNG vs SVG
- The Apple touch icon: size, format and common problems
- Favicon not showing or not updating: nine fixes
- Maskable icons explained: the safe zone and how to use it
- How to design a favicon that is readable at 16 pixels
- How to get your favicon to show in Google Search results
- Open Graph image not showing: a checklist that finds the cause
- How to test Open Graph tags before you deploy
- Favicon setup in Next.js, Vite and React