JSON Formatter

Format, validate, and minify JSON. Syntax highlighting with error detection. Your file never leaves your device.

Drop file here or click to select
Highlighted
Validation
Copy/Download

How JSON Formatter works

JSON Formatter reads your file with the browser's File API and processes it with JavaScript on this page. The result is shown in the page or offered as a download created in your browser.

Limits

Good to know

Check it yourself

Open the Network tab of your browser's developer tools (F12) while you use the tool: no request carries your file. The page's Content-Security-Policy only allows our anonymous error counter (what it receives). Step-by-step: how to check that a tool doesn't upload your file.

Use it from code

The same job is available as a REST endpoint, /api/json-format, and through the MCP server. Unlike this page, the API receives your input on our server; it is processed in memory and not stored. Anonymous calls are free within fair-use limits.

curl -X POST https://toolsthatdontupload.com/api/json-format \
  -H "Content-Type: application/json" \
  -d '{"json":"{\"name\":\"test\",\"value\":123}"}'

OpenAPI spec · MCP setup

Related tools

Markdown Editor · Markdown Preview · Number Converter · Regex Tester · Text to Binary · All tools