Development
JSON Formatter
Paste or upload JSON, then beautify, compact, validate, or repair it. Inspect a tree view and convert valid payloads to XML, YAML, or CSV — the same format, validate, and convert flow as a dedicated JSON formatter.
Quick start
- 1
Paste or upload JSON
Add the payload you want to inspect.
- 2
Format or compact
Pretty-print with 2, 3, or 4 spaces or tabs, sort keys, or minify whitespace.
- 3
Validate or repair
Read the line and column of a syntax error. Repair can fix comments, trailing commas, and unquoted keys.
- 4
Convert
After the payload is valid, open the tree or download XML, YAML, or CSV.
Features
Format and compact
Pretty-print with 2, 3, 4 spaces or tabs, minify whitespace, sort keys, and auto-update the preview.
Validate and repair
See line and column for syntax errors, then repair comments, trailing commas, and unquoted keys.
Tree and converters
Browse a tree view or download JSON as XML, YAML, or CSV after it validates.
Specifications
- Actions
- Format, compact, repair, validate
- Views
- JSON, tree, XML, YAML, CSV
- Indent
- 2 · 3 · 4 spaces · tabs
- Privacy
- Processed on the toolbox API
Use cases
- Clean an API response before a review.
- Find the exact syntax error in a payload.
- Turn a JSON array into CSV.
Frequently asked questions
When does repair change my file?
When you run repair. It rewrites loose JSON into strict JSON. Format alone does not invent missing structure.