Format, beautify, minify and validate JSON with syntax highlighting.
The JSON formatter makes JSON readable: paste an API response or a config file and get it indented with 2 or 4 spaces or tabs, with syntax highlighting. Switch to minify to remove every space, or sort the keys alphabetically to compare two objects.
Invalid JSON is reported with its line and column, and the editor marks the error as you type. Everything runs in your browser, so your data stays private.
Syntax highlighting, line numbers and live error marks.
2 spaces, 4 spaces, tabs, or one line.
Alphabetical order at every level.
Line and column of the first syntax error.
A validator only checks the syntax; the formatter also rewrites the JSON in the layout you choose.
Common causes are trailing commas, single quotes, unquoted keys and comments, which JSON doesn't allow.
No, formatting happens entirely in your browser.