Protobuf Wire Inspector
Decode raw Protobuf bytes into a field tree in your browser — no schema needed — with byte-to-tree highlighting and an optional .proto overlay.
Data is processed only in your browserHow to use
Protobuf Wire Inspector turns raw Protobuf binary into a field tree with no .proto file, working the same way protoc --decode_raw does. It reads the wire format byte by byte — varints, fixed 32/64, length-delimited fields and deprecated groups — and recovers each field's number, wire type and value. Paste a .proto on top and it layers the field names, types, enum labels and packed numbers onto the same tree. The two panes highlight byte ranges in sync, so you can walk a protocol section by section.
How to use: Paste your message as Base64 or hex and it decodes instantly. To see names instead of field 1 / field 2, open "Overlay .proto", paste the schema, and type the message to parse it as (for example demo.Order). Hovering any row in the tree highlights its bytes on the right; clicking a byte jumps to its node in the tree.
Protobuf wire types
| Wire type | Number | Carries |
|---|---|---|
| varint | 0 | int32 / int64 / uint32 / uint64 / sint32 / sint64 / bool / enum (sint uses ZigZag) |
| 64-bit | 1 | fixed64 / sfixed64 / double |
| length-delimited | 2 | string, bytes, nested message, packed repeated |
| group (deprecated) | 3 / 4 | start / end markers |
| 32-bit | 5 | fixed32 / sfixed32 / float |
How the key byte works
Each field begins with a varint key equal to (field_number << 3) | wire_type. So 08 is field 1 with wire type 0 (varint), and 12 is field 2 with wire type 2 (length-delimited). With no schema, these key bytes are exactly how the tool slices the message.
Typical uses
- Debugging a gRPC or binary API payload when you don't have the matching .proto
- Inspecting Protobuf-encoded fields in a capture or log to reverse-engineer an unknown protocol
- Checking that field numbers, wire types and packed encoding match a definition
Troubleshooting
Decode stops with an error? The input may not be a complete Protobuf message, or the bytes were truncated in transit. The tool still shows every field decoded before the break.
Seeing "not in schema"? A field number in your data has no match in the .proto you pasted — usually the wrong message type or a version mismatch. Pick the right message to clear it.
Frequently asked questions
Do I need a .proto file to use it?
No. The tool parses the Protobuf wire format directly — varints, fixed 32/64 and length-delimited fields — so it recovers field numbers, wire types and values with no schema, the same way protoc --decode_raw works. Pasting a .proto only layers on field names, types, enum labels and packed number lists.
How do the tree and the bytes link together?
Every row records the exact byte range it occupies, and the right-hand pane shows the raw data 16 bytes per row, colour-coded by nesting depth. Hovering either side highlights the matching bytes or field on the other; clicking a byte also jumps to its node in the tree.
What does "not in schema" mean?
It marks a field number that appears in your data but has no matching field in the .proto you pasted — usually the wrong message type, mismatched field numbers, or a different schema version. Pick the right message or complete the .proto to clear it.