HomeDeveloper toolsJSON to Protobuf

JSON to Protobuf

Infer a proto3 message definition from a JSON object sample.

Processing stays in your browser. Requires non-null values and homogeneous nonempty arrays. Generated field numbers and inferred types need review before defining an API contract.

How to use the json to protobuf

Infer a proto3 message definition from a JSON object sample. Complete the json object, root message name fields above, or upload a UTF-8 text file for json object. Choose Run tool, review the output, then copy or download the result.

Example

A string name becomes string name = 1.

Good to know

Requires non-null values and homogeneous nonempty arrays. Generated field numbers and inferred types need review before defining an API contract.