Convert JSON to Protobuf Schema

How does a JSON object say goodbye?

I'll be key-ping in touch!

What did the array say to the JSON object?

You've got some serious key-value problems.

Why was the JSON file so confident?

It knew its place, key by key.

What do you call a well-structured JSON document?

A true object of desire.

Why did the JSON programmer break up with the XML programmer?

It was all talk and no action, too many closing tags.

JSON Input
Paste your JSON below to get started.
JSON to Other Formats
Convert your JSON to other formats and schemas.

syntax = "proto3";

message MyMessage {
  Vessel vessel = 1;
}

message Vessel {
  string name = 1;
  string registry = 2;
  string class = 3;
  string status = 4;
  bool commissioned = 5;
  int64 launch_year = 6;
  repeated Seniorstaff senior_staff = 7;
  Systems systems = 8;
}

message Seniorstaff {
  string name = 1;
  string position = 2;
  string species = 3;
}

message Systems {
  Warpdrive warp_drive = 1;
  Shields shields = 2;
}

message Warpdrive {
  double max_speed = 1;
  string manufacturer = 2;
}

message Shields {
  string capacity = 1;
}

// Corresponding TextProto data representation:

vessel {
  name: "USS Enterprise"
  registry: "NCC-1701-D"
  class: "Galaxy-class"
  status: "Active"
  commissioned: true
  launch_year: 2363
  senior_staff {
    name: "Jean-Luc Picard"
    position: "Captain"
    species: "Human"
  }
  senior_staff {
    name: "William T. Riker"
    position: "First Officer"
    species: "Human"
  }
  senior_staff {
    name: "Data"
    position: "Second Officer"
    species: "Android"
  }
  senior_staff {
    name: "Worf"
    position: "Chief of Security"
    species: "Klingon"
  }
  systems {
    warp_drive {
      max_speed: 9.6
      manufacturer: "Yoyodyne Propulsion Systems"
    }
    shields {
      capacity: "4,590,000 TJ"
    }
  }
}

From JSON to Protocol Buffers (Protobuf)
Transition from flexible JSON to the strongly-typed, efficient world of Protobuf.

Protocol Buffers (Protobuf) is a binary serialization format developed by Google, designed for performance and efficiency. Unlike JSON, which is text-based and human-readable, Protobuf is a binary format that is smaller, faster, and more strongly typed. Converting from JSON to Protobuf often involves defining a `.proto` schema file that describes the data structure. This schema enforces data types and field names, providing compile-time safety and reducing parsing overhead. A JSON-to-Protobuf converter is a valuable tool for migrating systems, allowing developers to automatically generate a starting Protobuf schema from existing JSON data. This accelerates the transition to a more performant and robust data communication method, especially in microservices architectures and high-performance applications.

What They're Saying Across the Galaxy

Don't just take our word for it. Hear from some of our most distinguished users.