Protobuf Decoder (No Schema).
Decode raw Protocol Buffers messages from hex or Base64 without a .proto file.
Runs in your browserAbout Protobuf Decoder (No Schema)
The Protobuf Decoder reads a binary Protocol Buffers message without its .proto schema, the way protoc --decode_raw does. Paste the bytes as hex (with or without spaces) or Base64, for example a gRPC payload copied from a proxy, a value from Redis or Kafka, or a field from a mobile app's network log. The decoder walks the wire format and lists every field number with its wire type. Varints are shown as unsigned numbers with the signed int64, zigzag sint and bool readings next to them, because the wire format alone cannot tell which one the schema declared; fixed 32- and 64-bit fields show the integer, signed and float or double interpretations. Length-delimited fields are tried as printable UTF-8 text first, then as a nested message, and otherwise shown as raw bytes, which may also be a packed repeated field. Deprecated groups are supported. For example, 08 96 01 decodes to field 1 = 150, the example from the official encoding guide. All 64-bit values are exact, without JavaScript rounding. Typical surprises: a negative int32 takes ten bytes because it is sign-extended to 64 bits; a short string can occasionally also parse as a nested message; and field names are not stored in the message at all, so you only ever see numbers. Truncated or corrupted input is reported with the byte offset where decoding failed, which helps when a payload was cut by a log line limit or still has the 5-byte gRPC frame header in front (remove it). Decoding happens in your browser; the bytes are not sent anywhere.
How to Use
- Paste the message bytes as hex or Base64 (auto-detected).
- Read the decode_raw-style tree; each comment lists other ways to read the value.
- Use the fields table to look up nested paths such as 3.1.
Frequently Asked Questions
Why can't the decoder show field names?
Protocol Buffers never puts names on the wire, only field numbers and wire types. You need the .proto schema to map numbers to names and to know the exact type.
Why are several interpretations shown for one number?
A varint can be an int32, int64, uint, bool, enum or zigzag-encoded sint; a fixed64 can be an integer or a double. Without the schema the decoder lists the plausible readings.
My gRPC payload fails to decode. Why?
gRPC prefixes each message with a 5-byte header (a compression flag and a 4-byte length). Remove those bytes, or check whether the message is compressed.
Is my data uploaded?
No. Decoding runs in your browser.
Related Tools
Decode MessagePack bytes to JSON and encode JSON to MessagePack, with binary, ext and timestamps.
Convert text to hexadecimal bytes and hex dumps back to UTF-8 text.
Encode and decode Base64 strings.
Pretty print, minify, and validate JSON.
Convert numbers between bases (2–36).
Decode, inspect, and verify JSON Web Tokens.