.COM

COM File

DOS/CP/M Command Executable
Ask a question
QUICK ANSWER

A COM file is a raw executable program from the MS-DOS era. On 64-bit Windows 10 and 11 it cannot run natively because the required DOS subsystem was removed; use DOSBox or DOSBox-X to run it. If you received an unexpected .com file from the internet, treat it as potentially dangerous - it is executable code, not a document.

Developer: Microsoft / Digital Research (CP/M origin) Category: Executable Files MIME: application/x-msdos-program
OPENS ON Windows macOS Linux
Related: .APK · .EXE · .VBS · .JAR

On this page

19k+ extensions indexed
Last reviewed Aug 2, 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 COM file format?

A .com file is a simple executable binary - one of the oldest program formats in personal computing, originating in Digital Research's CP/M operating system before being carried forward into MS-DOS. Unlike the .exe format, which supports multiple memory segments and relocation tables, a .com program is a raw flat binary with no file header: every byte is loaded directly into memory at offset 0x0100 within a single 64 KB real-mode segment and executed immediately. This architectural constraint means a .com file can never exceed roughly 64 KB in size.

Even while complemented by the more generalized .exe format, .com remained practical and widely used throughout the MS-DOS era for small utilities, command-line tools, and TSR programs. Under 32-bit Windows the NTVDM subsystem ran .com files transparently; NTVDM was removed from 64-bit Windows, so native execution on modern Windows requires an emulator such as DOSBox.

The .com extension has simply no connection with the .com top-level Internet domain name. This correspondence in naming has historically been exploited by malware authors who disguise executable .com files as links or text, making the format a well-documented social-engineering vector.

Security & safety

RISK: HIGH

COM files are executable code - historically the primary DOS malware carrier (boot sector viruses often dropped .com infectors). On modern 64-bit Windows they cannot run natively, which is a practical safety barrier, but on 32-bit systems or inside DOS emulators they execute without restriction. Never run a COM file received unexpectedly; scan with antivirus before launching in any emulator. Particular risk: web users confuse .com (domain) with .com (executable) and unknowingly download executable files thinking they are web pages.

Format details

in a nutshell
FULL NAMEDOS/CP/M Command Executableaka COM file, DOS executable
DEVELOPERMicrosoft / Digital Research (CP/M origin)since 1974 (CP/M); MS-DOS 1.0, 1981
MIME TYPEapplication/x-msdos-program
TYPEraw flat binary executable (no header)
This extension is also used by…
  • Windows Component Object Model registration stub - Rare; some very old Windows COM server self-registration utilities used .com extension.
  • Network command script (Cisco IOS etc.) - Some embedded/network devices use .com for firmware or command scripts - unrelated to DOS.

Programs that open COM files

Windows3 apps
Microsoft Windows Paid 32-bit Windows only (NTVDM); double-click or run from cmd. Not available on 64-bit Windows.
DOSBox Open-source mount c /path/to/folder then type program.com at the DOSBox prompt.
DOSBox-X Open-source Launch DOSBox-X, mount a folder with MOUNT C path, then type the filename to run.
macOS2 apps
Parallels Desktop Paid Run a Windows 32-bit or FreeDOS VM inside Parallels, then execute the COM file from there.
DOSBox Open-source Install via Homebrew (brew install dosbox), mount folder, run program.
Linux1 app
DOSBox Open-source sudo apt install dosbox; mount and run as on Windows.

Technical details

deep spec
EncodingRaw binary machine code (x86 real-mode)
Byte orderLittle-endian (x86)
File headerNone - flat binary with no header, no relocation table, no segment descriptors
File signatureNone - identified by extension only; first bytes are typically a JMP opcode (0xEB or 0xE9) but not mandatory
Load addressLoaded at segment:0x0100; Program Segment Prefix (PSP) occupies bytes 0x0000-0x00FF of the segment
Memory modelCS = DS = ES = SS all point to the same 64 KB real-mode segment - no segment separation
Maximum file size~65,280 bytes (one 64 KB segment minus 256-byte PSP and minimum stack allocation)
MIME typeapplication/x-msdos-program
64-bit Windows supportNot supported natively - NTVDM (16-bit subsystem) removed from 64-bit Windows; use DOSBox or DOSBox-X
CP/M heritageFormat originated with Digital Research CP/M (1974) and was adopted unchanged for MS-DOS 1.0 (1981)
Superseded by.exe for programs exceeding 64 KB; .cmd / .bat for Windows console scripts
Security noteHistorically a major malware vector - trivially executable and easily modified without breaking structure; commonly disguised as domain-style filenames
Operating systemsMS-DOS, PC DOS, FreeDOS, Windows 32-bit (via NTVDM), CP/M; DOSBox/DOSBox-X for modern use
Released1974 (CP/M); MS-DOS 1.0, 1981
Latest versionNo versioning - raw binary format unchanged

COM conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with COM 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 COM files.

Frequently asked questions

Why can't I open a .COM file on Windows 10/11?
64-bit Windows removed the NTVDM DOS subsystem. Use DOSBox or DOSBox-X to run the file.
Is a .COM file the same as a .com website?
No - completely unrelated. The Internet .com TLD and the DOS .com executable extension happen to share the same characters.
Can I convert a COM file to EXE?
Technically yes with old DOS utilities, but there is rarely a reason to do so. Just run the COM file in DOSBox.
Is a .COM file dangerous?
It is executable code. On modern 64-bit Windows it cannot run natively, but inside a DOS emulator it runs with full access to that environment. Scan it before running.
What is the maximum size of a COM file?
About 65 280 bytes (≈ 63.8 KB) - the entire program must fit in one 64 KB x86 real-mode segment minus the 256-byte PSP at 0x0000-0x00FF.

References

1Wikipedia - COM fileen.wikipedia.org
2Archive Team - DOS executable (.com)fileformats.archiveteam.org

Keep exploring

across the database

Top extensions this week

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

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