How to use it
- 1
Paste the JSON into the input.
- 2
If it is invalid, the line with the error is highlighted with its neighbours.
- 3
Choose indentation or minify, and optionally sort keys.
- 4
Copy or download the result.
The errors people hit most
Trailing commas after the last item, single quotes instead of double quotes, unquoted keys and comments are all valid in JavaScript but not in JSON. The validator points at the first place the parser stopped, which is usually right after the real mistake.
Private by design
API responses and config files often contain tokens or personal data. This formatter runs entirely in your browser, so the content is never uploaded.
Questions
Is there a size limit?
Only your browser’s memory. Several megabytes format quickly on a normal computer.
Does sorting keys change the data?
No. Object key order has no meaning in JSON; array order is kept.
Can it fix my JSON automatically?
It shows where the error is rather than guessing a fix, so nothing changes without you seeing it.
Updated:
