ο»Ώ
JSON Formatter

Validate, prettify, and minify JSON.

Paste any JSON and get instant validation with error line reporting, configurable formatting, and key sorting. Everything runs in your browser.

Runs locally. Your JSON never leaves your browser. No server, no storage, no account.

Indent
Input Empty
⚠️
Output β€”
How it works

JSON is strict. One character breaks everything.

Validation

JSON has no tolerance for trailing commas, single quotes, unquoted keys, or comments. This tool uses the browser's native JSON parser β€” the same engine your app uses β€” so validation matches reality exactly.

Prettify vs minify

Prettify adds consistent indentation and line breaks β€” readable for humans and diffs. Minify strips all whitespace β€” smaller for transport and storage. Neither changes the data, only the formatting.

Sort keys

Sorting keys alphabetically makes two JSON objects easy to compare visually β€” useful when an API returns fields in different orders or when you're debugging a diff between two responses.