ToolBrivo

Press slash to focus search.

Developer

JSON formatter

Format or minify JSON without running it as code.

Paste JSON and choose 2 spaces, 4 spaces, or a minified line. The formatter parses the text and writes it back out. It does not run the text as JavaScript.

Up to 200,000 characters.

Ready

How to use it

  1. Paste the JSON.
  2. Choose the indentation. An error names the problem and, when it can, the character position.
  3. Copy or download the result. The download is the formatted text, not your original paste.

Examples

A compact object

{"a":1} with 2 spaces becomes a JSON object with the key on its own indented line.

Limits

  • This checks syntax only. It does not check a JSON Schema.
  • If a key is repeated, the last value is kept.
  • Numbers can change form. 1.0 is written as 1.
  • The position is a UTF-16 index into the text after a leading BOM is removed.
  • The box accepts 200,000 characters.

Privacy

Files and text you add here stay in this browser unless the page says a server is required. They are not stored in an account.

Questions