Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how do I convert CHM files int one xhtml file?

share|improve this question
on what operating system? – John T Dec 6 '09 at 2:35
up vote 2 down vote accepted

if you're using Windows:

1. extract the HTML files from the CHM container from the command prompt with HH.EXE


HH.EXE -decompile C:\Temp\decompile-folder C:\Temp\yourCHM.chm

2. merge the HTML files into a single file (e.g. with SoftSnow Merger)

3. convert the HTML file to XHTML (e.g. with Simpletidy)

or, if you don't mind spending $19.95, you can use ABC Amber CHM Converter:

reads CHM files and converts them to PDF (doesn't require Adobe Acrobat to be installed), HTML (single file and web-site), RTF (MS Word doesn't need to be installed), HLP, TXT (ANSI and Unicode), DOC (MS Word), DBF, MDB (MS Access), CSV, XML, XLS (MS Excel), Clipboard

share|improve this answer
Keep in mind, HTML and XHTML ( ) are 2 different things. Similar, but different. – John T Dec 6 '09 at 2:51
yup, just got that :) – Molly7244 Dec 6 '09 at 2:52
It does't preserve original order of pages. It just merges HTMLs in alphabetic order of names of html files which is not necessarily how it structured logically. – expert Mar 4 '12 at 23:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.