JSON Formatter and Validator

Validate JSON syntax, format it with two or four spaces, or minify it while preserving number spelling and duplicate keys.

Input

Up to 512 KiB

Result

Input is processed on this device.

How to use it

  1. Paste your JSON document or value.
  2. Choose indentation, Minify or Validate only.
  3. Select Process JSON and copy the output when you need it.

Formatting preserves number spelling, object member order and duplicate keys. The validator checks JSON syntax. A separate schema is needed to enforce application-specific fields or rules.

Related guides

Related tools

Frequently asked questions

Why is a trailing comma rejected?

JSON requires commas between members or items. A comma immediately before a closing bracket or brace is invalid.

Will the formatter convert large integers?

No. The formatter preserves the original number characters so a large integer stays exactly as entered.