.htm
🌐 WebText-based

.htm File — HyperText Markup Language

text/html

File Inspector

Drop any file to identify its extension and type — runs entirely in your browser

HTM

Drop a .htm file here or click to choose

Or drop any file to identify its extension

Expected MIME type:text/html

Quick Facts

Extension.htm
Full NameHyperText Markup Language
MIME Typetext/html
CategoryWeb
TypeText-based (human-readable)
Typical Size1 KB – 500 KB
First Appeared1991

What Is a .htm File?

HTM is the shortened file extension for HTML (HyperText Markup Language), originating from the three-character extension limitation in MS-DOS and early Windows systems. HTM and HTML files are completely identical in format, content, and browser rendering — the only difference is the extension length. Both are served with the text/html MIME type and processed by the same HTML parser in web browsers. The .htm extension was common on Windows-based web servers (IIS) and tools throughout the 1990s and 2000s, while Unix-based systems typically used .html. Modern web development overwhelmingly favors the .html extension, but .htm files are still encountered in legacy websites, older content management systems, and Windows-generated web content. Web servers, browsers, and development tools treat both extensions identically. When migrating legacy .htm files to modern systems, no conversion is needed — renaming to .html is purely cosmetic. Both extensions support all HTML features including HTML5, embedded CSS and JavaScript, forms, multimedia, and semantic markup. Search engines index .htm and .html pages equivalently.

How to Open .htm Files

Any web browser
VS Code
Sublime Text
WebStorm
any text editor

Related File Extensions

More Web File Extensions

Other web formats you might encounter

Browse File Extensions by Category

Explore our reference of 259 file extensions with details, programs, and related formats.