DAT File Reader & Viewer: Open Any .DAT File Online
Open Winmail.dat, Minecraft level.dat, config and game files in your browser. Nothing is uploaded.
Find out what kind of .dat file you have
The extension tells you nothing; the first bytes do. Drop the file above and the viewer compares them against the formats below, then opens the view that fits. The same check works by hand in the Hex tab if you want to see it yourself.
| First bytes (hex) | What it is | What to do |
|---|---|---|
| 78 9F 3E 22 | Winmail.dat (TNEF). Outlook wrapped the message and its attachments in one file. | Open it here. The Message tab lists the attachments. |
| 1F 8B | Gzip. Minecraft level.dat and player data are gzip-wrapped NBT. | The Decoded tab unpacks it. |
| 52 49 46 46 … 43 44 58 41 | RIFF container tagged CDXA: a track from a Video CD, usually AVSEQ01.DAT. | Play it in VLC. |
| 53 51 4C 69 74 65 | The text "SQLite". A SQLite database. | Query it with DB Browser for SQLite. |
| 50 4B 03 04 | ZIP. Also the container for Office files, APKs and JARs. | Copy the file, rename the copy to .zip, extract. |
| D0 CF 11 E0 A1 B1 1A E1 | OLE compound file: pre-2007 Office documents, Outlook .msg files. | Open it in the Office program that wrote it. |
| FF FE or FE FF | A UTF-16 byte order mark. The file is text with two bytes per character. | The viewer switches the encoding for you. |
A Java Edition level.dat starts like this: 1F 8B 08 00 00 00 00 00. The 1F 8B is the gzip magic number and 08 says the data is deflated.
Winmail.dat: why it shows up and how to read it
A winmail.dat file appears when the sender's copy of Outlook composed the message in Rich Text format. Outlook then packs the formatting and the real attachments into one TNEF blob. Outlook on the receiving end unpacks it. Gmail, Apple Mail and most phones do not, so you get one mystery attachment where a PDF and a spreadsheet should be.
Open the file here and go to the Message tab. You get the subject, the sender, the sent time, the message text and one row per attachment with its original long name, so Quarterly numbers Q3.xlsx comes out as that and not QUARTE~1.XLS. When the message has two or more files, Download all gives you a single zip.
- Outlook stores a Rich Text body as compressed RTF. The viewer unpacks it and shows the words. Fonts, colours and inline images are dropped.
- A file named
invoice.pdf.exegets a warning, because it looks like a document and ends in a program extension. Plain program files such as .exe, .js and .scr are flagged too. Nothing is opened or run. - An email attached inside the message is not expanded. You will see the message text and the ordinary files only.
To stop it at the source, the sender can switch to HTML or Plain Text under File, Options, Mail, Compose messages in this format. If only one recipient is affected, the setting that matters is on that contact's email address properties, where Send using plain text only avoids TNEF for them.
Minecraft level.dat and other NBT files
A Java Edition level.dat is gzip-compressed NBT, the format Minecraft uses for almost all of its data. The Decoded tab gunzips it, parses the tags and shows the fields most people are after: world name, game version, game mode, difficulty, hardcore flag, seed, spawn point and the time the world was last played. Below that is the whole tag tree, or the same data as SNBT or JSON if you want to copy it.
The seed lives in different places depending on the version. Worlds from 1.15 and earlier keep it as Data.RandomSeed. Newer ones put it in Data.WorldGenSettings.seed. Both are read, and the 64-bit value is shown in full, which any converter that goes through JavaScript numbers rounds once it passes 2^53.
Bedrock Edition is different: level.dat is not compressed, starts with an 8-byte header (storage version, then length) and uses little-endian numbers. It is detected from that header. Uncompressed NBT files such as servers.dat are recognised as well.
The viewer only reads. If you plan to edit a value with another tool, copy the world folder first. A tag saved with the wrong type can be enough for Minecraft to refuse to load the world.
Text .dat files: encodings, tables and JSON
Most .dat files written by desktop software are text, and most of the trouble with them is the encoding. Nearly every case looks like one of these:
| You see | It is | Pick |
|---|---|---|
| Größe | UTF-8 text that was read as Windows-1252. The word is Größe. | UTF-8 |
| Gr�e | Windows-1252 text read as UTF-8. The byte for ö is not valid UTF-8, so it becomes a replacement character. | Windows-1252 |
| ÿþd.e.b.u.g. | UTF-16 with a byte order mark: FF FE 64 00 65 00 62 00 75 00 67 00. | UTF-16 LE |
UTF-16 is picked automatically, with or without the mark. The others you choose from the Encoding menu in the Text tab.
If every line has the same number of commas, tabs, semicolons or pipes, the Text tab opens as a table. Semicolons are common in exports from software set up for European locales, where the comma is the decimal mark. JSON is detected and pretty-printed. Copy and Save as .txt (or .json) use whatever you are looking at. To get a table into Excel, save the text and bring it in with Data, From Text/CSV.
AVSEQ01.DAT and other Video CD files
A Video CD keeps its movie in MPEGAV/AVSEQ01.DAT, with further tracks as AVSEQ02.DAT and so on. These are MPEG-1 streams in a RIFF wrapper. The viewer labels them as Video CD tracks, but it does not play them. VLC opens them as they are. If another player refuses, rename a copy to .mpg.
When nothing on the list matches
A lot of .dat files come from programs with their own private format. Here is what usually gets you somewhere:
- Look at where the file sits. The folder name and the files beside it usually name the program.
- Open the Strings tab. Product names, file paths, XML tags and error messages often survive in binary files. Strings finds ASCII and UTF-16 text, which is how Windows programs store most of theirs.
- Search the hex for a known marker.
SQLite format 3,%PDFor the hex bytes50 4B 03 04, found past the start of the file, mean another file is embedded in it.
If Strings shows nothing readable and the hex looks equally random from start to end, the data is compressed or encrypted. No viewer can read that without the program's own key or format.
What stays on your device, and the limits
The file is read and decoded inside this page. Its bytes are not sent to any server. The page loads the same analytics scripts as the rest of the site, and those do not receive the file. You can check by watching the Network tab in your browser's developer tools while you open one.
- Files up to 64 MB are loaded into memory and decoded in full.
- The Text tab shows files up to 8 MB straight away. A browser needs several seconds to lay out more text than that, so bigger files open as a 4 MB preview with a button to load all of it, up to 64 MB. Hex, search and offsets cover the whole file at any size, because they read it in slices.
- Unpacking gzip and zlib is capped at 64 MB of output, and Strings scans the first 16 MB.
- Winmail.dat files up to 256 MB are parsed.
How the viewer identifies your file
Text or binary, and which encoding
The viewer decodes the first 4 KB of the file and looks for control characters that never appear in real text, such as 00 or 1B. Finding one marks the file as binary. UTF-16 is the exception, because it is full of 00 bytes by design. A byte order mark (FF FE or FE FF) identifies it, and so does a file where more than 40% of the byte pairs have a 00 on one side and fewer than 5% have one on the other. Those files are decoded as UTF-16 and count as text.
Format by signature
The first 32 bytes are compared with known signatures: the TNEF key 78 9F 3E 22, the gzip marker 1F 8B, the ZIP header 50 4B 03 04, the text "SQLite" and others. Short signatures like MZ for Windows programs and BM for bitmaps only count when the file already looks binary, because plain text can begin with those letters. A file that starts with BMW parts list is text, not an image.
Unpacking what it can
- Gzip and zlib streams are inflated with the browser's built-in DecompressionStream, which stops at 64 MB of output. If the result begins with the NBT compound tag
0A, it is parsed as Minecraft data. - A Winmail.dat is read attribute by attribute. Each one has a level, an ID, a length and a 16-bit checksum. The checksum is skipped rather than verified, and a file that ends early keeps the attachments that were complete.
- A compressed Rich Text body is expanded with the LZFu scheme Outlook uses and reduced to plain text.
How to open a .dat file
Drop in the file
Drag the .dat file onto the box above or click it to choose one. It opens in your browser; nothing is uploaded.
Read the detected format
The line under the file name says what the first bytes identify: Winmail.dat, Gzip, a Video CD track, plain text, or an unrecognized binary.
Open the matching tab
Message lists the attachments inside a Winmail.dat. Decoded unpacks gzip and shows Minecraft NBT. Text, Hex and Strings work on any file.
Copy, save or download
Copy the text, save it as .txt or .json, download each attachment or all of them as a zip, or download the original file untouched.
Example Usage
A gzip-wrapped level.dat opened in the Decoded tab, with the world details pulled out of the NBT.
Frequently Asked Questions
What is a .dat file?
How do I open a .dat file?
How do I open a winmail.dat attachment?
How do I read a Minecraft level.dat file?
Why does my .dat file show garbled text?
Is my file uploaded anywhere?
How large a file can it open?
Can I open a .dat file in Excel or Notepad?
Related Tools
JSON Formatter
Beautify and validate JSON data.
CSV to JSON Converter
Convert CSV files or text into valid JSON arrays. Smart parsing with header detection.
Binary to Text Converter
Convert binary code to readable ASCII/UTF-8 text.
Gzip Decompress Online
Decompress gzip-encoded data instantly online.
Hex to String
Convert hexadecimal values to readable text instantly. Supports spaces and 0x prefixes. Free, secure, browser-based tool.
PLY File Viewer
View .PLY 3D meshes and point clouds online for free. Reads ASCII and binary PLY files, keeps vertex colors and normals, and renders entirely in your browser.
Comments
Comments are provided by Disqus, which sets cookies and processes data under its own privacy policy.
The DAT File Reader & Viewer: Open Any .DAT File Online is maintained by CodeItBro. We aim to provide the best free developer tools on the web. If you have feedback or suggestions, please visit our contact page.

