JSON to Protobuf Converter

Paste a JSON sample and get a proto3 schema for gRPC or Protocol Buffers. Nested objects become their own messages and arrays become repeated fields.

Example

Input
{
  "name": "parsebox",
  "version": "2.1.0",
  "private": false,
  "maintainers": [
    { "name": "Ada Lovelace", "email": "[email protected]", "active": true },
    { "name": "Alan Turing", "email": "[email protected]", "active": false }
  ],
  "build": {
    "target": "es2022",
    "minify": true,
    "port": 5173
  }
}
Output
syntax = "proto3";

message Root {
  string name = 1;
  string version = 2;
  bool private = 3;
  repeated Maintainer maintainers = 4;
  Build build = 5;
}

message Maintainer {
  string name = 1;
  string email = 2;
  bool active = 3;
}

message Build {
  string target = 1;
  bool minify = 2;
  int32 port = 3;
}

Private by design

ParseBox runs entirely in your browser. Your text is never uploaded, logged or stored on a server, so it is safe to paste API responses, tokens and config files.

Related conversions

All 30 formats in ParseBox →