Skip to main content
>_devtools

Protobuf Encoder / Decoder

Encode and decode raw or length-delimited Protobuf messages using a selected schema type.

What it does

Encode or decode a Protobuf message using a supplied proto2 or proto3 schema and an explicitly selected message type. Choose raw wire bytes or a length-delimited prefix, then enter JSON or local binary data.

Example

Schema: message User { string name = 1; }
Message: {"name":"Ada"}

Output: encoded Protobuf bytes for User

Limits and behavior

  • Schemas and imports are limited to 20 files and 1 MiB combined; messages are limited to 16 MiB.
  • 64-bit integers use decimal strings and byte fields use Base64 in JSON.
  • Imports resolve from selected local files or bundled well-known types, never remote URLs.