sturdybits

Guides / Save Attachments

How to open a winmail.dat file, and .msg and .eml files without Outlook

30 November 2026

A winmail.dat file is how Outlook packs up an email sent in its Rich Text format: Outlook unpacks it, but most other mail apps just show the file. To get the attachments out, open it with a free decoder such as Winmail Opener on Windows or TNEF's Enough on a Mac, or ask the sender to send the email again in HTML.

What winmail.dat is, and why you got one

Outlook can send emails as HTML, plain text or Rich Text. Rich Text emails are packaged in Microsoft's TNEF format, and when the receiving mail app can't read TNEF, the formatting and the attachments arrive bundled in a file called winmail.dat, as Microsoft explains. Some mail apps give it a generic name, such as ATT00001.DAT, instead. Exchange Online, the email service in Microsoft 365, can also send TNEF to outside addresses until an admin turns it off.

Renaming the file doesn't help. It's a container holding the message and its attachments, so it needs unpacking.

1. Ask the sender to send it again in HTML

Good for: when you know the sender, and for every email they send after.

In classic Outlook for Windows, the sender chooses File > Options > Mail and sets Compose messages in this format to HTML. For a single email, they choose HTML on the Format Text tab. Microsoft recommends this when sending attachments to people who don't use Outlook, and notes that winmail.dat also carries the path of the sender's Outlook data file and their sign-in name, which is another reason to fix it.

If the sender's organisation uses Microsoft 365, its admin can stop TNEF going to outside addresses with Exchange Online PowerShell. Microsoft's steps use Set-RemoteDomain with -TNEFEnabled $false.

2. Use a free winmail.dat opener

Good for: the odd file, on your own computer.

Download them only from the developer's own site or the App Store.

3. Use a command-line tool

Good for: people comfortable running commands, or a folder full of winmail.dat files.

With Python installed, the free tnefparse library includes a command that does it. Run pip install tnefparse, then tnefparse -a winmail.dat to save the attachments in the current folder, or add -p and a folder to choose where they go. Its last release was in January 2021.

Think twice before uploading

Many websites that open winmail.dat files work by uploading them to their servers. The file holds whatever was attached: invoices, contracts, CVs, bank statements. Before uploading one, check who runs the site, what it keeps and for how long.

Getting attachments out of .eml and .msg files without Outlook

Saved emails come in two formats: .eml, the standard internet email format, and .msg, classic Outlook's own.

If a saved email holds a winmail.dat, save that file too and open it with one of the tools above.

When a tool is quicker

Opening files one by one gets slow, and the command-line tools need Python. Save Attachments reads all three in your browser. Drop in .msg or .eml files, a mailbox file (.mbox), a folder or .zip of them, or a winmail.dat on its own. It unpacks winmail.dat wherever it turns up, including inside an email attached to another, and lists every attachment with its email's date, sender and subject. Pictures from email signatures and exact copies are left out, and the files download together as a .zip, named by date and sender, with an index of which email each came from. It can't read encrypted (S/MIME) emails or Outlook data files (.pst).

Nothing is uploaded: your emails never leave your computer. The free version saves the attachments from up to 10 emails at a time; Pro is £15 once and saves from any number. You can try it with sample emails, or read how to save all attachments from multiple emails in Outlook.

Quick answers

Is winmail.dat a virus? Not in itself: it's a normal Outlook format. What's inside can be any attachment, so treat it like any other attachment from that sender.

Why did I get ATT00001.dat instead of winmail.dat? It's usually the same thing under another name. Microsoft says some mail apps give the TNEF attachment a generic name, and the fix is the same: ask the sender to use HTML.

Can I rename winmail.dat to .pdf or .docx? No. It's a bundle of the message and its attachments, so it needs unpacking, not renaming.