Compiled XAML file
File type: Binary file
Files with the baml file extension contain the compiled, binary form of a XAML resource used by Windows Presentation Foundation (WPF) applications.
A baml file is normally embedded as a resource in a .NET assembly, including .NET Framework assemblies, rather than opened as a standalone document.
File type category:
Binary file
Date updated: November 3, 2026
The baml file extension identifies Binary Application Markup Language, the compiled form of the XAML format. Microsoft WPF build tools generate BAML from XAML markup so that it can be packaged with a .NET application.
A BAML resource can contain the object definitions, properties, and other markup information needed to create part of a WPF user interface. When the application runs, the WPF framework loads the BAML resource from the assembly and reconstructs the corresponding objects.
BAML is associated with WPF on Windows and remains part of the WPF application model, including modern .NET versions that support WPF. It is a binary runtime resource, not normally a file edited directly by application developers.
A baml file is not intended to be opened in a normal text editor or viewed as ordinary XAML. On Windows, it is normally loaded automatically by the WPF application whose assembly contains it.
Specialized BAML inspection or decompilation tools can sometimes extract an approximate XAML representation, but the original source markup may not be recoverable exactly.
There is no general-purpose conversion from BAML to another document format. BAML is normally regenerated by building the WPF application from its original XAML source.
A specialized decompiler may extract approximate XAML from a BAML resource for inspection or recovery, but the result may differ from the original source and may require manual correction.