Skip to content
  1. Home
  2. Developer
  3. JSON Formatter

JSON Formatter

Paste JSON to pretty-print it with indentation, or minify it into a single line.

How it works

Paste JSON into the box and choose Format to indent it with two spaces, or Minify to strip all extra whitespace. If the JSON is not valid, the tool shows the parser’s error message so you can find the problem.

Formatting happens entirely in your browser, which makes it safe for API responses and config files that you would not want to paste into an unknown website.

Frequently asked questions

Is my JSON uploaded?

No. It is parsed and printed locally in your browser.

Why does it say my JSON is invalid?

Common causes are trailing commas, single quotes instead of double quotes, unquoted keys and comments. JSON is stricter than JavaScript object syntax.

What is the difference between format and minify?

Format adds line breaks and indentation for reading. Minify removes them to make the text as short as possible for sending or storing.