How to Create a Chrome Extension (Without Overcomplicating It)
Photo by Ann H on Pexels

7 min read

From the studio

We build apps people actually keep.

Tinkrd is a small indie studio making focused, high-quality apps for everyday life. See what we're working on.

View our apps

Building a Chrome extension is more approachable than most tutorials make it look. You do not need a framework, a build tool, or a team. You need a handful of files, a clear idea of what the extension should do, and about an afternoon to get a working prototype in front of you.

What a Chrome Extension Actually Is

A Chrome extension is a small web app that runs inside the Chrome browser and interacts with pages, tabs, or browser settings. Extensions are built with the same HTML, CSS, and JavaScript you would use on any website. The difference is that Chrome gives them access to special browser APIs that a normal webpage cannot touch.

Every extension has a manifest file that tells Chrome what the extension is, what permissions it needs, and which scripts to load. Starting with Manifest V3, which is the current required format, service workers replace background pages as the long-running logic layer.

If you want a deeper look at the landscape before writing a single line of code, the Chrome extension development overview covers what the process actually involves from research to release.

The Files You Need to Create a Chrome Extension

A minimal Chrome extension requires exactly three things: a manifest file, at least one script or HTML file, and an icon. That is it for a working extension.

The manifest.json file

The manifest is the backbone of every extension. Chrome reads it first and uses it to register everything else.

{
  "manifest_version": 3,
  "name": "My First Extension",
  "version": "1.0",
  "description": "Does one useful thing.",
  "permissions": ["activeTab", "scripting"],
  "action": {
    "default_popup": "popup.html",
    "default_icon": "icon.png"
  }
}

The popup.html file

If your extension has a small UI that appears when you click the toolbar icon, that UI lives in a popup HTML file. Keep it simple. A popup is not a full web app.

<!DOCTYPE html>
<html>
  <body>
    <h2>Hello from my extension</h2>
    <button id='runBtn'>Run</button>
    <script src='popup.js'></script>
  </body>
</html>

The popup.js file

JavaScript handles the logic. In this example, clicking the button injects a script into the active tab.

document.getElementById('runBtn').addEventListener('click', async () => {
  const [tab] = await chrome.tabs.query({ active: true, currentWindow: true });
  await chrome.scripting.executeScript({
    target: { tabId: tab.id },
    func: () => alert('Extension is working!')
  });
});

Loading and Testing Your Extension Locally

Chrome lets you load unpacked extensions directly from your local folder, so you can test without publishing anything.

  1. Open Chrome and navigate to chrome://extensions.
  2. Toggle Developer mode on in the top right corner.
  3. Click Load unpacked and select your project folder.
  4. Your extension appears in the toolbar. Click it to open the popup.
  5. After changing code, click the refresh icon on the extensions page to reload.

The Chrome DevTools inspector works inside popups and content scripts. Right-click your popup and choose Inspect to open it. Service worker logs appear under the extension card on the extensions page, not in the page DevTools.

Choosing the Right Extension Architecture

The structure you choose depends on what the extension needs to do. Most extensions fall into one of three patterns.

Extension type What it does Key files
Popup extension Shows a small UI when the toolbar icon is clicked manifest.json, popup.html, popup.js
Content script extension Reads or modifies the current webpage manifest.json, content.js
Background service worker Runs logic independently of any open tab manifest.json, background.js

Most practical extensions combine two of these. A content script reads the page, a popup displays results, and a service worker handles API calls or timers. We at Tinkrd tend to start with just a popup and add a content script only when the product actually needs it. Scope creep is real even in a 500-line project.

For a fuller walkthrough of building and submitting a finished extension, the guide on how to build and publish a Chrome extension covers the Chrome Web Store submission steps in detail.

Permissions: Ask for Only What You Need

Chrome extension permissions are a trust signal. Users see them before installing, and Google reviewers scrutinize them. Requesting broad permissions like tabs or history when you only need activeTab will slow down review and push users away.

Common permissions and what they actually grant:

The official Chrome permissions reference lists every available permission with explanations. Read it before finalizing your manifest.

Publishing to the Chrome Web Store

Publishing requires a one-time $5 developer registration fee and a Google account. After that, submitting updates is free.

Before uploading, zip your extension folder. Do not include node_modules or any development-only files. The Chrome Web Store accepts a ZIP and runs automated checks immediately. Manual review usually takes a few days for a new extension, sometimes longer if permissions trigger a closer look.

Things that cause rejections:

Write an honest, specific store description. Reviewers read them, and users make install decisions based on them.

Frequently asked questions

Do I need to know JavaScript to create a Chrome extension?

Yes, JavaScript is required for any extension logic. HTML and CSS handle the UI, but the browser APIs that make extensions useful are all JavaScript. A working knowledge of async functions and event listeners will get you through most projects.

How long does it take to build a basic Chrome extension?

A simple popup extension with one clear function can be built and tested locally in a few hours. A more complex extension with content scripts, storage, and a polished UI typically takes a few days of focused work. The Chrome Web Store review adds a few more days before it goes live.

Can I create a Chrome extension for free?

Development is completely free. The only cost is the one-time $5 Chrome Web Store developer registration fee to publish. You can build and test locally with no cost at all.

What is the difference between Manifest V2 and Manifest V3?

Manifest V3 is the current required format for new extensions. It replaces persistent background pages with service workers, tightens permission requirements, and disallows remotely hosted code. Google has sunset V2 support, so any new extension you build should target V3 from the start.

Can a Chrome extension be rejected after publishing?

Yes. Google can remove or reject an extension at any point if it violates policies, even after it is live. Common reasons include newly detected policy violations, user reports, or changes to Chrome’s rules. Keeping your permissions minimal and your privacy policy current reduces this risk.

Creating a Chrome extension is genuinely one of the more beginner-friendly ways to ship a real product that people use daily. Start with a single problem, keep the first version small, and get it in front of users before you add anything else. The browser handles distribution, the platform is already there, and the feedback loop is fast.

We’re building in the open

Tinkrd is a small studio making thoughtful apps for families. Our first app is launching soon.

See what we’re building

T
The Tinkrd Team

We are a small independent app studio in California. We write about what we are learning as we build and ship products, from first commit to first customer.