Decompiling .CHM files

The HTML Help Studio tool provides an easy way to extract source files ("decompile") from a compiled Microsoft HTML Help file (.CHM). This is especially useful if you have a copy of the .CHM file, but do not have any of the source files. You can easily extract HTML topics (.HTM), images (e.g., .GIF or .JPG), style sheets (.CSS), indexes (.HHK), tables of contents (.HHC) browse sequences (.BRS), and glossaries (.GLO) with this tool.

To decompile a .CHM file:

  1. From the Tools tab, double-click HTML Help Studio.

  2. Navigate to the drive/folder where the .CHM file is located and double-click to select it.

The HTML Help Studio dialog opens. It displays a list of files that are included in the compiled .CHM file. Everything is organized according to the folder structure used in the project source files.

Folders that display plus boxes contain files. Click the plus box to open the folder and view the files it contains.

  1. To view a file, select it from the list. Its content is displayed in the pane at the right side of the dialog.

Note: For certain types of files, the File Download dialog opens, and you can choose to open or download the file.

  1. Use the buttons across the top to navigate.

  1. Extract the files you want to use from the .CHM by doing one of the following:

  1. In Extract To, select a destination for the file(s).

  2. If the destination folder (where you are extracting to) includes files with the same names as the ones you are extracting, select Overwrite Existing Files.

Tip: If you don't want to overwrite existing files, create a temporary destination folder and save the extracted files in this folder. After you've had a chance to review them, you can import them into your project folders.

  1. Click Extract.