JSON formatter
Format, validate, minify and sort JSON with syntax highlighting.
Processed on your device
- How it works
- 1Paste your JSON.
- 2Choose indentation, minify or sort keys.
- 3Copy or download the result.
Loading tool…
About JSON formatter
Format, validate, minify and sort JSON with syntax highlighting. If the JSON has an error, the exact line and column are shown so you can find it quickly.
Example: paste an API response written on a single line and format it to read it with indentation. If it fails, the tool points to the problem, such as an extra comma or an unclosed quote. To send it again, minify it.
Frequently asked questions
Is my text saved or sent anywhere?
No. The text is processed in your browser and never leaves your device.
What does “sort keys” do?
It sorts each object’s keys alphabetically, which helps when comparing two JSON documents.
Does it accept comments or trailing commas?
No. Standard JSON is validated; comments and trailing commas are flagged as errors.