Esta página ainda não está disponível em Português, por isso está a ler a versão em inglês.

The web app manifest: every field explained

The JSON file that makes a site installable.

Manifesto do app web Iniciante 3 min de leitura Revisado em 27 de nov. de 2026

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

FieldWhat it does
nameFull name, shown in the install dialog and app lists.
short_nameShown under the icon when space is tight. Keep it to about 12 characters.
idThe 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_urlThe page that opens when the app launches. A query string such as ?source=pwa helps analytics.
scopeWhich URLs belong to the app. Links outside it open in the browser. Defaults to the folder of start_url.
descriptionShown in richer install dialogs and app stores.

Details and pitfalls: id, scope and start_url.

Appearance

FieldWhat it does
displayfullscreen, standalone, minimal-ui or browser. See display modes.
display_overrideAn ordered list of modes to try first, such as window-controls-overlay or tabbed.
orientationLock to portrait or landscape when installed. Use any unless you really need a lock.
theme_colorColour of the title bar and status bar. The <meta name="theme-color"> tag in the page overrides it.
background_colorColour of the splash screen while the app loads. Match your page background.
iconsIcons in several sizes, with purpose any or maskable. See icons and maskable icons.

Install experience

FieldWhat it does
screenshotsImages for the richer install dialog in Chrome and Edge. Give form_factor wide for desktop and narrow for mobile.
shortcutsQuick actions on a long-press or right-click of the app icon.
categoriesHints for stores and app lists.
prefer_related_applicationsIf true, the browser suggests your native app instead. Leave it out or false.
related_applicationsYour native apps, for getInstalledRelatedApps().

See richer install UI.

Operating system integration

FieldWhat it doesSupport
share_targetLets the app appear in the system share sheet.Chromium on Android and ChromeOS
file_handlersLets the app open files of given types.Chromium desktop
protocol_handlersLets the app handle links such as web+recipe://.Chromium desktop
launch_handlerDecides whether a launch opens a new window or reuses one.Chromium
edge_side_panelLets 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 sizes says.
  • A start_url outside the scope: browsers ignore the manifest.
  • Changing start_url without an id: 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.

Compatibilidade de navegadores

Compatibilidade dos navegadores com recursos de PWA
RecursoChrome / Edge desktopChrome AndroidSafari iOS / iPadOSSafari macOSFirefox desktopFirefox AndroidSamsung Internet
Web app manifest Chrome / Edge desktop: Sim Chrome Android: Sim 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: Sim
Install from the browser Chrome / Edge desktop: Sim (Address bar icon and menu) Chrome Android: Sim (Installs a WebAPK) Safari iOS / iPadOS: Sim (Share > Add to Home Screen (manual)) Safari macOS: Sim (File > Add to Dock (Safari 17+)) Firefox desktop: Parcial (Windows only, Firefox 143+) Firefox Android: Sim (Add to Home screen) Samsung Internet: Sim
App shortcuts Chrome / Edge desktop: Sim Chrome Android: Sim Safari iOS / iPadOS: Não Safari macOS: Não Firefox desktop: Não Firefox Android: Não Samsung Internet: Sim
Share target (receive shares) Chrome / Edge desktop: Parcial (ChromeOS, and Edge on Windows) Chrome Android: Sim Safari iOS / iPadOS: Não Safari macOS: Não Firefox desktop: Não Firefox Android: Não Samsung Internet: Sim

Ver a tabela completa

Perguntas frequentes

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.