JSON formatter
Make JSON readable, find the syntax error, or shrink it to one line.
Runs entirely in your browser. Nothing you type is sent anywhere.
How to use the JSON formatter
The text is checked by your browser’s JSON parser. If it isn’t valid, the error shows the line and column where parsing stopped, which is usually at or just after the mistake.
- Paste your JSON into the box.
- Tap Format to indent it, or Minify to remove whitespace.
- If there is a mistake, the message tells you the line and column to look at.
Questions
What are the most common JSON errors?
Trailing commas after the last item, single quotes instead of double quotes, and keys without quotes. JSON is stricter than JavaScript.
Can I paste API responses with sensitive data?
Yes. Nothing is uploaded; formatting happens on your device.