Protobuf encoder & decoder
Load your .proto definition to convert between JSON and Protobuf Hex or Base64. Your message data is processed in your browser.
From definition to message
Start with a schema. Get a useful answer.
Protobuf is a binary format: a message carries field numbers and values, while a .proto definition supplies the field names and types. This workspace brings the two together.
Do not have the definition? Inspect the wire format without a schema to view field numbers and candidate values.
Load your protocol
Choose a folder containing the .proto files and their imports, or paste a single self-contained definition.
Choose the message and direction
Select the message type. Encode expects JSON; Decode expects Hex or Base64 bytes for that type.
Run and inspect the result
Copy the output, switch the binary representation or open a source file to check its fields.
Before you decode
Does the tool upload my Protobuf data?
Parsing, encoding and decoding happen in your browser. Definitions are cached in localStorage on your device. The site uses Google Analytics for usage measurement; see the privacy policy.
Why do I need the exact message type?
The same bytes can produce misleading results under a different schema. Select the package and message used by the sender, and load its dependent files.
Can I paste a full gRPC response?
This workspace expects an individual Protobuf payload. Remove transport framing and decompress the payload when needed before decoding. The decoding checklist explains the distinction.