JSON input
Paste JSON, optionally name the root type, then generate.
Your Avro schema code will appear here.
Generate Apache Avro schemas from JSON. Records, unions for optional fields, arrays, and logical type hints are inferred from your sample.
Paste JSON, optionally name the root type, then generate.
Your Avro schema code will appear here.
Kafka producers and consumers agree on shape through Avro schemas. This generator converts a sample event payload into a registry ready schema, so your topics get type safety without hand writing JSON schema documents.
Event data is rarely uniform. By turning nulls and missing keys into null unions with defaults, the generated schema tolerates the variance your sample already proved exists.