JSON to Protobuf

About this tool

Paste any JSON and get ready-to-use proto3 message definitions. Types are inferred recursively: whole numbers become int64, fractional numbers become double, booleans become bool, and strings become string. Each field gets a sequential tag number (=1, =2, …). Nested objects become their own named messages derived from the field name, and arrays become repeated fields of the inferred element type. The root message name is configurable and defaults to Root.

This is a quick way to bootstrap a .proto schema from a sample payload before wiring up gRPC or serialization. The whole tool is plain JavaScript running locally in your browser — no build step, no server, no upload — so it is safe for private or proprietary payloads.

Related tools

JSON FormatterJSON to TypeScriptJSON to C++JSON to JSON Schema