JSON formatter
Paste JSON to tidy it up, shrink it to one line, or find out why it is not valid.
Runs in your browser. Nothing is uploaded.
How to use
- Paste your JSON into the box.
- Choose an indent of 2 spaces, 4 spaces, or Minified.
- Copy the result. If the JSON is invalid, the error shows where to look.
Good to know
- JSON needs double quotes around keys and text. Single quotes and trailing commas are not valid JSON.
- The data is parsed in your browser and is never run as code.
Questions
Why does it say my JSON is invalid?
The most common causes are single quotes, a trailing comma, a missing comma between items, or an unquoted key. The message shows the position of the first problem.
What does minify do?
It removes spaces and line breaks so the JSON takes the least space. The data itself does not change.
Is it safe to paste private data?
The JSON is processed in your browser and not sent to Tooligo. As with any website, avoid pasting live passwords or secrets.
Also known as: JSON validator, JSON beautifier, JSON pretty print, minify JSON.
More developer tools
- Base64 encode and decodeConvert text and files to and from Base64.
- URL encode and decodeEncode or decode URLs.
- Regex testerTest a regular expression against your text.
- Unix timestamp converterConvert Unix time to readable dates.
- JWT decoderRead what is inside a login token.
- UUID generatorMake unique random IDs.