JSON Formatter & Validator
Format, minify, sort, and validate JSON with path-aware error messages. Browser-only — your input never leaves this page.
Runs entirely in your browser · Your input is never transmitted
How to use
- Paste your JSON into the left pane.
- Pick Format, Minify, or Sort keys from the options.
- Copy the output or download as .json.
Frequently asked
Is it safe to paste sensitive JSON here?
Yes. The tool runs entirely in your browser. There are no server calls and no analytics on input — paste internal payloads with confidence.
Why does my JSON fail to parse?
Most often: trailing commas, single quotes instead of double, unescaped control characters, or wrapped variable assignments. The error message shows the exact line and column.
How big an input can I paste?
Browser memory is the practical ceiling. Tested to 10MB without stalls. Larger files — consider splitting or using a local CLI.
What's 'Sort keys' for?
Alphabetizes object keys recursively — useful for diffing two JSON documents, canonical hashing, or normalizing API responses.