HomeAll toolsProtobuf Wire Inspector

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 browser
71 B · 13 fields
Encoded message (bytes)
.proto (optional: names, types, enums, packed)
Decoded tree
varint1id999
len2note"hello protobuf"
len3shipmessage · 14 B
len1city"Shanghai"
len2country"CN"
varint4delta-42raw 83
i325port8443s 8443
i646ratio2.71828
len7tags"web"
len7tags"nov"
len8numspacked · 4 B3, 44, 1000
varint9source1= WEB
varint10paid1= true
Byte map · hover either side
000008e707120e68656c6c6f2070726f746f·····hello proto
00106275661a0e0a085368616e6768616912buf····Shanghai·
002002434e20532dfb2000003190f7aa9509·CN S-· ··1·····
0030bf05403a037765623a036e6f76420403··@:·web:·novB··
00402ce80748015001,··H·P·

How 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 typeNumberCarries
varint0int32 / int64 / uint32 / uint64 / sint32 / sint64 / bool / enum (sint uses ZigZag)
64-bit1fixed64 / sfixed64 / double
length-delimited2string, bytes, nested message, packed repeated
group (deprecated)3 / 4start / end markers
32-bit5fixed32 / 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.

See all questions

Go deeper

Related tools