Introduction
manifest.json is the file every browser extension has at its top
level. It is what makes a folder an extension: its name and version, the permissions
it asks for, and the scripts and pages it uses. It is used by Chrome and the other
Chromium browsers, and by Firefox and Safari, which follow the same WebExtensions
design. In a package it sits at the top of a
.crx or .xpi file.
The file is JSON, and MDN notes it may
also contain // comments. A file dropped on any page of this site, and
named manifest.json with a manifest_version, opens in the
explorer with its permissions and keys explained.
Structure
The file holds one JSON object. Only three keys are required on every browser.
{
"manifest_version": 3,
"name": "Sample Extension",
"version": "1.0",
"description": "A sample",
"icons": { "128": "icon.png" },
"action": { "default_popup": "popup.html" },
"background": { "service_worker": "worker.js" },
"permissions": ["storage"],
"host_permissions": ["https://*.example.org/*"]
}
| Key | Required by | Holds |
|---|---|---|
manifest_version | every browser | The manifest’s format: 2 or 3. |
name | every browser | The extension’s name. |
version | every browser | The extension’s version. |
description | Chrome Web Store | A description. |
icons | Chrome Web Store | Icons, as a map from size to file. |
The rest of the format is described on these pages:
- Keys – every key, and the structure of the main ones
- Permissions – what each permission allows, and the host permissions
Manifest versions
Chrome supports only Manifest V3 now. Chrome 139 removed Manifest V2, and the remaining Manifest V2 extensions were removed from the Chrome Web Store on 31 August 2026. Firefox supports both.
| Key | Manifest V2 | Manifest V3 |
|---|---|---|
| Toolbar button | browser_action, page_action | action |
| Background | background.page or background.scripts | background.service_worker in Chrome; Firefox uses background.scripts |
| Host permissions | In permissions and optional_permissions | In host_permissions and optional_host_permissions |
web_accessible_resources | A list of file paths, open to every site and extension | A list of objects, each saying who may use the files |
content_security_policy | A string | An object with extension_pages and sandbox |
Not described
Known, not yet covered
- Viewer: a few top-level keys that Chromium’s feature list names but the Chrome and MDN reference pages do not describe still have no table and are listed as raw JSON in “Other keys”:
about_page,action_handlers,app,back_forward_cache,bluetooth,display_in_launcher,display_in_new_tab_page,icon_variants,kiosk_secondary_apps,message_serialization,mime_types,mime_types_handler,natively_connectableandusb_printers. The Firefox language pack keys are not tabled either.cross_origin_resource_policyis not a manifest key in either reference, so it also falls there. Every other key in the two references has a table; see the keys page. - Reference: the files a manifest names are not described:
_locales/<language>/messages.json(the translated strings behind__MSG_name__values), the update manifest thatupdate_urlpoints to, and the schema file named bystorage.managed_schema. Only Chrome and Firefox are followed: Microsoft Edge, Opera and Safari keys are not described. - Viewer: the permission names that are not in the explorer’s tables (taken from Chrome’s and MDN’s lists) are reported as
Not in Chrome’s or Firefox’s permission lists
, with no meaning; permissions added after the tables were written fall here. The manifest is not checked against a schema, so a wrong type or an unknown key is shown, not reported.
Also used for
- GeoJSON – Map points, lines and areas with properties, written as JSON.
- Hugging Face model config (config.json) – config.json: a model’s architecture and sizes, read before the weights.
- Hugging Face tokenizer (tokenizer.json) – tokenizer.json: a language model’s vocabulary and tokenising rules.
- JSON Schema – A JSON document that describes and validates other JSON documents.
- JavaScript Object Notation – Text format for objects, arrays, strings, numbers and booleans.
- Lottie animation – Vector animations as JSON, exported from After Effects and played in apps and web pages.
- Visual Studio Code settings – VS Code’s settings.json: dotted setting IDs in JSON with comments.
- jCal: iCalendar in JSON – iCalendar as JSON: events, to-dos and time zones as nested arrays.
- jCard: vCard in JSON – vCard 4.0 contacts as JSON: names, numbers and addresses as arrays.
- npm package manifest (package.json) – A JavaScript package’s name, version, scripts and dependencies, in JSON.
Links
Software
- Google Chrome – reads the manifest of a Chrome extension (Windows, macOS, Linux)
- Firefox – reads the manifest of a WebExtension (Windows, macOS, Linux)
- Safari – Apple’s browser, which also runs WebExtensions (macOS, iOS)
Reference
- Manifest file format – Chrome’s reference to every key
- manifest.json – MDN’s reference for WebExtensions