Kaitai Struct Compiler is a binary data parsing code generator designed to simplify working with complex file formats and communication protocols. Written in Scala, it converts declarative YAML-based format descriptions into executable parsers for multiple programming languages. Developers can describe binary structures, conditional fields, variable-length records, and nested data types without manually implementing low-level parsing logic. The compiler supports configurable byte ordering, bit-sized integers, enumerations, and data validation expressions. Its generated parsers rely on language-specific Kaitai Struct runtime libraries. Supported target languages include C++, Java, Python, JavaScript, Go, Rust, and C#. The toolkit is useful for reverse engineering, digital forensics, protocol analysis, and binary file processing.

Features

  • Declarative binary format definitions through human-readable YAML-based specification files
  • Automatic parser code generation for multiple supported programming languages
  • Complex binary structure support with nested types and conditional fields
  • Configurable byte ordering, bit-sized integers, enumerations, and validation expressions
  • Variable-length record parsing with calculated fields and repeated data structures
  • Language-specific runtime library integration for binary data processing applications

Project Samples

Project Activity

See All Activity >

License

GNU General Public License version 3.0 (GPLv3)

Follow Kaitai Struct Compiler

Kaitai Struct Compiler Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Kaitai Struct Compiler!

Additional Project Details

Operating Systems

Linux, Windows

Programming Language

Scala

Related Categories

Scala Data Formats Software, Scala Compilers

Registered

2 hours ago