The web app manifest is a JSON file that describes your app to the browser and the operating system. It decides the name under the icon, the icon itself, the splash screen colours, the page the app opens on and whether it opens in a window or a tab.
Link it from every page:
<link rel="manifest" href="/manifest.webmanifest">
Serve it with the application/manifest+json content type (application/json also works). The file name does not matter; manifest.webmanifest and manifest.json are both common.
A complete example
{
"id": "/",
"name": "PWA.live",
"short_name": "PWA.live",
"description": "The independent reference for Progressive Web Apps.",
"start_url": "/?source=pwa",
"scope": "/",
"display": "standalone",
"display_override": ["window-controls-overlay", "standalone"],
"orientation": "any",
"background_color": "#F4F6FB",
"theme_color": "#5A0FC8",
"lang": "en",
"dir": "ltr",
"categories": ["developer", "education"],
"icons": [
{ "src": "/icons/192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/icons/512.png", "sizes": "512x512", "type": "image/png" },
{ "src": "/icons/maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
],
"screenshots": [
{ "src": "/shots/wide.png", "sizes": "1280x800", "type": "image/png", "form_factor": "wide", "label": "Home screen" },
{ "src": "/shots/narrow.png", "sizes": "750x1334", "type": "image/png", "form_factor": "narrow", "label": "On a phone" }
],
"shortcuts": [
{ "name": "PWA checker", "url": "/tools/pwa-checker/", "icons": [{ "src": "/icons/s-check.png", "sizes": "96x96" }] }
]
}
This site's own manifest is at /manifest.webmanifest.
Identity and launch
| Field | What it does |
|---|---|
name | Full name, shown in the install dialog and app lists. |
short_name | Shown under the icon when space is tight. Keep it to about 12 characters. |
id | The app's permanent identity. If you omit it, browsers use start_url, which breaks if you ever change it. Set it once and never change it. |
start_url | The page that opens when the app launches. A query string such as ?source=pwa helps analytics. |
scope | Which URLs belong to the app. Links outside it open in the browser. Defaults to the folder of start_url. |
description | Shown in richer install dialogs and app stores. |
Details and pitfalls: id, scope and start_url.
Appearance
| Field | What it does |
|---|---|
display | fullscreen, standalone, minimal-ui or browser. See display modes. |
display_override | An ordered list of modes to try first, such as window-controls-overlay or tabbed. |
orientation | Lock to portrait or landscape when installed. Use any unless you really need a lock. |
theme_color | Colour of the title bar and status bar. The <meta name="theme-color"> tag in the page overrides it. |
background_color | Colour of the splash screen while the app loads. Match your page background. |
icons | Icons in several sizes, with purpose any or maskable. See icons and maskable icons. |
Install experience
| Field | What it does |
|---|---|
screenshots | Images for the richer install dialog in Chrome and Edge. Give form_factor wide for desktop and narrow for mobile. |
shortcuts | Quick actions on a long-press or right-click of the app icon. |
categories | Hints for stores and app lists. |
prefer_related_applications | If true, the browser suggests your native app instead. Leave it out or false. |
related_applications | Your native apps, for getInstalledRelatedApps(). |
See richer install UI.
Operating system integration
| Field | What it does | Support |
|---|---|---|
share_target | Lets the app appear in the system share sheet. | Chromium on Android and ChromeOS |
file_handlers | Lets the app open files of given types. | Chromium desktop |
protocol_handlers | Lets the app handle links such as web+recipe://. | Chromium desktop |
launch_handler | Decides whether a launch opens a new window or reuses one. | Chromium |
edge_side_panel | Lets the app open in Edge's sidebar. | Edge |
See share target and Web Share, file handling and desktop integration.
Common mistakes
- No 512 px icon, or icons that are really a different size from what
sizessays. - A
start_urloutside thescope: browsers ignore the manifest. - Changing
start_urlwithout anid: users end up with two copies of your app. - Caching the manifest forever: browsers check it for updates, so serve it with a short cache time.
Check yours with the manifest validator, or generate one with the manifest generator.
Compatibilidad de navegadores
| Función | Chrome / Edge desktop | Chrome Android | Safari iOS / iPadOS | Safari macOS | Firefox desktop | Firefox Android | Samsung Internet |
|---|---|---|---|---|---|---|---|
| Web app manifest | Chrome / Edge desktop: Sí | Chrome Android: Sí | Safari iOS / iPadOS: Parcial (Name, icons, display, scope, start_url, id; no shortcuts or screenshots) | Safari macOS: Parcial (Used by Add to Dock (Safari 17+)) | Firefox desktop: Parcial (Used by web apps on Windows (Firefox 143+)) | Firefox Android: Parcial (Used by Add to Home screen) | Samsung Internet: Sí |
| Install from the browser | Chrome / Edge desktop: Sí (Address bar icon and menu) | Chrome Android: Sí (Installs a WebAPK) | Safari iOS / iPadOS: Sí (Share > Add to Home Screen (manual)) | Safari macOS: Sí (File > Add to Dock (Safari 17+)) | Firefox desktop: Parcial (Windows only, Firefox 143+) | Firefox Android: Sí (Add to Home screen) | Samsung Internet: Sí |
| App shortcuts | Chrome / Edge desktop: Sí | Chrome Android: Sí | Safari iOS / iPadOS: No | Safari macOS: No | Firefox desktop: No | Firefox Android: No | Samsung Internet: Sí |
| Share target (receive shares) | Chrome / Edge desktop: Parcial (ChromeOS, and Edge on Windows) | Chrome Android: Sí | Safari iOS / iPadOS: No | Safari macOS: No | Firefox desktop: No | Firefox Android: No | Samsung Internet: Sí |
Preguntas frecuentes
Should the file be called manifest.json or manifest.webmanifest?
Either works. The specification suggests the .webmanifest extension, served as application/manifest+json, but browsers accept any name and the application/json type.
Can I have one manifest per language?
Yes. Link a different manifest from each language version, with translated name, short_name and description. Keep the same id if you want them to count as one app, or different ids for separate apps.