Format, validate, and minify JSON with one click. Paste any payload, pick an indent size, and ToolPit prints a clean, color-coded tree — no signup, no server upload, everything runs locally.
How to format JSON
- Paste your JSON into the input box.
- Pick 2-space or 4-space indent (or minify to one line).
- ToolPit highlights syntax errors with line numbers.
- Copy the formatted JSON back into your code.
Frequently asked questions
Will my JSON be uploaded?+
No. Formatting happens entirely in your browser. Your payload — including secrets, tokens and PII — never leaves your device.
Can it format very large JSON files?+
Yes. ToolPit comfortably handles files up to several megabytes. For multi-gigabyte streams use a CLI tool like jq.
Does it validate against a JSON Schema?+
ToolPit checks syntax (matching braces, valid types). For full JSON Schema validation, paste the schema into a dedicated validator.