JSON to Avro
Convert JSON to Avro and download the result. Your input stays in your browser.
For the reverse conversion, use Avro to JSON.
- Use it when
- Write a standard Avro object container from JSON records and an Avro schema.
- Keep in mind
- Provide an Avro record schema and JSON records that match it. Maps and logical types are reported as unsupported.
JSON input
[
{"id": 42, "name": "Avery"},
{"id": 51, "name": "Ellis"}
]Avro output
Example Avro object container with an embedded Contact schema. Input limit: 5 MiB
Input limit: 5 MiB
Avro file
Your file will be available to download after conversion.
Your input stays in this browser. We don’t upload it. How we handle your data .
How to convert JSON to Avro
Paste JSON or open a local file. Provide the schema shown in the workspace. Select Convert to Avro, then download the result.
Frequently asked questions
What belongs in the Avro schema field?
Paste an Avro record schema. Its fields describe the records you are going to write. If the schema says name is a string, put the name in quotes in each JSON record.
Can I write more than one Avro record?
Yes. Supply an array of JSON objects that all match the same record schema. The converter writes them together in one Avro object container file.