What is the DAT file format?
Files with the .dat extension contain text or binary data. Because .dat is a general-purpose extension shared by many unrelated programs, such files may include data of widely varying structure, meaning, and size. The formatting of this data depends entirely on the program that created or uses the given file.
Sometimes .dat files store data that is an internal component of a program and should not be modified manually. When the content is plain text, they can be opened with any text editor; when binary, a tool such as HxD or the file command on Linux will reveal the underlying structure. .dat files occasionally follow a recognized format such as CSV - in that case, they can be imported, converted, or edited directly in a spreadsheet application.
Unlike typed formats, .dat carries no fixed file signature (magic bytes), so the extension alone tells you nothing about the actual encoding. To identify an unknown .dat file, inspect its first bytes in a hex editor or run file mydata.dat on Linux/macOS. A few well-known programs give their .dat files a specific internal structure - for example, Outlook attaches TNEF-encoded data as winmail.dat, and Minecraft stores world metadata in level.dat (an NBT-encoded binary file) - but these are effectively separate formats that happen to share the .dat extension.
The MIME type conventionally assigned to generic .dat files is application/octet-stream.
Security & safety
RISK: MEDIUMA generic .dat is opaque, so treat unexpected ones with care: malware sometimes stores its payload or configuration as .dat, and a .dat arriving from an unknown source deserves the same suspicion as any unknown download. Inspecting a .dat in a hex/text editor is safe - it does not execute the contents. Don't assume renaming makes a file safe or usable; verify the real format first. Avoid uploading potentially confidential .dat files to online "data converters"; use a local tool.
Format details
in a nutshell- Outlook winmail.dat (TNEF) - A Microsoft Outlook/Exchange TNEF wrapper (signature 0x223E9F78) that hides real e-mail attachments; extract with a TNEF tool.
- Video CD AVSEQ##.DAT - MPEG-1 video stored in a Video CD's MPEGAV folder; plays directly in VLC.
- Minecraft level.dat / Windows NTUSER.DAT - level.dat is a gzip-compressed NBT world file (NBTExplorer); NTUSER.DAT is the per-user Windows registry hive - never delete it.
Programs that open DAT files
Technical details
deep spec| Format type | Generic application data - content structure is entirely defined by the writing program; no universal encoding or layout |
| Content encoding | Text or binary; determined by the producing application |
| File signature (magic bytes) | None for the generic format - identification requires inspecting the file content or knowing the source application |
| MIME type | `application/octet-stream` |
| Typical use cases | Configuration storage, application cache, saved game state, export/import interchange, internal program state |
| Identification method | Run `file <filename>.dat` on Linux/macOS, use TrID or FileAlyzer on Windows, or inspect with a hex editor |
| Text variant handling | When content is plain text, any text editor (Notepad, TextEdit, nano) can open and display it |
| Binary variant handling | Binary `.dat` files require a hex editor such as HxD, or the specific application that produced them |
| Named variant: winmail.dat | TNEF (Transport Neutral Encapsulation Format) email attachment produced by Microsoft Outlook; requires a TNEF decoder to extract embedded content |
| Named variant: level.dat | Minecraft world metadata file using Named Binary Tag (NBT) encoding; stores world seed, game mode, time, and player position |
| Named variant: video.dat | MPEG-1 video stream in Video CD (VCD) sector format; playable with VCD-capable media players |
| CSV-compatible variant | Some applications write `.dat` files as plain CSV or tab-delimited text, importable directly into spreadsheet software |
| Related extensions | `.data`, `.bin`, `.db`, `.tmp` - alternative generic data suffixes used in similar contexts |
| Platform history | The `.dat` suffix has been used across CP/M, MS-DOS, Unix, and Windows since the late 1970s-1980s |
| Released | 1970s-1980s (generic 'data' suffix predates DOS; used across CP/M, DOS, Unix) |
| Open standard | Yes · royalty-free |