JSON Formatter
Format, validate, and minify JSON.
Developer ToolsLast updated August 2026
Format, minify, and validate JSON
How to use it
- 1Paste your JSON into the editor.
- 2Choose an indent size, then click Format or Minify.
- 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
Base64 Encoder / DecoderEncode text to Base64 or decode it back.URL Encoder / DecoderEncode or decode URL components safely.Regex TesterTest regular expressions against sample text live.SQL FormatterFormat messy SQL into clean, readable queries.UUID GeneratorGenerate v4 UUIDs individually or in bulk.Hash GeneratorGenerate MD5, SHA-1, and SHA-256 hashes from text.