JSON Formatter
Beautify, minify, and validate JSON. Sort keys and copy/download output.
Tip: Press Ctrl/Cmd + Enter to format.
Output is read-only to avoid accidental edits.
Ready. Paste JSON and choose an action.
What this tool does
- Format (beautify): pretty-print JSON with indentation.
- Minify: remove whitespace to get compact JSON.
- Validate: check if JSON is valid and show error position.
- Sort keys: useful for consistent diffs and APIs.
This tool runs locally in your browser and does not upload any data.