Mr. Encoder

JSON Formatter & Validator

Pretty-print, validate and minify JSON data.

How to use

  1. Paste your JSON into the input field.
  2. Click Beautify to pretty-print it, or Minify to compress it to a single line.
  3. If the JSON is invalid, the error message shows what went wrong.

Frequently asked questions

What does a JSON formatter do?

It parses your JSON and prints it again with consistent indentation and line breaks, making large or minified JSON easy to read.

Does it validate JSON?

Yes. The input is parsed with a strict JSON parser, so trailing commas, single quotes and other syntax errors are reported.

When should I minify JSON?

Minified JSON removes all unnecessary whitespace, which reduces payload size for APIs, configuration and storage.

Other tools