Input (hex bytes)
0a 03 41 64 61 10 2aThe Protobuf Decoder & Encoder reads and writes Protocol Buffers in your browser. Paste bytes as hex or base64 (or upload a .bin) and the Wire view lists every field the way protoc --decode_raw does: field number, wire type and the readings the bytes allow, with nested messages indented. Add your .proto schema and the JSON view names the fields, resolves enums, maps and nested messages, and formats int64 values, bytes and google.protobuf.Timestamp the way the proto3 JSON mapping does. Switch to Encode to go the other way: JSON in, bytes out as hex, base64 or a downloadable .bin.
Everything runs locally. The schema is parsed and the message encoded or decoded inside a web worker that has no network access, so payloads, schemas and JSON never leave the page. proto2, proto3 and editions syntax are accepted, and the google/protobuf well-known types (Timestamp, Duration, Any, Struct, wrappers) can be imported without pasting them.
The main file is the entry point for each run.
Use the Input panel to pipe standard input to your program when it needs data.
Run sends your code to a fresh hosted runtime and streams the result into the output panel.
Your draft stays in this browser, and Share creates a separate snapshot link.
0a 03 41 64 61 10 2a1: "Ada"
2: 42syntax = "proto3";
message Person {
string name = 1;
int32 id = 2;
}{
"name": "Ada",
"id": 42
}{ "name": "Ada", "id": 42 }0a 03 41 64 61 10 2a22 07 0a 03 2b 34 34 10 014 {
1: "+44"
2: 1
}10 ff ff ff ff ff ff ff ff ff 012: 18446744073709551615
int64 -1 · sint64 -9223372036854775808CgNBZGEQKg==1: "Ada"
2: 42The editor uses Monaco, the engine behind VS Code, with language-aware editing tools and familiar keyboard controls.
Paste bytes as hex (any spacing, 0x prefixes) or base64 in the Bytes tab, or upload a .bin
The Wire view shows every field by number with its possible readings, nested messages indented
Paste your .proto in the Schema tab and pick the message to get named JSON
Schema errors are marked on the line in the editor; the Wire view keeps working without a schema
Switch to Encode; the decoded JSON carries across as the input
Use the sparkle button to generate a sample JSON document for the chosen message
Output as hex, base64 or the Wire view; Download saves the real bytes as message.bin
Unknown field names and enum values are reported instead of silently dropped
The decoded message appears here as you type
The Protobuf Decoder & Encoder reads and writes Protocol Buffers in your browser. Paste bytes as hex or base64 (or upload a .bin) and the Wire view lists every field the way protoc --decode_raw does: field number, wire type and the readings the bytes allow, with nested messages indented. Add your .proto schema and the JSON view names the fields, resolves enums, maps and nested messages, and formats int64 values, bytes and google.protobuf.Timestamp the way the proto3 JSON mapping does. Switch to Encode to go the other way: JSON in, bytes out as hex, base64 or a downloadable .bin.
Everything runs locally. The schema is parsed and the message encoded or decoded inside a web worker that has no network access, so payloads, schemas and JSON never leave the page. proto2, proto3 and editions syntax are accepted, and the google/protobuf well-known types (Timestamp, Duration, Any, Struct, wrappers) can be imported without pasting them.
The main file is the entry point for each run.
Use the Input panel to pipe standard input to your program when it needs data.
Run sends your code to a fresh hosted runtime and streams the result into the output panel.
Your draft stays in this browser, and Share creates a separate snapshot link.
0a 03 41 64 61 10 2a1: "Ada"
2: 42syntax = "proto3";
message Person {
string name = 1;
int32 id = 2;
}{
"name": "Ada",
"id": 42
}{ "name": "Ada", "id": 42 }0a 03 41 64 61 10 2a22 07 0a 03 2b 34 34 10 014 {
1: "+44"
2: 1
}10 ff ff ff ff ff ff ff ff ff 012: 18446744073709551615
int64 -1 · sint64 -9223372036854775808CgNBZGEQKg==1: "Ada"
2: 42The editor uses Monaco, the engine behind VS Code, with language-aware editing tools and familiar keyboard controls.
Paste bytes as hex (any spacing, 0x prefixes) or base64 in the Bytes tab, or upload a .bin
The Wire view shows every field by number with its possible readings, nested messages indented
Paste your .proto in the Schema tab and pick the message to get named JSON
Schema errors are marked on the line in the editor; the Wire view keeps working without a schema
Switch to Encode; the decoded JSON carries across as the input
Use the sparkle button to generate a sample JSON document for the chosen message
Output as hex, base64 or the Wire view; Download saves the real bytes as message.bin
Unknown field names and enum values are reported instead of silently dropped
The decoded message appears here as you type