Protobuf inspector

Choose a Protobuf binary message or try the sample to inspect wire numbers, raw values and UTF-8 candidates locally.

Formats PB · BINSteps & examples
A magnifying glass reveals groups of holes in a binary tape.

Workspace

Runs locally in your browser. No file upload.

Input & settings

Choose a file to get startedRead locally · No upload · Binary: 20 MiB max

No file selected

Have the matching .proto? Decode named, typed JSON with the schema.

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.

Inspect Protobuf wire data without a schema

  1. Choose a raw Protobuf binary message.
  2. Inspect field numbers, wire types, raw values and possible UTF-8 text.
  3. Download the inspection report and compare it with the expected message structure.

Worked example

The bytes 08 96 01 encode field 1 as a varint with raw value 150. The wire data does not reveal the field’s name or declared Protobuf type.

Input and output

Select the bytes of one serialized message or run the built-in sample first. The local report lists field numbers and wire types in the order encountered. Use this to check whether an expected field number appears before requesting the original schema for a typed decode.

Format and size limits

A length-delimited field could be text, arbitrary bytes, packed numbers or another message. Even a readable UTF-8 candidate is only an interpretation. The inspector stops after 20,000 fields and does not recursively assign names or semantics to nested data.

If processing fails

If the first tag is invalid or a value ends unexpectedly, confirm you have the complete message body. A capture may include transport headers or framing bytes before the actual Protobuf payload. Obtain the standalone payload from the producer and compare its byte length before trying again.

Questions about this tool

Can inspection recover the original field names?

No. Field names and declared types live in the .proto schema, not in the wire message. Supply that schema to the typed Protobuf-to-JSON decoder.

Is every readable byte field a string?

No. Length-delimited bytes can contain strings, raw bytes, packed values or nested messages. UTF-8 candidates are clues, not confirmed types.

How it works

Decodes protobuf wire tags, varints, 32-bit and 64-bit fields, and length-delimited bytes. Results are JSON inspection records.

Important limitations

This is not a typed conversion without a .proto schema or descriptor; binary floats, repeated fields and embedded messages cannot be inferred reliably.