Skip to content

Protobuf to JSON Schema

Embed

Paste this where you want Protobuf to JSON Schema on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/protobuf-to-json/" width="100%" height="500" frameborder="0" loading="lazy" title="Protobuf to JSON Schema"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/protobuf-to-json/">Protobuf to JSON Schema</a> by BrowserUtils</p>

Convert Protobuf definitions to JSON Schema.Runs in this tab.

Next step

About Protobuf to JSON Schema

Free online Protobuf to JSON converter. Parse Protocol Buffer message definitions and generate JSON Schema or example JSON with proper type mappings. It runs in your browser. Nothing is sent to a server.

Questions

What protobuf types are mapped?
The converter maps string→string, int32/int64→integer, float/double→number, bool→boolean, bytes→base64 string, repeated fields→arrays, nested messages→nested objects, and enums→string enums.
Does it support proto3 syntax?
Yes, the tool parses proto3 message definitions including nested messages, enums, repeated fields, map types, and oneof constructs.
Can I convert a .proto file to a JSON example?
Yes, paste your .proto message definition and the tool generates both a JSON Schema and an example JSON object with placeholder values matching the defined types.
What is Protocol Buffers used for?
Protocol Buffers (protobuf) is a binary serialization format developed by Google. It is smaller and faster than JSON and is widely used in gRPC services, internal Google APIs, and high-performance data exchange.
Does this Protobuf converter work offline?
Yes, the parsing and conversion run entirely in your browser. No .proto files or data are sent to any server.
Can I convert nested protobuf messages to JSON?
Yes, nested message types are converted to nested JSON Schema objects or nested JSON objects in the example output, preserving the full structure of your protobuf definition.

More in Encoding & Decoding

All 20 encoding & decoding