.NBT

NBT File

Minecraft Named Binary Tag File
Ask a question
QUICK ANSWER

An NBT file is a Minecraft save data file using the Named Binary Tag format - a binary tree that stores world metadata, player inventories, and structures. Open it with NBTExplorer (free, Windows/Mac/Linux) to browse and edit the tag tree. NBT files contain no executable code and cannot carry malware, but a corrupted one can break a world save, so back up before editing.

Developer: Mojang Studios (Markus "Notch" Persson, original spec) Category: Game Files Open standard MIME: application/x-nbt
OPENS ON Windows macOS Linux Web
Related: .OBB · .PAK · .ROFL · .PACKAGE

On this page

19k+ extensions indexed
Last reviewed Sep 7, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the NBT file format?

The .nbt file is Minecraft's Named Binary Tag format - a hierarchical, typed binary data container used pervasively throughout Java Edition and Bedrock Edition worlds. Markus "Notch" Persson designed and published the NBT specification in 2010 alongside Minecraft Alpha.

Every .nbt file is a tree of typed, named tags rooted in a TAG_Compound. There are 13 tag types: byte, short, int, long, float, double, byte array, string, list, compound, int array, and long array (the last two added in 2011 and 2017 respectively). Java Edition stores .nbt files GZip-compressed - the file opens with magic bytes 1F 8B. Bedrock Edition uses a little-endian, uncompressed variant with a 4-byte version prefix and a 4-byte file-size field.

The format serves many roles within a Minecraft installation: level.dat stores world metadata, player.dat tracks inventory and position, region files embed NBT-encoded chunks, and the /structure save command exports structure files with the .nbt extension. Scoreboards, statistics, and advancements are also stored as NBT.

Java and Bedrock editions are format-incompatible due to endianness differences, so tools such as NBTExplorer must detect which edition produced the file. Because most Java Edition .nbt files are GZip-wrapped, you can inspect raw content by decompressing with any GZip-compatible tool before reading the binary tag stream.

Security & safety

RISK: LOW

NBT is a pure data format with no executable content; it cannot contain malware. Corrupted NBT can break a Minecraft world save, so always back up before editing.

Format details

in a nutshell
FULL NAMEMinecraft Named Binary Tag Fileaka NBT file, Named Binary Tag
DEVELOPERMojang Studios (Markus "Notch" Persson, original spec)since 2010 (Minecraft Alpha; NBT spec published by Notch)
CATEGORYGame Files
MIME TYPEapplication/x-nbt
TYPEbinary (hierarchical tag-based data)
STANDARDOpen · royalty-free
This extension is also used by…
  • Nero BackItUp Template - Nero BackItUp (now Nero BackItUp & Burn, EOL circa 2015) used .nbt for backup task templates; completely unrelated binary format.
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001
HEX
1F8B
ASCII
··
Most .nbt files are GZip-compressed; raw uncompressed NBT starts with 0x0A (TAG_Compound) at offset 0. Bedrock edition uses little-endian uncompressed NBT with a 4-byte version header.

Programs that open NBT files

Windows2 apps
NBTExplorer Open-source Open the NBT file to browse the tag tree, edit values, add/delete tags and save. Supports both Java and Bedrock formats.
Minecraft (Java Edition) Paid Minecraft reads NBT files natively as part of world saves; use /structure load for .nbt structure files.
macOS1 app
NBTExplorer Open-source Cross-platform; open NBT file for tree editing. Requires .NET/Mono on macOS.
Linux2 apps
NBTExplorer Open-source Runs via Mono on Linux; open NBT file to inspect and edit the tag tree.
nbt (Python library) Open-source pip install nbt; import nbt; parse NBT files programmatically in Python scripts.
Web1 app
NBT Studio (web viewer) Open-source Alternative desktop GUI (Windows); more modern than NBTExplorer with drag-and-drop editing.

Technical details

deep spec
File encodingBinary - hierarchical named tag tree
Byte orderBig-endian (Java Edition); little-endian (Bedrock Edition)
CompressionGZip (Java Edition standard files); uncompressed with 8-byte header (Bedrock Edition)
Root structureAlways a single TAG_Compound; all other tags nest inside it
Tag types13 named types: byte, short, int, long, float, double, byte_array, string, list, compound, int_array, long_array
Magic bytes`1F 8B` (GZip magic, Java Edition); raw uncompressed NBT begins with `0A` (TAG_Compound)
Bedrock header4-byte little-endian version number + 4-byte file-size field preceding the NBT payload
Integrity checkGZip CRC-32 (when GZip-wrapped)
Typical file size1 KB - 10 MB (player data a few KB; large structure exports up to several MB)
MIME type`application/x-nbt` (informal); `application/octet-stream` in practice
Java-Bedrock compatibilityIncompatible byte orders; tools must detect which edition produced the file before parsing
Uses within Minecraft`level.dat`, `player.dat`, `/structure save` exports, scoreboard data, and chunk data in region files
Released2010 (Minecraft Alpha; NBT spec published by Notch)
Latest versionNBT with TAG_Long_Array (tag type 12), added in Minecraft 1.12 (2017)
Open standardYes · royalty-free
Specificationminecraft.wiki

NBT conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with NBT files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about NBT files.

Frequently asked questions

What is an NBT file in Minecraft?
A Named Binary Tag file - Minecraft's binary data format used to save structures, player data, world metadata and more. All major Minecraft save data uses NBT internally.
How do I open and edit an NBT file?
Use NBTExplorer (free, open-source, Windows/Mac/Linux) to browse and edit the tag tree. NBT Studio is a more modern alternative.
What is the difference between Java and Bedrock NBT?
Java Edition uses big-endian byte order and typically GZip compression. Bedrock Edition uses little-endian and a 4-byte version header. NBTExplorer handles both.
Can I convert NBT to JSON?
Yes - the Python nbt library and various tools can export NBT as JSON or SNBT (Minecraft's own text format). Some type fidelity may be lost (JSON has no byte/short types).
What is an NBT structure file?
A .nbt file created by the /structure save command in Minecraft; it stores blocks, entities and block entity data for a region. Placed with /structure load or in a datapack.

References

1Minecraft Wiki - NBT formatminecraft.wiki
2GitHub - NBTExplorergithub.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.MDMarkdown Document
4.PARTPartial Download File
5.RPMSGRestricted Permission Message
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.PRO6XProPresenter 6 Bundle File
10.SWFSmall Web Format (Shockwave Flash)

Related extensions

.OBBAndroid Opaque Binary Blob (APK Expansion File)
.PAKGame Resource Package (PAK)
.ROFLLeague of Legends Replay
.PACKAGEThe Sims / Maxis DBPF Package (game content & mods) - dominant meaning
.XSBXACT Sound Bank
.SAVSaved Game File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z