How to use
Use this tool to clean up Avro schema JSON before committing, sharing, or debugging.
- Paste your schema into the input box (must be valid JSON).
- Choose indentation, key sorting, and whether to run basic Avro checks.
- Click Format (pretty) or Minify (compact).
- Copy the result from the output box.
FAQ
Does this tool validate Avro schemas fully?
No—validation is basic (top-level checks for common mistakes). Use it as a quick sanity check, not a full Avro compiler.
Can I format union schemas (arrays like ["null","string"])?
Yes. The formatter supports Avro unions because they’re valid JSON arrays.
What does “Sort keys (A→Z)” do?
It sorts object keys recursively to make diffs cleaner. Array order is preserved.
Will sorting keys change my schema meaning?
Key order in JSON objects doesn’t affect Avro meaning, but array order can—this tool does not reorder arrays.
Does it support comments in schemas?
No. JSON with comments (JSONC) isn’t valid JSON, so it must be removed before formatting.
Is my schema uploaded anywhere?
No. Formatting and validation run locally in your browser with no network calls.
Why does the tool add a trailing newline?
It’s optional and helps keep files consistent in editors and version control. You can turn it off.