Format, minify, validate and sort JSON data. Syntax highlighting included.
Paste JSON into the input, or load the sample.
Choose 2, 4 or 8 spaces or tabs, and sort keys if you like.
Copy the result or download it as a .json or .txt file.
Press Validate. If the JSON is invalid, the parser’s error message is shown so you can locate the problem.
Format adds line breaks and indentation for easy reading. Minify removes all unnecessary whitespace for the smallest size.
Sorted keys make JSON easier to scan and compare. To see exactly what changed between two files, use JSON Diff.
No. Everything runs locally in your browser.