Format JSON
Format JSON for reading, minify it or find the error. The data stays in your browser, even for confidential API responses.
How it works
- Paste JSON.
- Format or minify.
- Copy the result.
Format, minify, validate
Formatting indents nested objects with two spaces so you can read API responses and configuration files. Minifying removes all spaces and line breaks. If the JSON is invalid, the tool shows the parser's error message with the position where it fails. Typical mistakes are a comma after the last element or single instead of double quotes.
Frequently asked questions
What does the error message show?
The position where your browser's JSON parser gives up.
Can I format large files?
Yes, the limit is your device's memory.
Is the data stored?
No.
Can I convert JSON to CSV?
Yes, with the tool CSV and JSON, if the JSON is a list of objects.
Does the tool sort the keys?
No, the order is preserved.
Updated on 5 December 2026 by Formatkiste, a service of That Works Media UG (haftungsbeschränkt), Berlin.