CalcLake

JSON Formatter

Format, validate, and minify JSON.

Developer ToolsLast updated August 2026

Format, minify, and validate JSON

How to use it

  1. 1Paste your JSON into the editor.
  2. 2Choose an indent size, then click Format or Minify.
  3. 3Copy the result, or check the error message if your JSON is invalid.

Supported formats & limits

Works with standard syntax — no file size limit, since everything runs in your browser.

Example

Paste {"name":"CalcLake","free":true} and click Format to get properly indented JSON — or Minify to collapse formatted JSON back to a single compact line.

How it works

Your input is parsed with the browser's built-in JSON.parse, which also validates it — if the JSON is malformed, the parsing error is shown instead of a result (some browsers include the exact line and column). Valid JSON is then re-serialized either with your chosen indentation (Format) or no whitespace at all (Minify), along with its type, key count, and nesting depth.

Frequently asked questions

Related guides

Related tools