JSON Formatter & Validator

Paste JSON in the left box, then click Format to beautify it. Click Minify to compress it onto one line. Errors are shown with the offending line number.

Features

Format & beautify JSON
Validate JSON syntax
Minify JSON
Syntax highlighting
Error line detection

How to Use

1. Paste your JSON into the input box on the left.

2. Choose an indentation (2 spaces / 4 spaces / Tab).

3. Click Format to beautify, or Minify to compress.

4. Click the Copy button to copy the result.

Frequently Asked Questions

What is JSON?
JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy for humans to read and write, and easy for machines to parse and generate.
How to validate JSON?
Paste your JSON data into the editor above and click 'Format'. If the JSON contains syntax errors, the tool will highlight the exact line and position of the error.

Related Tools