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 of common .dat files and what they mean
First bytes (hex)What it isWhat to do
78 9F 3E 22Winmail.dat (TNEF). Outlook wrapped the message and its attachments in one file.Open it here. The Message tab lists the attachments.
1F 8BGzip. Minecraft level.dat and player data are gzip-wrapped NBT.The Decoded tab unpacks it.
52 49 46 46 … 43 44 58 41RIFF container tagged CDXA: a track from a Video CD, usually AVSEQ01.DAT.Play it in VLC.
53 51 4C 69 74 65The text "SQLite". A SQLite database.Query it with DB Browser for SQLite.
50 4B 03 04ZIP. 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 E1OLE compound file: pre-2007 Office documents, Outlook .msg files.Open it in the Office program that wrote it.
FF FE or FE FFA 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.exe gets 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:

Common encoding problems and what they look like
You seeIt isPick
GrößeUTF-8 text that was read as Windows-1252. The word is Größe.UTF-8
Gr�eWindows-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:

  1. Look at where the file sits. The folder name and the files beside it usually name the program.
  2. 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.
  3. Search the hex for a known marker. SQLite format 3, %PDF or the hex bytes 50 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

1

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.

2

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.

3

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.

4

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.

Input
level.dat from a Java Edition world (69 bytes, starts with 1F 8B 08)
Output
Detected: Gzip-compressed data. Unpacked: Gzip → Minecraft NBT. World name: My World · Game version: 1.20.4 · Game mode: Creative · Difficulty: Normal · Seed: -1234567890123456789

Frequently Asked Questions

What is a .dat file?
A .dat file is any file an application decided to call "data", so the extension says nothing about the contents. It can be a text config, an Outlook Winmail.dat wrapper, a gzip-compressed Minecraft save or a Video CD track. The first few bytes usually identify it, and that is what this viewer checks.
How do I open a .dat file?
Drop it on the box above. The viewer reads the first bytes, names the format, and opens the view that fits: message and attachments for Winmail.dat, an unpacked tag tree for level.dat, text for config files, hex for the rest. Notepad also works if the file is text, but it shows only symbols for anything binary.
How do I open a winmail.dat attachment?
Open it here and use the Message tab. It shows the subject, sender and message text, and lists each attachment with its own download button. Winmail.dat appears when the sender's Outlook used Rich Text format, so asking them to send as HTML or plain text stops it. An email attached inside the message is not expanded.
How do I read a Minecraft level.dat file?
Open it here and look at the Decoded tab. A Java Edition level.dat is gzip-compressed NBT, which the viewer unpacks to show the world name, game version, mode, seed and spawn point, plus the full tag tree as SNBT or JSON. It only reads. Copy the world folder before you edit anything with another tool.
Why does my .dat file show garbled text?
Either the file is binary, or it is text in another encoding. "Größe" means UTF-8 read as Windows-1252, a diamond-shaped replacement character means the reverse, and letters separated by gaps (d.e.b.u.g.) mean UTF-16. Try the Encoding menu in the Text tab. If every choice still looks like noise, use the Hex or Strings tab.
Is my file uploaded anywhere?
No. The file is read and decoded inside your browser tab, and its bytes are never sent to a server. The page loads the site's analytics like every other page here, and those scripts do not receive the file. You can confirm it in the Network tab of your browser's developer tools while you open a file.
How large a file can it open?
Hex view, byte search and offsets work on files of any size, because they read the file in slices. The Text tab shows files up to 8 MB at once; larger ones open as a 4 MB preview with a button to load everything up to 64 MB, since browsers are slow at laying out that much text. Unpacking gzip is capped at 64 MB of output, so a small file cannot expand into your memory.
Can I open a .dat file in Excel or Notepad?
Notepad works for text files and Excel for delimited ones. Open the file here first: the Text tab shows a table when it finds commas, tabs, semicolons or pipes, and Save as .txt gives you a file Excel's From Text/CSV import accepts. If the Text tab says the file looks binary, neither program will read it.

Related Tools

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.

As featured on

CodeItBro - Free dev tools + practical guides to help you ship faster | Product HuntCodeItBro - Free Online Developer Tools badgeCodeItBro badge