.htm File — HyperText Markup Language
text/html
Drop any file to identify its extension and type — runs entirely in your browser
Drop a .htm file here or click to choose
Or drop any file to identify its extension
text/htmlQuick Facts
| Extension | .htm |
| Full Name | HyperText Markup Language |
| MIME Type | text/html |
| Category | Web |
| Type | Text-based (human-readable) |
| Typical Size | 1 KB – 500 KB |
| First Appeared | 1991 |
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
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.