JSON formatter

Validate JSON, format indentation or produce a compact single-line result.

Processed locally. No file uploads.
Maximum 200,000 characters.

How to use

  1. Paste strict JSON
  2. Choose format or minify
  3. Read errors or copy the valid result

What you can do

  • Validate JSON, format indentation or produce a compact single-line result.
  • Editable input and copyable results.

Useful answers

Are comments and trailing commas accepted?

No. This tool uses standard JSON. JavaScript comments, trailing commas and duplicate key detection are not supported.

What are the limits?

Text input is limited to 200,000 characters. Diff accepts 40,000 characters in total and stops long comparisons. JSON numbers use JavaScript precision.

Related tools