JSON Formatter & Validator
Validate, beautify, minify, repair, diff and convert JSON. With tree view, JSONPath picker, search and file drop. Everything runs in your browser.
Input
Output
Paste JSON in the Format tab, then click "Build tree".
JSON input
Converted output
A (original)
B (new)
Keyboard shortcuts
Ctrl+Enter Format
Ctrl+M Minify
Ctrl+R Repair
Ctrl+K Sort keys
Ctrl+Shift+C Copy output
Esc Clear errors
How to use
- Paste your JSON document into the editor.
- Press Format to indent and beautify, or Minify to compact it onto one line.
- Switch to Tree view to navigate large structures comfortably.
- Use Validate to surface syntax errors with line and column hints.
- Export the result, or convert between JSON, CSV, YAML, and XML.
Frequently asked questions
Does this validator support JSON5 or comments?
Strict JSON only by default. Trailing commas, comments, and unquoted keys will be flagged as errors. A JSON5 mode is on the roadmap.
How large a document can I format?
Tens of megabytes of JSON parse and format comfortably on a modern device. The tree view virtualises so navigation stays smooth even for large arrays.
Is my JSON sent anywhere?
No. The formatter is 100% browser-side; nothing you paste is ever uploaded. Safe for tokens, payloads, and proprietary data.
Why does the tool reject my JSON for using single quotes?
The JSON spec requires double quotes around all keys and string values. Single quotes are valid JavaScript but not valid JSON.
Advertisement