Ecommet

JSON Formatter and Validator

Format, minify and validate JSON with the exact line and column of any error, sort keys, and turn an array of objects into CSV.

Loading the tool…

How to use it

Paste JSON on the left. It is checked as you type, and the formatted result appears on the right. Pick the indent, sort the keys or switch the output to CSV.

Questions

Is my JSON sent to a server?

No. It is parsed and formatted in your browser, so you can paste API responses and config files safely.

Why is my JSON invalid?

The most common causes are a trailing comma after the last item, single quotes instead of double quotes, keys without quotes, and comments, none of which JSON allows.

How does the CSV conversion work?

When the JSON is an array of objects, each object becomes a row. Nested objects become dot-separated columns such as address.city, and arrays are kept as JSON in their cell.

Have a project in mind?

Tell me what you need, even in a few lines, and I’ll come back with questions or a quote.