Protobuf to JSON

Upload a protobuf wire message and its .proto definition for fully typed JSON decoding.

Formats PB + .proto → JSONSteps & examples
A decoder turns punched tape and a schema card into a data tree.

Workspace

Your file is uploaded temporarily for processing.

Input & settings

Choose a file to get startedBinary: 8 MiB max · Uploaded only when you click Decode Protobuf

No file selected

Protocol Buffers schema (.proto)Schema: 256 KiB max · Uploaded only when you click Decode Protobuf

No file selected

No schema? Inspect raw wire fields locally.

Sample files and expected JSON

Try sample loads these synthetic files on your device; it does not upload them. On the schema decoder, click Decode Protobuf to send the sample explicitly.

Download sample schema (.proto) · Download sample binary (.bin) · Download expected JSON

Message type: demo.Person

syntax = "proto3";
package demo;
message Person {
  string name = 1;
  uint32 age = 2;
  bool active = 3;
}

Expected typed JSON (the wire inspector reports raw numbered fields instead):

{"message_type":"demo.Person","data":{"name":"Ada","age":37,"active":true}}

Select a file or try the sample to begin.

Result

Run the tool to check your output here.

Decode Protobuf with its original schema

  1. Choose the binary message and its matching .proto file.
  2. Enter the fully qualified message type if the schema contains several messages.
  3. Decode, review the typed JSON and download the result.

Worked example

Choose a Person message and the schema that encoded it. For package demo and message Person, enter demo.Person, then Decode Protobuf. Review field values in the JSON result before downloading.

Input and output

Temporarily upload a Protobuf binary message and its .proto schema to download typed JSON. The API limits binary messages to 8 MiB and schemas to 256 KiB; the file pickers and API enforce the same limits.

Format and size limits

The message type name can be at most 160 characters. A schema is necessary for typed decoding; the schema-free binary inspector only exposes wire fields. Imported definitions must be available to the schema compiler.

If processing fails

A mismatched schema, missing import, wrong fully qualified message type or truncated binary can fail compilation or decoding. Obtain the original schema instead of guessing field types.

Questions about this tool

Why is a matching .proto file required?

The schema defines field names and types. Wire inspection alone cannot reliably distinguish every numeric, string, byte or nested-message value.

Can I upload a schema that imports my project’s other .proto files?

The form accepts one schema file. Only installed well-known Google imports are available; custom dependencies must be resolved before decoding.

How it works

The server compiles the supplied schema with protoc, resolves the message descriptor and uses Google protobuf dynamic decoding and canonical ProtoJSON formatting.

Important limitations

Correct .proto schema is required. Imports other than installed well-known Google schemas are not supported in the single-file upload. Choose the correct message type for multi-message schemas.