SmallTools

Protobuf (Protocol Buffers)

Encode/decode using a provided .proto schema (client-side via protobuf.js).

Only simple proto3 features are supported here. For complex schemas, consider using the protobuf.js CLI offline.
Result
Hex

How to Use

01

Provide Your Schema

Paste your `.proto` schema into the editor. Define your messages using standard Proto3 syntax.

02

Set Message Type

Enter the name of the message type you want to encode or decode (e.g., 'Person').

03

Input Data and Process

Choose to encode JSON into Protobuf binary, or decode binary back into JSON. Supports both Hex and Base64 formats.

Frequently Asked Questions

What are Protocol Buffers?

Protocol Buffers (Protobuf) is Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data—think XML, but smaller, faster, and simpler.

How does this tool handle schemas?

This tool uses `protobuf.js` to parse your schema entirely in the browser. It lets you test your message formats without needing to install the `protoc` compiler locally.

Are my schemas and data private?

Yes. All parsing, encoding, and decoding happen locally on your device. Your schemas and the data you process are never uploaded to any server.