JSON Formatter & Validator

JSON Formatter & Validator: Validate, format or minify JSON entirely in your browser.

JSON Formatter & Validator

JSON Formatter & Validator: Paste a JSON object, array or other JSON value, then choose Format & validate for an indented view or Minify for a compact output.

Loading the tool...

✓ Your inputs stay in this browser

How to use JSON Formatter & Validator

Paste a JSON object, array or other JSON value, then choose Format & validate for an indented view or Minify for a compact output.

Example

The JSON '{"a":1}' becomes an indented two-line object after formatting.

What to know

JSON requires quoted property keys and prohibits trailing commas. Duplicate object keys may be collapsed when parsed.