Protobuf & Avro Schema Viewer

Browse .proto and Avro schemas as readable tables, find field-number and type mistakes, and get sample JSON for any message.

Runs in your browser. Nothing is uploaded.

Structure

    Paste a schema to see its messages, enums and services.

    How to use the Protobuf & Avro Schema Viewer

    1. Paste a .proto file or an Avro .avsc schema into the left box, open the file, or press Load .proto example or Load Avro example.
    2. The schema type is detected for you; choose Protocol Buffers or Avro in Schema type if needed.
    3. Read the summary, then open each message, enum or service on the right to see its fields, numbers, types and comments.
    4. Fix any problems listed above the structure, such as a field number used twice.
    5. Pick a message under Sample JSON to see an example of it in JSON, and copy it for tests or documentation.

    Make sense of a schema at a glance

    Protocol Buffers and Avro are schema languages for structured data. Protocol Buffers (protobuf) is used by gRPC services and many internal APIs; Avro is common in data pipelines and event streaming with schema registries. Their schemas define every message, field and type, but long files with nested messages, enums and imports are hard to read in a plain text editor. You scroll back and forth to find what a type is, which numbers are taken and what a field is for.

    This viewer parses the schema and shows its structure as an outline you can expand: messages or records with their fields, enums with their values, and services with their methods.

    What you see

    • A summary of how many messages, enums, services, fields and methods the schema has.
    • Each message with field numbers, names, types and labels such as repeated or oneof, plus the comments written above each field.
    • Enums with every value and number.
    • Services with each method’s request and response types, marked when they stream.
    • Avro records with field types, defaults and documentation.

    Catch mistakes early

    Some schema mistakes only show up when code is generated or when data no longer decodes. The viewer checks for the common ones: duplicate field numbers, numbers in the reserved range, reusing reserved numbers or names, unknown types, proto3 enums that do not start at 0, and required fields in proto3. For Avro it checks names, types and union defaults. Each problem shows the line and how to fix it.

    Sample JSON for any message

    Choose a message and the viewer writes an example in JSON, following the standard JSON mapping for protobuf (camelCase names, 64-bit integers as strings, enum names, ISO timestamps) or Avro’s JSON encoding. Use it to write tests, mock servers or API documentation without hand-typing every field.

    Everything runs in your browser, so internal service definitions never leave your device. For other API formats, see the GraphQL Formatter and the JSON Formatter.

    Frequently asked questions

    What does the sample JSON show?

    An example message with every field filled with a placeholder of the right type, using the JSON field names that Protocol Buffers' standard JSON mapping produces, such as orderId for order_id. 64-bit integers are strings, enums use their names and timestamps use ISO 8601. It is a starting point for tests, mocks and API documentation.

    Are imported files checked?

    The tool only sees the file you paste, so types from imports are not available. Well-known types such as google.protobuf.Timestamp are recognised. Other unknown types are reported as warnings when the file has imports, and as errors when it does not.

    Which problems does it find?

    Syntax errors with the line, field numbers used twice or in the reserved 19000–19999 range, numbers or names that were reserved, unknown types, proto3 enums whose first value is not 0, required in proto3, and a missing syntax line. For Avro, invalid names, unknown types and defaults that do not match a union's first type.

    Does it support proto2 and proto3?

    Yes, both, including nested messages, enums, oneof, map fields, reserved, options and services with streaming methods.

    Is my schema uploaded?

    No. Parsing happens in your browser, so internal API definitions stay private.

    Tutorials