Drop your file to analyze it

CAPNP File

What are CAPNP files and how to open them

Are you having problems opening a CAPNP file or are you simply curious about its contents? We're here to explain the properties of these files and provide you with software that can open or handle your CAPNP files.

What is a CAPNP file?

A .CAPNP file is a Cap'n Proto Schema file.

Cap'n Proto Schema files are the files in which data structures, message formats, and interfaces are defined using the Cap'n Proto schema language. A software developer writes these schema files to specify the types, fields, and services that programs will use to exchange binary data safely and efficiently. They serve as a source of truth: the schema compiler reads them and generates code in various programming languages so that applications know how to build, send, receive, and interpret messages in a compatible way. This enables fast data serialization, version-safe evolution of message formats, and automatic Remote Procedure Call (RPC) support.

Such a schema file is plain text written in the Cap'n Proto Interface Description Language (IDL). After writing this schema, a developer runs the Cap'n Proto compiler (the "capnp" tool), which reads the schema file, checks its structure, and generates source files for target languages. During runtime, programs use the generated code to encode data into Cap'n Proto's compact binary format or decode such binaries back into usable in-memory objects. Version compatibility is managed by field numbering, allowing new fields to be added while preserving compatibility with binaries built under older schemas.

Internally, the schema file can begin with a unique 64-bit identifier declared with an "@" sign (for example "@0x..." at the top). The file may define structs, enums, interfaces, nested types, and imports of other schema files. The file associated with this format signature starts with the three ASCII characters "@0x8" at offset zero (that is the byte signature 0x403078).

How to open CAPNP files

Important: Different programs may use files with the CAPNP file extension for different purposes, so unless you are sure which format your CAPNP file is, you may need to try a few different programs.

We have not yet verified any programs for Windows that work with this specific file format. If you know one, please use the 'Suggest a program' link below. Thanks!

Last updated: August 25, 2026

Help us help others

File.org helps thousands of users every day, and we would love to hear from you if you have additional information about CAPNP file formats, example files, or compatible programs. Please use the links below or email us at submit@file.org to discuss further.