JSON Formatter & Validator

Format, minify, or validate JSON locally in your browser.

JSON editor

Paste JSON, then choose Format, Minify, or Validate. Format uses the selected indentation.

Paste JSON or load the example to get started.

Try an example

Load a sample API response with an array of tasks. Format it to read each task on separate lines, or minify it for a compact payload.

Formatting and minifying use JavaScript’s number precision and keep the last value for duplicate keys.