Skip to content

Compiled (XNB) Content Format

Simon (darkside) Jackson edited this page Aug 21, 2020 · 7 revisions

Compiled (XNB) Content Format

Area Submitted Type
Games: Content Pipeline 7/7/2011 Code Sample

Description

This article documents the format of the compiled data files (.xnb) produced by the XNA Game Studio 4.0 Content Pipeline build process. This information may be useful if you wish to write your own code to load .xnb files into a programming environment other than XNA / .NET, or if you wish to create .xnb files independently of the usual Content Pipeline build process.

It also includes an example .xnb parser, written in native C++, which demonstrates how to parse a compiled XNB file by printing its contents to the screen. This can be used as a reference to help you understand how to write your own XNB loader, and also as a debugging tool for investigating exactly what data is contained within an XNB file.

All content and source code downloaded from this page are bound to the Microsoft Permissive License (Ms-PL).

Download Size Description
XNA_XNB_Format 0.06MB Specification and sample parser for the XNA Compiled Content Format (XNB).
XNA_XNB_Format.zip 0.06MB Specification and sample parser for the XNA Compiled Content Format (XNB).
Clone this wiki locally