JSON Formatter
Paste minified or messy JSON. Get clean, indented output. Everything runs in your browser — no uploads.
⏱<5ms🔒client-only
Inputpaste ⌘V
Paste JSON here…
Output
Auto-runs on paste⌘↩
Tip: press Ctrl + Enter to re-run, or paste a large JSON to auto-format.
// EXAMPLES
// HOW IT WORKS
Paste any JSON — minified, broken indentation, mixed tabs and spaces — and the formatter applies JSON.parse() then re-serializes with consistent indentation. Optionally sorts keys alphabetically. All processing happens in JavaScript inside your browser tab.
// FAQ
Is my JSON sent to any server?
No. The formatter is JavaScript running in your browser. Your data never leaves the page.
What if my JSON has errors?
You'll see the error position. For automatic repair of common mistakes like trailing commas or single quotes, use the JSON Repair tool.
Maximum file size?
Limited only by your browser's memory. Tested with 50MB files. Larger inputs render in chunks.