How to open .COM files on Windows
To open .COM files on Windows, if you trust the source and need to run it, use a DOS environment/emulator (commonly DOSBox is used) and run the .COM from within that environment.
Step-by-step instructions
- If you trust the source and need to run it, use a DOS environment/emulator (commonly DOSBox is used) and run the .COM from within that environment.
- If you only need to view what it contains, open it in a hex/binary viewer or text editor (it will usually look like random characters because it is binary).
- If Windows tries to execute it directly, cancel and verify what it is before running.
Recommended software
- Built-in extractor
- 7-Zip
- WinRAR
Alternative methods
- Open .COM in a browser-based viewer if desktop apps fail.
- Try opening .COM on Windows with a secondary app to rule out app-specific issues.
- Convert .COM only with trusted tools when direct opening is not possible.
Common issues
The .COM file launches (or tries to) instead of opening in an app
On some systems, .COM is treated as an executable extension, so double-clicking may run it (or attempt to), not display it like a document.
- If you intended to inspect it, open it with a hex/binary viewer or a text editor via “Open with…” rather than double-clicking.
- If you intended to run a DOS program, run it inside a DOS emulator instead of directly from the desktop.
It will not run on modern Windows/macOS/Linux
.COM programs are designed for DOS/CP/M environments and may not execute correctly (or at all) on modern operating systems without a compatible runtime/emulator.
- Use a DOS emulator (commonly DOSBox is used) and run the program from inside the emulated DOS prompt.
- If the program depends on DOS hardware behavior, try different emulator settings or an older/compatible DOS environment.
The file opens as gibberish in a text editor
.COM files are binary executables, not text documents, so a text editor will show unreadable characters.
- Use a hex/binary viewer for inspection instead of a plain text editor.
- If you expected a document, confirm the file was named correctly and wasn’t mislabeled or incorrectly downloaded.
Security warnings or blocked execution
Because .COM is executable code, security tools or OS policies may warn, quarantine, or block it—especially if it came from the internet or email.
- Do not bypass warnings unless you trust the source and understand what the program does.
- Prefer running it inside an isolated DOS emulator environment rather than executing directly on the host OS.
Security note
.COM files are executable programs; treat unknown .COM files as potentially malicious and avoid running them directly on your main system.