Format, validate & minify JSON

Beautify or minify JSON live, with clear errors.

Files stay on your device. No accounts. Free.

Loading tool...

About this tool

Paste JSON and see it pretty-printed live as you type, with a one-click toggle to minified output. Invalid JSON gets a precise error, including the line where parsing failed, which makes this a quick validator too.

Because parsing happens in your browser, API payloads and config files with secrets in them never leave your machine. Copy the result, download it, or share it via the URL.

How it works

  1. Paste your input, or drop a text file onto the box.
  2. The output updates live as you type.
  3. Copy it to the clipboard, or download it as a file.

Frequently asked questions

Is it safe to paste API responses with tokens or secrets in them?

Yes. The JSON is parsed by your own browser with JavaScript's built-in JSON engine and is never transmitted. Nothing you paste here reaches any server.

How do I find out why my JSON is invalid?

Paste it and the error message names the problem and the line where parsing failed, for example a trailing comma or an unquoted key. Fix, and the output updates the moment the JSON becomes valid.

What is the difference between beautify and minify?

Beautify adds indentation and line breaks so humans can read the structure. Minify strips every unnecessary character so the payload is as small as possible for transmission or storage. The data is identical either way.

Related tools

Missing something? Suggest a feature →