Binary Formats

Protobuf Decoder

Decode protobuf wire data against a `.proto` schema, or without one.

  • Draft kept in this tabYour draft is kept in this tab's session storage and cleared when the tab closes.
  • Runs in your browserProcessing happens in this page. No application server receives your input.
Load sample
Needed when the schema defines more than one message.

Wire data (hex or Base64)

Decoded fields

Drop a binary protobuf payload (.pb, .bin) or paste hex / Base64 wire bytes to inspect its fields and byte spans.

Optional .proto schema

schemaless

What this tool does

Decodes Protocol Buffers wire data two ways: against a .proto schema when you have one, and in schemaless wire mode when all you have is a raw gRPC or protobuf response body. Every decoded field is linked to its half-open byte span [start, end) in the synchronized hex pane.

Ambiguity management & readings

Wire tags encode (field_number << 3) | wire_type. In schemaless mode, varints show unsigned decimal, zigzag (sint64), and plausible Unix timestamp readings; length-delimited fields evaluate nested-message, UTF-8 string, packed varint, and hex byte readings without collapsing valid interpretations.

Limits & operational bounds

Schemaless decoding cannot recover field names (protobuf does not transmit them) so fields appear as numbers. It cannot always recover types either: wire type 2 is a string, a byte string, a nested message, and a packed repeated field, all four, and the tool shows every reading that parses rather than guessing one. Groups (wire types 3 and 4, deprecated since proto2) are decoded but not re-encoded. This tool decodes; it does not encode, and it does not call anything.

Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.