JSON Formatter
Format and beautify JSON for readability, validate for errors, or minify to reduce size — all instantly in your browser.
Advertisement
Input
Output
Advertisement
Frequently Asked Questions
What does the formatter do?
Formatting (also called "beautifying" or "pretty-printing") parses the JSON and re-serialises it with consistent indentation, making it easy to read and navigate.
What does minify do?
Minifying removes all unnecessary whitespace — spaces, tabs, and newlines — producing the most compact valid JSON string. This reduces file size for network transfer.
Why does validation fail on valid-looking JSON?
JSON is strict: keys must be double-quoted strings, trailing commas are not allowed, and special values like undefined or NaN are not valid. The error message will point to the line and position of the problem.