DexTools

JSON Formatter

Format, minify and validate JSON as you type, with the exact line and column of any syntax error. Nothing is uploaded.

Nothing leaves your browser Dex Dev

Parsed in this tab. Nothing is uploaded.

Result

Press Format or Minify to see the result.

Paste JSON to get started. Mode: format
Save to DriveInsert into Office

Saving needs a Dex account. The tool never does.

How it works

  • Paste JSON into the left panel. Validation runs as you type, so the status strip underneath always tells you whether the document parses.
  • Format rewrites the document with two-space indentation; Minify removes every optional space. Both work on the parsed value, so the output is guaranteed to be valid JSON.
  • A syntax error is reported with the line and column and the parser message, and the result panel stays empty rather than showing a partial document.
  • Everything happens in the tab. Large documents are capped at 5 MB so the page cannot lock up, and nothing is sent anywhere.

Examples

Reading a minified API response

Paste a one-line response, press Format, and the nesting becomes readable. The status strip reports how many top-level keys the object has, which is a quick check that you pasted the object you expected.

Fixing a trailing comma

JSON does not allow a comma before a closing brace. Pasting the document reports the exact line and column, which is faster than reading the whole file looking for the one character that broke it.

Frequently asked questions

Is my JSON uploaded anywhere?

No. Parsing and formatting run in the page itself. There is no request carrying your document, which matters for configuration files, tokens and customer data.

Why does it reject a trailing comma?

JSON is stricter than JavaScript: a comma before a closing brace or bracket is invalid. The error message points at the line and column so you can remove it.

Does formatting change my data?

No. The output is produced by parsing your document and re-serialising the value, so keys and values are unchanged. Key order is preserved, and numbers are re-serialised the way JSON represents them.

What is the size limit?

Documents up to 5 MB. Beyond that the tool asks you to format a smaller piece, because rewriting a multi-megabyte document in a browser tab blocks the interface.