How to use the JSON Formatter & Validator
- Paste JSON into the left box, or press Load sample.
- Press Format to indent it, Minify to remove all whitespace, or Validate to only check it.
- If the JSON is invalid, the message shows what is wrong and the exact line and column, and the cursor jumps there.
- Copy the result or download it as a
.jsonfile.
Tips
- Common mistakes: single quotes instead of double quotes, a comma after the last item, and comments (JSON does not allow them).
- Turn on Sort keys to make two JSON documents easier to compare.
- Press Ctrl + Enter in the input box to format quickly.
Everything runs in your browser: nothing you type or paste is sent to a server.