You can extract and view any Google Chrome extension’s full source code following the following easy steps.

Every Google Chrome extension is basically a CRX file. When you click the “Install” button on the Google Chrome extension gallery you are basically clicking a link of the extension’s CRX file.

The first step is downloading the extension’s CRX file. Instead of clicking it’s link, which will lead to that extension being installed on your browser, right-click the link and choose “Save link as…”.

Now that you have the CRX file on your computer, rename it’s extension from CRX to ZIP. Turns out that every CRX file is a renamed ZIP archive of the extension.

All there is left to do is extract the ZIP archive to the desired destination. The full code of the Chrome extension is there.

Have fun exploring other peoples code!

Search terms:

5 Responses to How To View a Google Chrome Extension’s Full Source Code

  • Pingback: Print Using Google Cloud Print™ – Google Chrome Extension

  • venicerajan says:

    Thank u

  • Jesse Miller says:

    I only get a “Add To Chrome” button and a popup that doesnt allow me to right click to Save As. Am I missing something?

  • Rob says:

    Or after you’ve installed it you can browse to
    %USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Extensions\

    Then go to the wrench menu in Chrome -> Tools -> Extensions.
    Make sure the developer mode checkbox is checked at the top.

    The go to the extension you wish to inspect and copy the ID which will look something like this: fobcpibfeplaikcclojfdhfdmbbeofai

    That ID is the name of the folder in the extensions folder that you want to go into. The .crx is extracted and run from that directory.

  • dammage says:

    it’s helpful, thanks

Subscribe without commenting