JSON

Validate, format, minify, sort keys and escape or unescape strings.

Runs in your browser

About JSON

Paste JSON to check that it is valid and see where the problem is if it is not. Format it with indentation, minify it to one line or sort the keys alphabetically.

String helpers escape and unescape quotes and special characters. Everything runs locally.

How to use it

  1. Paste your JSON.
  2. Choose format, minify or sort keys.
  3. Copy the result.

Frequently asked questions

Why is my JSON invalid?
Common causes are trailing commas, single quotes instead of double quotes, and unquoted keys. The error message points to the position.
Is my JSON sent to a server?
No. Parsing and formatting happen in your browser.

Related tools