Avro Viewer
What is the Avro Viewer?
Read an Apache Avro schema as raw JSON and you end up counting braces to work out which record a field belongs to. The Avro Viewer lays it out as a table instead. Paste an .avsc or a JSON-encoded Avro record into the narrow editor on the left and the wide pane on the right shows each top-level key on its own row, with anything nested (the fields array, an enum's symbols) opened up as a smaller table inside the cell. Give it an array of records and you get one row per record, with a filter box above every column.
Avro schemas describe records, enums, arrays, maps, unions, and primitive types, and they get nested fast. A four-level Order → OrderItem → Address → Geo schema is unreadable when it arrives unformatted. Spotting a typo in a field name, finding which record owns a particular logical type, or comparing two versions during a Schema Registry evolution review: all of that gets easier once the structure is laid out.
Everything runs in your browser. No upload to a server, no schema stored anywhere. Paste, read, copy.
How to Use the Avro Viewer
There is no Convert or Upload button on this page. The left editor is the only way in, the table redraws 300 ms after you stop typing, and the controls above it appear once there is something valid to show.
Paste, Upload, or Load a Sample
Paste a schema or a record into the left editor, or press Sample, which fills the editor with an Order schema: its items are OrderItem records, placedAt carries timestamp-millis, and currency is an enum. A list of records shows the table at its most useful, because each record becomes a row you can filter:
[{"readingId":"RD-3301","sensor":"cold-room-2","celsius":3.8,"tags":["dairy"]},{"readingId":"RD-3302","sensor":"cold-room-2","celsius":5.1,"tags":["dairy","alert"]}] Under the Avro 1.11 specification a schema and an encoded record are both plain JSON, so either one works here. A schema that arrives as one quoted JSON string, the way some registry APIs return it, can go in unchanged; it is unwrapped before the table is built.
Read the Formatted Output
For a list of records, Main flips the outer table so the keys run down the left side. Nested flips every inner table, which turns a schema's fields array into one row per field with name, type and doc columns. Full Screen opens the table in a large window for schemas with dozens of fields. If the text stops being valid JSON, the table is replaced by the parser's error message until you fix it.
Copy or Download
With Edit switched on, a double-click opens a cell for typing and the remove mark on a column header drops that column. Both changes are written back into the JSON on the left, which is parsed in the browser with JSON.parse() semantics. Press Done when finished and Excel to download the table as AvroViewerExport.xls. To keep the edited JSON, select it in the left editor and copy it from there.
When You'd Actually Use This
Schema Registry Reviews
Reviewing an Avro schema PR before it goes into a Schema Registry? Paste the diff in here and read it side-by-side with the previous version. Much easier than scrolling through a single-line blob.
Kafka Topic Debugging
You hit a deserialization error on a Kafka topic. The bad message comes back as JSON-encoded Avro. Paste it in, find the field that does not match the schema, fix the producer.
Documenting an Event
Writing up an event for the team wiki? Load its schema, switch Nested on so every field sits on its own row with its type and doc beside it, then export with Excel or take a screenshot. People who never open JSON can still check each field name.
Onboarding Newcomers
Walking a new teammate through an Avro-based pipeline? Pretty-printed schemas with field names on their own lines are a lot less intimidating than the unformatted blob that lives in the registry.
Common Questions
Does it support binary Avro container files?
Not directly. This viewer reads JSON inputs: Avro schemas (which are JSON) and the JSON encoding of Avro data. For binary .avro Object Container Files, use the avro-tools command-line utility to dump them to JSON first, then paste the JSON here.
Is my schema sent to a server?
No. Parsing runs entirely in your browser using the native JSON.parse() and JSON.stringify(). Nothing is uploaded, nothing is logged.
Will it complain if my schema is structurally wrong?
It validates JSON syntax only: missing braces, stray commas, that kind of thing. For full Avro structural rules (every record needs type, name, and fields; primitive type names; resolution of named types in unions), use the Avro Validator.
What's the difference between this and the JSON Viewer?
Avro schemas are valid JSON, so the JSON Viewer technically works on them. The Avro Viewer adds Avro-flavored sample data, an Avro-aware page, and links out to related Avro tools (validator, fixer, converters). Cosmetically similar, contextually different. For plain JSON with no Avro context, the JSON parser on our home page draws the same kind of table.
How big a schema can I paste?
A schema with a few hundred fields renders comfortably. Every nested value becomes another HTML table, though, so a very large or deeply nested document turns into thousands of page elements and scrolling gets sluggish long before parsing does. For a big dump, cut it down to the records you care about before pasting.
How does a field typed as timestamp-millis or decimal show up in the table?
As a small nested table inside that field's type cell, with type set to long and logicalType set to timestamp-millis, exactly as the schema declares it. The viewer shows the annotation; it does not turn epoch milliseconds into dates. See the logical types section of the Avro spec.
Other Avro Tools
Viewing is one part of working with Avro. These tools handle the rest: