Convert DAT File to PDF: Text Files, winmail.dat and Program Data
A .dat file can hold almost anything. Find out what's in yours, then pick the way to turn it into a PDF.

To convert a DAT file to PDF, first open it in a text editor and see what's inside: readable text can be printed to PDF straight away. A winmail.dat email attachment or a file full of symbols needs a different route, which this guide covers too.
DAT isn't one format: every program that uses it decides what goes inside.
What a DAT File Usually Contains
Most .dat files you'll meet fall into one of four groups:
- Plain text: logs, exports and settings saved by a program as readable text.
- winmail.dat: an email attachment created by Microsoft Outlook, which packs the message and its attachments together.
- Program data: binary files a program reads for itself, such as a game save or a database.
- Video: the .dat files on an old Video CD, which hold MPEG video.
Open the file in Notepad (Windows) or TextEdit (Mac) to tell them apart. Readable sentences mean text. Rows of strange symbols mean a binary file, and a file called winmail.dat that arrived with an email is almost certainly the Outlook kind.
Check the First Characters: Is Your DAT a Renamed PDF, Word File or Image?
The first characters of a .dat usually tell you when it's really another file type. We copied five of our test files to .dat names in November 2026, read their first bytes with a script on a Mac, then renamed each one back, and all five checked out as what they were. In a text editor those bytes usually show as the first column's characters, though the odd ones vary with the encoding.
| The file starts with | Bytes | What it is | Rename it to |
|---|---|---|---|
| 25 50 44 46 | A PDF | ||
| A symbol, then PNG | 89 50 4E 47 | A PNG image | .png |
| ÿØÿ, or other odd symbols | FF D8 FF | A JPEG image | .jpg |
| PK | 50 4B | A ZIP, or a Word, Excel or PowerPoint file | .zip, then look inside |
| Plain words | Text | Keep it, and use Method 1 below |
PK takes one more step, because our Word, Excel and PowerPoint test files all start that way. Rename a copy to .zip and open it: a word folder means .docx, xl means .xlsx and ppt means .pptx.
Method 1: Convert a Text DAT File to PDF With Notepad (Windows)
For a .dat file with readable text, Windows has everything you need.
- Right-click the file in File Explorer, choose Open with, then Notepad.
- Check that the text is readable. If it's all symbols, stop here and go to the section on binary files.
- Click File, then Print, and choose Microsoft Print to PDF as the printer.
- Click Print, give the PDF a name and save it.

On a Mac, open the file in TextEdit, choose File, then Print, open the PDF menu and choose Save as PDF.
Method 2: Convert a DAT File to PDF in Microsoft Word
Word gives you more control over fonts and page layout before the PDF is made.
- Open Word, choose File, then Open, and pick the .dat file (set the file type filter to All Files).
- If Word asks for a text encoding, try the Windows default first, then UTF-8 if accented letters look wrong.
- Change the font or margins if you like.
- Choose File, then Save As, and pick PDF as the file type.
Garbled letters usually mean the wrong encoding. Close the file and open it again with a different one; Wikipedia's article on character encoding explains why the same bytes can show up as different letters.
Method 3: Convert a DAT File to PDF Online With TXT to PDF
If you'd rather not print, rename the file and use our TXT to PDF converter. It only accepts .txt files, so change the ending from .dat to .txt first (on Windows, turn on File name extensions in File Explorer's View menu to see it). A bank's .qfx download is plain text too, and our QFX to PDF guide uses the same rename.
- Rename
export.dattoexport.txt. - Upload it to TXT to PDF and click Convert To PDF.
- Download the PDF.

We ran a 42 B test text file through it in October 2026 and got a 14.0 KB PDF back. Save the file as UTF-8 if it has accented or non-Latin letters, because those come through as written. Your upload is deleted from our server within two hours.
Method 4: Open a winmail.dat Attachment and Save It as PDF
A winmail.dat file shows up when someone sends an email from Outlook in Rich Text format and your mail app doesn't understand it. The file uses Microsoft's Transport Neutral Encapsulation Format (TNEF), and it usually holds the real attachments, such as a Word file or a PDF.
You've got three options:
- Ask the sender to resend the email in HTML or plain text format. Classic Outlook has this under Format Text in the message window, and new Outlook has Switch to plain text under Options.
- Unpack it with a winmail.dat viewer such as Winmail Opener on Windows or TNEF's Enough on a Mac, and save the attachments it finds.
- Convert what's inside: once you have the attachment, turn it into a PDF with Word to PDF or any of our convert to PDF tools.
Renaming winmail.dat to .pdf doesn't work. The file is a container, not a PDF. Signed email attachments ending in .p7m are another kind of wrapper, and our P7M to PDF guide shows how to unwrap them.
What to Do With Binary and Video DAT Files
A binary .dat file belongs to the program that wrote it. The only reliable way to get a readable PDF is to open it in that program and use its Export or Print to PDF option. Renaming one to .txt doesn't help, because those bytes aren't text.
To find the program, look at where the file came from: its folder, the email it arrived in, or the software you were using. A Video CD's .dat files are MPEG video, which a media player such as VLC plays. A PDF can't hold a video, so the most you can do is save a frame as an image and put that into a PDF with JPG to PDF.
After You Have the PDF
- Too big to email? Shrink it with Compress PDF.
- Blank or extra pages? Take them out with Remove PDF Pages.
- Several files? Combine them with Merge PDF.
Frequently Asked Questions about Converting DAT Files to PDF
Can I just rename a .dat file to .pdf?
Only if it already is a PDF. Open it in a text editor: if the first characters are %PDF, renaming works. If they're something else, the table above shows what to rename it to.
How do I convert winmail.dat to PDF?
Unpack it with a winmail.dat viewer, then convert the attachments inside, as our winmail.dat guide shows. Or ask the sender to resend it.
Is it safe to convert a DAT file online?
Check the site's privacy policy first. Our TXT to PDF tool deletes uploaded files within two hours, and for confidential text, printing to PDF in Notepad or TextEdit keeps the file on your computer.


