What Is a .DAT File?

A .dat file is a generic data file whose contents depend entirely on the program that created it. It may be text, a video, a game save, a database or an email attachment such as winmail.dat. There is no single DAT format, so the right app depends on where the file came from.

Extension
.dat
Full name
Generic Data File
Type
System and app file

About DAT files

Programs use .dat for their own internal data: settings, caches, game levels, license information or databases. Windows itself keeps user registry hives in NTUSER.DAT. These files are meant to be read only by the program that made them, so double-clicking them usually does nothing useful, and editing them can break the app.

The most common DAT people receive is winmail.dat. When Outlook sends a message in Rich Text format, it packs the formatting and attachments into a Microsoft TNEF attachment named winmail.dat. Mail apps other than Outlook cannot unpack it, so the recipient sees the plain text plus a winmail.dat file and the real attachments seem to be missing.

Other notable DAT files: Video CDs store their movies as MPEG-1 .dat files in an MPEGAV folder, which VLC plays; some apps export data as text with a .dat extension. To identify an unknown DAT, check where it came from and its size, then open a copy in Notepad: readable text means a text format; unreadable symbols mean binary data for a specific app.

What DAT files are used for

  • Program settings, caches and save games
  • winmail.dat attachments from Outlook Rich Text emails
  • Video CD movie files (MPEG-1)
  • Exported data from scientific and engineering software

How to open a .dat file

Windows

Open a copy in Notepad to see if it is text. For winmail.dat, ask the sender to resend in HTML format or use a TNEF viewer app. Video CD DAT files play in VLC.

Mac

Open it in TextEdit to check for readable text; Video CD DAT files play in VLC. TNEF viewer apps on the Mac App Store extract winmail.dat attachments.

iPhone and iPad

Apple Mail on iPhone and iPad often extracts winmail.dat attachments automatically; other DAT files need the app that made them.

Any platform

If the DAT belongs to a program, open it from within that program rather than double-clicking the file.

How to convert a .dat file

There is no general DAT converter, because DAT is not one format. First identify what it holds; a text DAT can be renamed to .txt or .csv and opened in Notepad or Excel, because the content really is text.

Renaming a binary DAT to .pdf, .docx or .mp4 only works if it was that format all along; otherwise the file still will not open.

For winmail.dat, the reliable fix is on the sender's side: in Outlook, set the message format to HTML or Plain Text and send again.

Changing the extension in the file name does not convert the file. See how to change a file extension for when renaming is safe.

Naming and renaming DAT files

  • Do not rename DAT files inside program or game folders; the app looks for them by exact name.
  • When you save extracted data, rename it with the real extension (results.csv) so the next person knows what it is.
  • Keep a copy before experimenting with extensions, so you can return to the original if the guess is wrong.

Renaming lots of .dat files? Use the free online bulk renamer for patterns and numbering, or try File Renamer AI to name each file from what is inside it.

Related file types

Frequently Asked Questions

What is a winmail.dat file?

It is a container from Outlook holding a Rich Text email's formatting and attachments. Ask the sender to resend in HTML or plain text, or use a TNEF viewer to extract the attachments.

How do I open a DAT file?

Find out which program created it and open it there. If you are unsure, open a copy in Notepad or TextEdit to see whether it is readable text.

Can I delete DAT files?

Not those in program, game or Windows folders; apps need them. DAT attachments or downloads you identified can be deleted like any file.

Is a DAT file a virus?

A DAT is just data and does not run by itself, but an unexpected attachment renamed to .dat can hide something else. Do not change its extension to .exe or open it with unknown programs.

More system and app file extensions · all file extensions