Paste JSON to pretty-print it with consistent indentation, minify it to a single line, or check whether it is valid. If there is a syntax error, the formatter shows the line and column so you can find it quickly.
Common JSON errors
- Trailing commas after the last item in an object or array.
- Single quotes instead of double quotes around strings and keys.
- Unquoted keys, comments, or values like
undefinedandNaN, which JSON does not allow.
Questions
Is my JSON sent to a server?
No. Parsing and formatting happen in your browser, so it is safe for API keys and private data.
What does “Sort keys” do?
It orders the keys of every object alphabetically, which makes two JSON documents easier to compare.
Can it handle large files?
Yes, files of several megabytes format in under a second on most devices.