Avro Schema

Draft Avro record schemas from JSON examples

Generate Avro record schemas from JSON payloads or JSON Schema drafts and review nested records and array types before sending them to a schema registry.

Where this helps

Schema registries like Confluent, Pulsar, and AWS Glue expect Avro record definitions. Hand-writing them from JSON samples often misses types or nullability. Use this generator as a fast starting point, then add `default`, `logicalType`, and `doc` fields to match domain rules.

Review checklist

  • Rename the record and namespace to match your project
  • Nullable fields should be `["null", "<type>"]` unions
  • Time values should declare `logicalType: timestamp-millis` or similar
  • Enums and integer widths deserve domain-specific review

Pairs well with

Jump to other JSON2Class utilities that naturally follow this one.

JSON to Java

Generate Java DTOs and review validation-oriented API models.

JSON to Kotlin

Review nullability and Kotlin data class structure quickly.

JSON Formatter

Format sample payloads before sending them back into the converter.