File extensions

How to open a .htm file

HTML document · Web / text

An .htm file is exactly the same as .html: a web page. Double-click it and your browser opens it. To see the code, open the same file in a text editor.

What a .htm file actually is

HTM and HTML are one format with two spellings. The shorter one dates from early Windows and DOS, which allowed only three characters in an extension.

No browser or editor treats them differently, and renaming one to the other changes nothing.

Why it will not open

It nearly always opens. What surprises people is a saved page that appears without images or styling, because those live in a separate folder that was not copied along with it.

Renaming it to an extension you can open will not help: changing the extension does not convert the file, it only changes what Windows tries to open it with.

Step by step

Windows

  1. 01Double-click, or drag the file onto any browser window.
  2. 02To edit, right-click, choose "Open with", then Notepad, VS Code or Notepad++.
  3. 03If images and layout are missing, look for a folder beside the file with the same name and an "_files" suffix. The page needs it.

macOS

  1. 01Double-click to open in Safari, or drag onto Chrome or Firefox.
  2. 02To edit, open it in TextEdit with Format set to Plain Text so it does not save as styled text.

Programs that open .htm

Our pick, in order. Every one links to the publisher's official download URL and the SHA-256 hash of the installer. Once you have downloaded it, you can check the file against our index before you run it.

If you end up downloading one of these from somewhere other than the publisher, what you can and cannot verify about that is worth two minutes.

Also registers .htm in its manifest

Taken straight from publisher manifests. Some of these handle the format for a narrow purpose rather than as their main job.

Common questions

Is .htm the same as .html?
Yes, identical. The three-letter spelling is a leftover from DOS and early Windows extension limits. Every browser and editor treats them the same way.

Related formats