JSON Formatter & Validator

Validate, beautify, minify, and browse complex JSON data support JSON5.

Paste JSON or

Features

  • Tree View: Fold/Expand objects and arrays deeply.
  • Beautify: Format with standard indentation.
  • Minify: Compress JSON to a single line.
  • Unescape: Restore JSON from escaped strings.
  • JSON5: Supports trailing commas and comments.
  • Secure: 100% client-side processing.

Frequently asked questions

Is my JSON uploaded to a server?

No. All formatting, validation and minifying happens entirely in your browser using JavaScript. Your data never leaves your machine and nothing is logged, which makes it safe to paste API responses, config files or anything containing secrets.

Why does it say my JSON is invalid?

The most common causes are trailing commas, single quotes instead of double quotes, unquoted object keys, or comments — none of which are allowed in strict JSON. The validator points at the position of the first syntax error so you can fix it quickly.

What is the difference between beautify and minify?

Beautifying adds indentation and line breaks so the JSON is easy to read. Minifying strips all optional whitespace to produce the smallest possible payload, which is what you want when embedding JSON in a URL, a config value, or sending it over the wire.