Developer and Text Tools

How to Build a Chrome Extension with Manifest V3

Plan a Manifest V3 browser extension: manifest fields, service workers, content scripts, minimal permissions, install warnings, icons and testing.

Saizul Amin
Saizul Amin2 Nov 2026 · 3 min read
How to Build a Chrome Extension with Manifest V3

How to Build a Chrome Extension with Manifest V3

Building a browser extension is a satisfying way to automate something you do every day in the browser. Since Manifest V3, Chrome, Edge, Brave and Opera share stricter rules: the background page is a service worker, remote code is forbidden, and permissions are shown to users as warnings at install time. This guide explains the decisions you face and how the free browser extension manifest builder helps you make them.

The manifest is the blueprint

manifest.json declares everything: name, version, description, icons, the toolbar action and its popup, the background service worker, content scripts, options page, side panel, keyboard shortcuts, permissions, host permissions and resources pages may load. The Chrome Web Store limits the description to 132 characters and the name to 75, and versions must be one to four numbers without leading zeros. The builder checks all of this as you type.

Choose the right surfaces

A popup is a small page shown when the user clicks your toolbar button; it lives only while open. The service worker reacts to events such as installation, alarms, context-menu clicks and messages, and it is stopped when idle, so keep state in chrome.storage rather than in variables. Content scripts run inside web pages that match your patterns; they can read and change the page but have limited extension APIs. An options page holds settings, and a side panel suits tools that stay open next to a page.

Ask for as little as possible

Every permission has a cost in trust. Some show no warning at all, such as storage, alarms, contextMenus and activeTab. Others show warnings like Read your browsing history for tabs or webNavigation, or Read and change all your data on all websites for broad host access. Users notice these, and so do store reviewers.

The most useful habit is preferring activeTab. It grants temporary access to the current tab after the user clicks your extension, combined with scripting it lets you inject code exactly when needed, and it shows no warning. If you need specific sites, list them as host permissions instead of all URLs. Features that only some users want can use optional permissions, requested at run time with chrome.permissions.request. The builder's warning list shows exactly what users will see for your current choice.

Content scripts and match patterns

Match patterns look like https://.example.com/ or <all_urls>. Choose run_at document_idle unless you must act before the page renders. Scripts normally run in an isolated world with their own JavaScript scope; the MAIN world shares the page's scope, which is needed to read page variables but removes access to chrome APIs and exposes your code to the page.

Icons and assets

Provide icons at 16, 32, 48 and 128 pixels. Simple shapes and strong contrast survive the small sizes. Files that web pages must load, such as images injected by a content script, belong in web accessible resources, limited to the sites that need them.

Test locally

Download the ZIP, unzip it, open chrome://extensions, enable Developer mode and choose Load unpacked. After each change press the reload icon on the extension card. Use the service worker link on that card to open its DevTools console, and the page's DevTools for content scripts.

Before publishing

Write a privacy policy if you handle any user data, prepare store screenshots, and explain every permission in the store listing. Reviews are quicker when permissions are minimal and justified.

Limits

The builder produces a valid manifest and minimal starter files, not a finished extension. Firefox and Safari support most Manifest V3 keys but differ in details, so test in each browser you target. Store policies change over time; read the current developer programme policies before submitting.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages