syntax = "proto3";
package billing.v1;
message OrderEvent {
string order_id = 1;
int32 amount_cents = 2;
double settled_ratio = 3;
bool paid = 4;
repeated string tags = 5;
Customer customer = 6;
}
message Customer {
int64 user_id = 1;
string email = 2;
}Pin this tool to your browser side panel
Access this utility anytime with Alt+M without switching tabs. 100% offline & free.
How to Infer a Proto3 Definition from JSON
- 1Paste any valid JSON object or array of objects into the left editor.
- 2Configure package name, root message name, optional go_package, and snake_case preference.
- 3Copy the inferred syntax = "proto3" definition for buf or protoc.
Safe Recursive Type Inference
32-bit vs 64-bit integer thresholds and nested objects are analyzed locally in JavaScript with zero server calls.
Frequently Asked Questions
Enjoying JSON to Protobuf (proto3) Schema Generator?Help your engineering peers discover private, ad-free tools!
MiniToolDesk is 100% free and client-side. Your support keeps the web ad-free.
Related Developer Utilities
SQL Formatter & Beautifier
Beautify, format, and indent messy SQL queries across MySQL, Postgres, SQLite in local memory
JWT Debugger & Decoder
Safely decode, verify, and inspect JSON Web Tokens (JWT) payload and headers in local memory
YAML to JSON Converter
Convert YAML to JSON and JSON to YAML bidirectionally with real-time validation
Developer & Tech Unit Converter
Convert Data Storage (KB/KiB, MB/MiB, GB/GiB), CSS units (px to rem), Length, Speed, and Temp