How to View the Source Code of a Chrome Extension

Published in: Google Chrome

There are two main reasons why you may want to read the source code of any Google Chrome extension (including Web Apps and Chrome Themes):

  1. If the Chrome extension has been created by an unknown developer,  you want to ensure that it does what the description says and nothing more. You would not like to download a Chrome extension on your machine that tracks your search logs or browsing history.
  2. You are learning how to write a Chrome extension (or theme) and are curious to know how some of the good extensions have been written. The licenses of some Chrome extensions may even allow code reuse with attribution.

Google Chrome extensions and web apps are distributed as CRX files but they are standard ZIP files that you can easily extract using WinZip or any of the other unzip utilities. For instance, here’s the Chrome App for Angry birds – right-click and save this file as .zip to view all the HTML, CSS, JS and image files that make this popular extension.

If you would like to see the source code of a Chrome Extension, the easiest option would be that you open the local Chrome folder on your computer, switch to the Extensions directory and there you’ll find a separate folder for each of the installed Chrome extensions and apps.

The path of Chrome’s extension folder in Windows is:

C:\\Users\\user\\AppData\\Local\\Google\\Chrome\\User Data\\Name\\Extensions

chrome extensions

Download Chrome Extensions with a Bookmarklet

Alternatively, if you would like to view the source of a Chrome extension but without installing it on your computer, here’s a bookmarklet that will help help.


Drag the bookmarklet link to your bookmarks toolbar and while you are on the extensions page of Google Chrome, just click the bookmarklet to see the direct download link of the .crx file. You should right-click and save the .crx file with a .zip extension (or use any download manager) else the file will open in Chrome.

The same trick will also help you extract Google Chrome themes since they are also packaged using the same CRX format.

📮  Subscribe to our Email Newsletter for Google tips and tutorials!
Published in: Google Chrome

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
Amit Agarwal

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch

Google Add-ons

Do more with your Gmail and GSuite account

We build bespoke solutions that use the capabilities and the features of Google Workspace for automating business processes and driving work productivity.

  1. Mail Merge with Attachments
    Send personalized email to your Google Contact with a Google Sheet and Gmail
  2. Save Emails and Attachments
    Download email messages and file attachments from Gmail to your Google Drive
  3. Google Forms Email Notifications
    Send email notifications to multiple people when a new Google Form is submitted
  4. Document Studio
    Create beautiful pixel perfect documents merging data from Google Sheets and Google Forms
  5. Creator Studio for Google Slides
    Turn your Google Slides presentations into animated GIFs and videos for uploading to YouTube