.HTA

HTA File

HTML Application
Ask a question
QUICK ANSWER

An HTA file is an HTML Application, a Windows program written in HTML plus VBScript or JScript that runs via mshta.exe with full local privileges. To read one safely, right-click it and choose Edit rather than double-clicking. Treat any unexpected HTA file as potentially hostile, since mshta.exe is a common malware delivery tool.

Developer: Microsoft Category: Executable Files MIME: application/hta
OPENS ON Windows macOS Linux
Related: .APK · .EXE · .VBS · .JAR

On this page

19k+ extensions indexed
Last reviewed Sep 5, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the HTA file format?

.hta (HTML Application) is a type of HTML document file that bundles HTML markup, JScript, and VBScript script into a self-contained desktop application for Windows. Unlike .html files, .hta is not run by web browsers - instead, it is executed on the local machine by mshta.exe, the Microsoft HTML Application Host built into Windows. Microsoft introduced the format in 1999 alongside Internet Explorer 5 as a way to build lightweight GUI tools using familiar web technologies, but with full, trusted access to the operating system rather than a browser's sandboxed environment.

The key distinction from ordinary web pages is privilege: an .hta runs with the same permissions as the logged-in user, with unrestricted access to the Windows registry, file system, COM objects, and ActiveX controls. Window appearance - title, icon, border style, and resize behavior - is configured through the Microsoft-specific <HTA:APPLICATION> element placed inside the document <head>. The file is plain text with no binary magic number; it is identified by its .hta extension and that tag.

Potential risks. Using .hta files from unknown sources carries many risks. Although operating systems and antivirus tools employ various techniques to mitigate those risks, many attacks are conducted purely due to user irresponsibility. Many computer viruses and malware use .hta to change entries in the Windows registry, open backdoors for unwanted access, or download further payloads - and modern antivirus scanners routinely flag untrusted .hta files as suspicious. Because mshta.exe is a legitimate Windows binary, attackers frequently abuse it in living-off-the-land techniques to bypass security controls.

Security & safety

RISK: HIGH

An HTA is a FULL-PRIVILEGE Windows program, not a sandboxed web page. Double-clicking an .hta RUNS it via mshta.exe with your user rights - it can read/write files, change the registry, download payloads and launch other programs. mshta.exe is a well-known "living off the land" malware technique and HTAs are a common phishing-attachment vector. Rules: never open an .hta that arrived by email/chat/download unless you wrote it or fully trust it; to inspect one, ALWAYS right-click > Edit (open as text) so it doesn't execute; watch for double extensions like 'invoice.pdf.hta'. Many organisations block .hta and restrict mshta.exe outright. If you received one unexpectedly, treat it as hostile and delete it.

Format details

in a nutshell
FULL NAMEHTML Application
DEVELOPERMicrosoftsince 1999 (Internet Explorer 5)
MIME TYPEapplication/hta
TYPEHTML/JScript/VBScript application run by mshta.exe (trusted, full-privilege)

Programs that open HTA files

Windows5 apps
Adobe Dreamweaver Paid A web-design IDE that can edit the HTML/script of an .hta. Overkill for most; Notepad++/VS Code are simpler.
Notepad Open-source Open the .hta for syntax-highlighted reading/editing - the safe way to inspect it before deciding whether to run it.
Microsoft HTML Application Host (mshta.exe) Built-in To RUN a TRUSTED .hta: double-click it (mshta.exe launches it) or run 'mshta file.hta'. Only do this for files you fully trust - it runs with your full privileges.
Notepad (built-in) Built-in To READ the code safely WITHOUT running it: right-click the .hta > Edit, or open Notepad first and File > Open the .hta.
Visual Studio Code Free Open the file to read/edit the HTML+script with highlighting; good for understanding or maintaining an HTA.
macOS1 app
Any text editor (TextEdit, VS Code) Free macOS can only READ an HTA's source - there is no HTA runtime. Open in TextEdit or VS Code to inspect.
Linux1 app
Any text editor (VS Code / gedit) Free Linux has no HTA runtime; you can only read the source. Open it in a text editor to see what it does.

Technical details

deep spec
DeveloperMicrosoft
Introduced1999, with Internet Explorer 5
Execution enginemshta.exe (Microsoft HTML Application Host), a Windows built-in component
Privilege levelFully trusted - runs outside the browser sandbox with user-level OS privileges
Scripting languagesJScript and VBScript
Rendering engineInternet Explorer's Trident (MSHTML) engine
MIME typeapplication/hta
File encodingPlain text (UTF-8 or Windows ANSI); no binary magic bytes
Distinguishing marker<HTA:APPLICATION> element in the document <head>; no fixed byte-level signature
Window customizationTitle bar text, icon, border style, resize, and scroll behavior set via <HTA:APPLICATION> attributes
System accessFull read/write access to Windows registry, file system, COM objects, and ActiveX controls
Platform supportWindows only; no native support on macOS or Linux
Security classificationCommonly flagged by antivirus as potentially malicious; frequently abused in living-off-the-land attacks via mshta.exe
DeploymentEntire application contained in one .hta file; no installer or runtime installation required
Released1999 (Internet Explorer 5)
Specificationen.wikipedia.org

HTA conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with HTA files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about HTA files.

Frequently asked questions

What is an HTA file?
An HTML Application - a Windows program written in HTML plus VBScript/JScript that runs as a trusted, full-privilege desktop app via mshta.exe. It looks like a web page but can access your files, registry and system.
How do I open an HTA file safely?
To READ it, right-click > Edit or open it in Notepad/Notepad++/VS Code - this shows the code without running it. Only double-click (which RUNS it via mshta.exe) if you wrote it or fully trust it.
Is an HTA file dangerous?
It can be. Unlike a web page, an HTA runs with full local privileges, so a malicious one can damage your system. mshta.exe is a common malware tool and HTAs are frequent phishing attachments. Treat unexpected .hta files as hostile.
Do HTA files still work on Windows 11?
Yes. mshta.exe and the MSHTML engine still ship with Windows 11, so HTAs run even though Internet Explorer was retired in 2022. mshta is deprecated (not recommended) but not removed; rendering is limited to legacy IE11 capabilities.
How do I run an HTA file?
Double-click it (mshta.exe launches it) or run 'mshta yourfile.hta' from a command prompt. Only do this for trusted files - it runs with your full permissions.
Can I open an HTA on a Mac or Linux?
You can only read its source in a text editor. HTAs need Windows' mshta.exe runtime, which doesn't exist on macOS or Linux, so they can't actually run there.
How do I convert an HTA to a normal web page or an EXE?
To make it a web page, remove the <HTA:APPLICATION> tag and system-access script and port VBScript to JavaScript (manual rewrite; it loses desktop powers). To make a standalone .exe, wrap it with an HTA-to-EXE packager - though such wrappers are often flagged by antivirus.

References

1Wikipedia - HTML Applicationen.wikipedia.org
2Microsoft Learn - Introduction to HTML Applications (HTAs)learn.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.MDMarkdown Document
3.CRDOWNLOADChrome Partial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.PARTPartial Download File
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.ICSiCalendar data file

Related extensions

.APKAndroid Package
.EXEWindows Executable (Portable Executable)
.VBSVBScript file (Visual Basic Script)
.JARJava Archive
.EX4MetaTrader 4 Compiled Program (Expert Advisor / Indicator / Script)
.APPXMicrosoft Windows App Package (AppX)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z