JSON Formatter
Pretty-print your JSON and find the syntax error
Input
Options
Result
Nothing entered yet
Paste JSON and the formatted result appears here.
API responses arrive as one unbroken line, and a single missing comma turns into a hunt through thousands of characters. Paste it here to get it laid out readably, or to be told exactly where the syntax breaks.
How to use
- 1 Paste your JSON into the input box.
- 2 It is formatted immediately, or you get the position of the error.
- 3 Choose the indentation, or switch to minified output.
- 4 Copy the result.
Frequently asked questions
What are the most common JSON syntax errors?
A trailing comma after the last item, single quotes instead of double, unquoted keys, and comments. All four are valid JavaScript but invalid JSON, which is why they slip through so often.
Why sort the keys?
It makes two JSON documents comparable. Diffing unsorted objects produces noise from ordering alone; sorting both first leaves only the real differences.
Is my data sent anywhere?
No. Parsing and formatting happen in your browser, which is why it is safe to paste API responses containing tokens or personal data.