Format & minify JSON — pretty or compact, in one click
Paste any JSON — a schema or plain data. Beautify it with the indent you like, minify it to a single line, or sort its keys alphabetically. Free, no account, nothing leaves your browser.
Try an example below — instant, no setup needed.
Paste a schema or plain data — arrays and single values work too.
Read-only — use Copy to take the result with you.
Tip: press Ctrl+Enter to beautify. Everything runs in your browser — nothing is uploaded.
Result
Before
—
After
—
Change
—
How it works
- Beautify re-indents your JSON with 2 spaces, 4 spaces or a tab — your pick. String contents are never touched.
- Minify squeezes it to a single line, removing every space outside strings.
- Sort keys reorders every object alphabetically, at every depth — arrays keep their order, and so do the values inside them.
- Open in Validator sends the current JSON to the Validator (through your browser's local storage). Only JSON objects can be opened there — arrays and single values cannot be validated as schemas.
- Everything runs in your browser. Your JSON is never sent anywhere, and nothing is stored.
Formatting is deterministic: same JSON, same result, every time. No AI, no server, no surprises. Need a better schema? Generate one from plain words with StrictJSON →