How to View the Source Code of a Chrome Extension

By

Updated

Curious what an extension is actually doing before you install it, or want to learn how a well-built one works? You can view almost any Chrome extension’s source code without writing anything yourself.

How to Download and Unpack an Extension

  1. Find the extension’s ID in its Chrome Web Store URL, the long string of letters after its name.
  2. Use a CRX downloader site to save the extension’s .crx file.
  3. Rename the file extension from .crx to .zip.
  4. Extract the zip file like any other archive to see all the extension’s code, including its manifest.json file.

How to View an Installed Extension’s Files Directly

  1. Go to chrome://extensions.
  2. Turn on Developer mode in the top right corner.
  3. Click Details on the extension, then note the ID shown.
  4. Navigate to your Chrome profile’s Extensions folder and open the folder matching that ID to browse its files.

Quick Tips

  • Reading the manifest.json file first tells you what permissions the extension actually requests, which is often the fastest way to spot something suspicious.
  • Many open-source extensions also publish their code on GitHub, so check there before digging through files manually.

Now you can look under the hood of any Chrome extension, whether you’re checking it’s safe or just curious how it was built.


Discover more from Chrome Story

Subscribe to get the latest posts sent to your email.

About the author

How we report · Send a correction