JSON Formatter & Validator
Pretty-print, minify and validate JSON — locally in your browser.
Privacy-first • Local
Saved
About this JSON formatter
This free JSON formatter and validator pretty-prints, minifies, validates and colorizes JSON fast—right in your browser. It pinpoints errors with line & column, supports recursive key sorting, and lets you choose tabs or spaces.
How to use
- Paste or open a
.json
file in the input. - Click Format (or Minify) to transform.
- Toggle Sort keys, Use tabs, and set Indent.
- Copy or download the result.
Tips
- On parse error, the editor selects the offending spot and shows the exact line:column.
- Large payloads? Sorting can be slower—toggle it off for speed.
- Indent = 0 gives compact multi-line with no extra spaces; use Minify for one line.
Is it free?
Yes. No account required and no usage limits.
Do you store my JSON?
No. Everything runs locally. Drafts/settings may be saved in your device’s localStorage
if you allow it.
How do I fix errors?
Click Validate or Format. If there’s an error we show the line:column and select the character in the input.
Last updated: October 20, 2025