Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Encoding & Decoding

Protobuf Decoder

Turn Protocol Buffers wire format back into something you can read. Drop in a .pb or .bin file or paste a hex or base64 dump and see the decoded value as JSON, plus a compact breakdown that lists each field number, wire type and decoded value. The tool reads the protobuf wire format end to end: the varint base-128 field key, and values as varint, 64-bit, 32-bit, and length-delimited (strings, bytes and embedded messages). It walks groups, decodes embedded messages recursively with a capped depth, and counts fields by wire type. The tool flags a truncated key or value, an overrunning length-delimited block, an unsupported wire type, and trailing bytes after the message. Everything runs on-device.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Drop a file here, or browse

Accepts: .pb,.bin,application/octet-stream,application/x-protobuf

Files stay on your device.

Ctrl+V to paste an image

    Try:

    Text is processed on this device. If a file is selected, the file is used instead.

    Options

    Drop a file above to begin

    Your file are processed on this device and never uploaded.

    How it works

    Reading the wire format without a schema

    Protocol Buffers messages are a sequence of fields, each starting with a varint key that packs the field number and the wire type. The wire type says whether the value that follows is a varint, a fixed 64-bit or 32-bit value, or a length-delimited block. Because the field names live in the .proto file rather than the bytes, the decoder shows field numbers and values, which is still enough to inspect a payload captured from gRPC or a message queue.

    What the decoder handles

    It decodes varints, 64-bit and 32-bit fixed values, and length-delimited fields. A length-delimited block that itself parses as a message is shown as an embedded message, and groups are walked with their start and end markers. The result is printed as JSON keyed by field number, with strings shown as text and binary payloads left as byte sequences so nothing is silently mangled.

    The field breakdown

    A second view lists each field number, its wire type and its decoded value. That table is the fastest way to see which field numbers a message actually uses and whether a repeated field was encoded packed or as separate entries. When a payload fails to decode in your application, a field appearing twice with different wire types is a common cause, and it is obvious here.

    Where it stops

    Without the schema the decoder cannot tell an enum from an integer, or a nested message from an arbitrary byte string; it makes the most reasonable structural guess and leaves the raw bytes visible. It flags a truncated key or value, a length-delimited field that overruns the input, an unsupported wire type and trailing bytes after the message. Input is capped at 16 MB and 100000 fields, and everything runs on-device.

    Questions

    Can it show the real field names?

    No. Field names and types are defined in the .proto schema, which is not stored in the encoded message. The decoder shows field numbers, wire types and values, and you can match them against your schema.

    How does it decide a block is an embedded message?

    A length-delimited field is re-parsed as a message when its bytes form a plausible sequence of fields. If that fails, the bytes are shown as a string or a byte sequence instead of forcing a structure.

    Does it support packed repeated fields?

    Yes. A packed repeated field is decoded as a list of values, and the field breakdown shows the wire type it used, so packed and unpacked encodings are distinguishable.

    What input formats are accepted?

    A .pb or .bin file, or pasted text in hexadecimal or base64. Detection is automatic by default, and the limits are 16 MB of input and 100000 decoded fields.

    See category