JSON formatter and validator
Format, validate and minify JSON. Options for indent size, key sorting and Unicode escaping. Instant syntax error highlighting.
- Free, no sign-up
- No data stored
- Reviewed 2026-01-15
Your details
Results
About the JSON Formatter
Paste JSON to format it with custom indentation (2/4 spaces or tabs), validate syntax and optionally sort keys alphabetically. Switch to minify mode to remove all whitespace for production use.
How to use the JSON Formatter
- Paste your JSON.
- Choose mode: format or minify.
- Set indent size and key sorting.
- View formatted output and any errors.
- Copy the result.
Frequently asked questions
What happens with invalid JSON?
The validator highlights the error location with line and column number, plus a description of what went wrong.
Does sorting keys change the data?
No. JSON objects are unordered by specification. Sorting is purely visual and does not alter semantics.
Can I escape Unicode characters?
Yes. Enable Unicode escaping to convert non-ASCII characters to \uXXXX sequences.