Winmail.dat in Gmail: What It Is and How to Open It
Quick answer: Winmail.dat is a file Microsoft Outlook adds when it sends an email in Rich Text format. Gmail cannot unpack it, so the real attachments often look missing. Ask the sender to resend the email in HTML format, or extract the files with a TNEF decoder. The sender can stop it for good in Outlook’s mail settings.
You open an email from a client or supplier. The text is there, but instead of the PDF they promised there is one attachment called winmail.dat, or something like ATT00001.dat. Your files are probably not lost. They are packed inside that .dat file in a format Gmail does not read. This guide explains where it comes from and how to get the files out.
Why winmail.dat shows up in Gmail
Outlook can send email in three formats: HTML, Plain Text and Rich Text. HTML is the default and works everywhere. Rich Text is different. According to Microsoft’s documentation, Outlook packages Rich Text messages with Transport Neutral Encapsulation Format (TNEF). Mail systems that are not built on Microsoft Exchange often cannot read it. When the recipient’s system cannot process TNEF, the recipient gets a plain-text version of the message plus an attachment named winmail.dat.
Gmail is one of those systems. Microsoft also notes that some mail apps rename the file to a generic name such as ATT00008.DAT, so a .dat attachment with a number is usually the same thing.
The sender may not have chosen Rich Text at all. Microsoft says email sent from Exchange Online in Microsoft 365 uses TNEF by default, which is why admins have a setting to turn it off for outside recipients.
What is inside winmail.dat
Per Microsoft, the winmail.dat attachment can include:
- The formatted version of the message (fonts, colors).
- Embedded objects, such as pictures and Office documents placed in the message body.
- Outlook features such as voting buttons, custom forms and meeting requests.
- The regular file attachments of the original message.
That last point is why winmail.dat matters. If the sender attached an invoice or a contract, it is most likely inside.
How to get the real attachments
Ask the sender to resend in HTML (most reliable)
This is the cleanest fix because you get the original files, nothing has to be decoded, and no third-party tool touches the data. A short note works:
Your attachment arrived as winmail.dat, which my email can’t open. Could you resend it with the message format set to HTML? In Outlook, that’s the Format Text tab, then HTML.
Microsoft confirms that a message sent without TNEF arrives with normal attachments the recipient can view and save.
Use a TNEF decoder
If the sender can’t resend, for example an automated system or someone who is away, download the winmail.dat file from Gmail and open it with a TNEF decoder. Third-party decoders exist as desktop apps, phone apps and websites.
Two cautions:
- Online decoders upload your file. The attachments inside may be invoices, contracts or personal documents. Prefer an app that runs on your device.
- Some content will not come back. A decoder can usually extract the attached files. Outlook-only features such as voting buttons do not work outside Outlook.
Our free EML Viewer does not open winmail.dat. It reads standard .eml and .emlx email files.
How the sender stops sending winmail.dat
If one contact keeps sending winmail.dat, send them these steps from Microsoft’s guide.
For all messages in Outlook:
- Select File > Options > Mail.
- Under Compose messages in this format, choose HTML or Plain Text.
- Select OK.
For one message: on the Format Text tab, choose HTML or Plain Text before sending.
For a whole organization on Exchange Online: an admin can stop TNEF for outside recipients with PowerShell, for example Set-RemoteDomain -Identity <domain name> -TNEFEnabled $false, as described in Microsoft’s Exchange article.
Microsoft notes that some Outlook features need TNEF: meeting requests and responses, voting buttons, task requests, Rich Text formatting and embedded attachments. Microsoft also says TNEF isn’t required for messages with regular file attachments, so switching to HTML loses nothing for a normal email with files.
Meeting invites that arrive as winmail.dat
Calendar invitations from Outlook can show the same problem. Google’s Workspace help explains how to check. A TNEF invitation in Gmail has two attachments instead of one. For a precise check, open the message, click More, then Show original, and look for a part named winmail.dat with the type application/ms-tnef. Google recommends that the sender’s organization turn off TNEF in Exchange, so Outlook sends a standard .ics invitation that Google Calendar reads.
Is winmail.dat safe to open?
Winmail.dat is a normal Microsoft format, not a virus. The files inside it are ordinary attachments and carry the same risk as any attachment. If you did not expect the email or do not know the sender, do not open what is inside. A decoder only unpacks the file. It does not check whether the files inside are safe.
Find every winmail.dat in your Gmail
To see how often this happens, search Gmail with the filename: operator, which Google lists in its search operators reference:
filename:winmail.dat
Add from: to narrow it to one sender, for example filename:winmail.dat from:supplier.com. The Gmail search builder puts these together for you. If the senders turn out to be a handful of contacts, ask each one to switch to HTML.
If you need to keep the raw winmail.dat files, for example to decode them later, Save Bulk Gmail Attachments saves the attachments of every email you select to a ZIP or Google Drive in one step. It saves winmail.dat as an ordinary file under its own name and does not unpack it. The only attachments it opens are attached emails (.eml files), whose files it saves too. For attachments that won’t download at all, which is a different problem, see Gmail attachments not downloading.
Frequently Asked Questions
What is winmail.dat?
Winmail.dat is a file that Microsoft Outlook and Exchange attach when they send an email in Rich Text format. It uses Microsoft's TNEF format to package the formatting, embedded objects and, often, the real attachments. Mail apps that do not read TNEF, such as Gmail, show it as an unreadable file.
Why do I get winmail.dat in Gmail?
The sender's Outlook or Exchange sent the message in Rich Text (TNEF) format. Gmail does not unpack TNEF, so you see the plain-text message plus a winmail.dat attachment, sometimes named ATT00001.dat instead.
How do I open winmail.dat in Gmail?
Gmail cannot open it. The most reliable fix is to ask the sender to resend the email in HTML format. Otherwise, download the file and open it with a TNEF decoder, preferably one that runs on your device.
Are my attachments inside winmail.dat?
Often, yes. Microsoft says the winmail.dat attachment can contain the formatted text, embedded pictures and Office documents, Outlook features such as voting buttons, and the regular file attachments of the original message.
Is winmail.dat a virus?
No. It is a normal Microsoft format. Treat the files inside it like any attachment, though: if you did not expect them or do not know the sender, do not open them.
How does the sender stop sending winmail.dat?
In Outlook, go to File > Options > Mail and set Compose messages in this format to HTML or Plain Text. For one message, change the format on the Format Text tab. Exchange Online admins can disable TNEF for external domains with Set-RemoteDomain.