JSON formatter
Paste JSON to tidy it, check it or shrink it. Errors point to the exact line and column.
Paste JSON on the left.
About JSON
JSON is the plain-text format most web APIs use. It has six kinds of value: objects in braces, arrays in brackets, strings in double quotes, numbers, true/false, and null. Unlike JavaScript, JSON does not allow comments, trailing commas or single quotes.
Questions people ask
Is my JSON sent anywhere?
No. Formatting and validation happen in your browser. Nothing you paste leaves this page, so it is safe for API responses and config files.
Why is my JSON invalid?
The usual causes are a trailing comma after the last item, single quotes instead of double quotes, keys without quotes, comments, or an unescaped line break inside a string. The error points to the line and column where parsing stopped.