JSON input
Paste JSON, optionally name the root type, then generate.
Your Protobuf message code will appear here.
Turn JSON into Protocol Buffer message definitions. Numbered fields, scalar types, repeated fields, and nested messages are generated for you.
Paste JSON, optionally name the root type, then generate.
Your Protobuf message code will appear here.
Teams moving from JSON REST to gRPC need .proto definitions that match existing payloads. This tool converts a sample response into proto3 messages, so your new binary API speaks the same shape as the old JSON one.
The generated numbers are a starting point. Once a .proto ships, never reuse or reorder numbers: protobuf's backward compatibility depends on those numbers staying put forever.