JSON to Avro converter
Infer an Avro schema from JSON, generate the C# model, compare sizes per codec and download the .avro file.
Loading AvroConvert 4.0.0-preview.2 (WebAssembly, about 3 MB, cached after the first visit)…
An object or an array of objects. The schema is inferred from the values · Ctrl/⌘+Enter to convert
Size of this data
An Avro file carries its schema in the header ( here), so for a handful of records it can be larger than the JSON. The records themselves are binary and usually several times smaller; paste more data to see the difference grow.
Your data stays here
AvroConvert runs inside this page as WebAssembly. Schemas, files and messages are processed in your browser and never uploaded. Shared links keep their content after the #, which browsers do not send to servers.
The same code as the library
These tools call the AvroConvert 4.0.0-preview.2 NuGet package, so what you see here is what your .NET service will do.
dotnet add package AvroConvert AvroSchema.InferFromJson(json);
AvroConvert.Json2Avro(json, CodecType.Deflate); Avro in production .NET
Free for individuals, open source and companies under 100 people and USD 1M revenue. Larger companies use a per-organisation licence with unlimited developers.