Skip to main content

Structured Data

Protobuf Encoder

Transform structured data with Protobuf Encode and review the valid output. Enter the data, choose the formatting options, then validate and copy the result.

Tool workspace

Your input stays in this browser.

Add the required input to continue.

Needs input

You can run the tool again after any change.

Options

Drag and drop is enabled on this ingredient

Your result appears here

Transform structured data with Protobuf Encode and review the valid output. Enter the data, choose the formatting options, then validate and copy the result.

This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.

Protobuf Encoder serializes supported field data into Protocol Buffers bytes.

Protobuf bytes for the message. Processing runs in the browser.

Instructions

  1. Provide text or data for this tool.
  2. Define fields before encoding values.
  3. Check wire types and repeated-field rules.
  4. Decode a sample output with the receiving schema.

Example

Input: A supported message with name: Ada

Settings: Protobuf Encoder: Use the matching message definition and field numbers.

Result: Protobuf bytes for the message.

Limits

  • Protobuf Encoder: The receiver needs compatible field numbers and types.
  • Protobuf Encoder: Binary output is not readable without a schema-aware decoder.
  • Protobuf Encoder: Processing stays in the browser.