CHTML File Extension

CHTML file icon

Compact HTML Document

What is a CHTML file?

Compact HTML Document, identified by the CHTML extension, is a Web Files type and includes 283 files.

CHTML files are supported by Windows, Mac OS and Linux. You can open a CHTML file using one of 11 programs, for example Sublime Text, Notepad++ and TextEdit.

How to open a CHTML file?

The most common reason why a CHTML file cannot be opened is the absence of required software. To fix this, select a compatible program from the list. Then visit the official developer website via the provided link, download the program, and install it on your system.

The most popular programs for working with CHTML files are Sublime Text, Notepad++ and TextEdit. To get the latest version of Sublime Text, open the Sublime HQ Pty website where a universal installer for all operating systems is available.

Once setup is done, your operating system should assign Sublime Text as the default app for CHTML files.

Make Sublime Text the default CHTML viewer

Changing the default program in Windows

  1. Start by right-clicking on your CHTML file and selecting the "Open With" option. From there, click "Choose another app" to continue;
  2. Inside the popup window, scroll through the list of applications and specifically choose Sublime Text as the application to associate with your CHTML file;
  3. Check the "Always use this app" checkbox and click "OK".

Change the default app to open files on Mac

  1. Right click or use Control + Left Click on the desired CHTML file to access a dropdown menu of actions;
  2. Select "Open in application" and click "Other";
  3. Scroll down to the bottom of the window, where you will find the "Enable" menu. Default, "Recommended Programs" will be selected;
  4. In this menu, choose "All Programs" and navigate to Sublime Text. Check the box next to "Always open in app" to make it the default program.

How to edit a CHTML file?

To edit CHTML files, you need to install specialized software that allows you not only to open but also to modify web files. Online CHTML editors usually provide fewer features than software created specifically for Compact HTML Document.

List of Top CHTML editors 2026

Following these criteria, we have put together a list of recommended CHTML editors.

CHTML Editor SoftwareDeveloperPlatformsOverall Rating
TextEditAppleMac OS4.8 out of 5 (40 reviews)
GeditGNOMELinux4.6 out of 5 (38 reviews)
Notepad++Notepad++ TeamWindows4.6 out of 5 (37 reviews)
Sublime TextSublime HQ PtyWindows, Mac OS, Linux4.6 out of 5 (39 reviews)
Windows NotepadMicrosoftWindows4.2 out of 5 (37 reviews)

Finding answers to CHTML file problems

If you encounter issues with CHTML files, don’t worry—most can be fixed with minor software adjustments. Refer to the troubleshooting tips below.

What are the signs that my CHTML file is damaged?

Corrupted CHTML web files may have one or more of the following symptoms:

  • Poor performance when editing a file in Sublime Text;
  • Opening or processing the file in Sublime Text or other programs causes instability or crashes in the program;
  • The file shows errors when trying to open it or does not open completely;
  • Unexpected expansion of the total size of the CHTML file;
  • Working with the file triggers the display of error messages;

Why does Sublime Text quit or crash unexpectedly?

Sublime Text crashes can be attributed to outdated software. Make sure you have installed the latest updates for Sublime HQ Pty products.

A computer restart is often the key to solving numerous common problems. That’s why, it is recommended to restart the computer before making any changes to the software settings.

What methods can be used to repair a damaged CHTML file?

Use a recovery program to open the damaged CHTML file and navigate to the "Repair" menu item. Wait for the recovery process to finish, as it will automatically repair damaged web files.