ToolForge
Available · Free

JSON Formatter

Validate, indent, or minify JSON using the browser's JSON parser. Input is treated only as data and is never executed as JavaScript.

5 MB maximum input · 0 B entered. JSON is parsed locally and is never executed.

How to use it

  1. Paste JSON or upload a .json file up to 5 MB.
  2. Choose two spaces, four spaces, or tabs, then select Validate & format; use Minify for compact output.
  3. Copy or download the result as a .json file.

Example & limitations

For example, paste {"items":[1,2],"active":true} and format with two spaces to inspect its structure.

5 MB input limit. JSON does not support comments, trailing commas, or JavaScript expressions. Very large documents may pause a slower device briefly while parsing.