Avro Formatter
Paste minified Avro schema JSON and reformat it into readable .avsc output.
Last updated: May 29, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is Avro Formatter?
Avro Formatter is a focused formatter for Apache Avro schema files. Avro schemas are JSON documents, but they often become difficult to review when record fields, logical types, unions, and defaults are compressed into one line. This tool parses the schema as JSON, prints it with consistent indentation, and reports helpful schema details such as type, name, and field count.
How to Use Avro Formatter
Paste an Avro schema JSON document.
Choose the indentation style.
Click Format.
Review any JSON parse error with line and column details.
Copy or download the formatted .avsc file.
Common Use Cases
- Reviewing Avro schemas before committing them to a schema registry.
- Cleaning up minified .avsc files from build output.
- Preparing readable Avro examples for API documentation.
- Checking whether pasted schema JSON is valid before sharing it.
Example Input and Output
A compact Avro record schema is expanded into readable JSON.
{"type":"record","name":"User","fields":[{"name":"id","type":"string"}]}{
"type": "record",
"name": "User",
"fields": [
{
"name": "id",
"type": "string"
}
]
}Privacy
Avro schemas are parsed and formatted in the browser, which keeps internal event names and field lists local.
Frequently Asked Questions
Does this validate Avro compatibility rules?
No. It validates JSON syntax and formats the schema. Compatibility checks still belong in your schema registry or Avro build pipeline.
Can it format .avsc files?
Yes. Paste the .avsc contents and download the formatted output with an .avsc filename.
Does formatting change the schema?
No. JSON keys and values are preserved. Only whitespace and indentation are changed.
Is my schema uploaded?
No. The formatter runs locally in your browser.
Related Tools
JSON Formatter
Format, validate, and beautify JSON instantly — with clear error messages, Tree View, Diff mode, and Schema validation.
JSON Validator
Validate JSON syntax online. Shows valid/invalid status, error location (line and column), and structure stats including type, key count, and depth.
JSON Tree Viewer
Visualize JSON data in an interactive tree structure.
JSON Cleaner
Clean JSON by removing null values, empty strings, empty arrays, and empty objects. Configurable per value type with a removal count stat.
JSON to JSON Schema Generator
Generate a JSON Schema from a JSON example. Infers types and required fields, merges schemas across array items, and targets Draft-07 or Draft 2020-12.
Code Highlighter
Paste code in JavaScript, TypeScript, Python, HTML, CSS, SQL, JSON, or Bash and get a syntax-highlighted HTML snippet you can embed anywhere. Live preview and copy-ready output.

