Ajenza ← All tools

JSON Formatter & Validator

Beautify, minify and validate JSON with clear error locations — plus a sample JSON generator. In your browser, nothing uploaded.

JSON input
About & FAQ

Paste JSON to pretty-print it with your chosen indentation, minify it into a single line, or validate it — invalid JSON is reported with the exact line and column. You can also sort object keys alphabetically or generate realistic sample JSON to test with. Everything runs locally in your browser, so nothing you paste is uploaded.

How do I beautify JSON?

Paste it in the input box, pick 2 spaces, 4 spaces or tab indentation, and click Beautify. Invalid JSON is flagged with the error location.

What does "Sort keys" do?

It re-orders the keys of every object alphabetically (recursively), which makes diffing two JSON files far easier.

Is my data uploaded?

No. Formatting, minifying, validating and sample generation all run entirely in your browser.

Guides: JSON Formatter · JSON Validator · JSON Minifier · Sample JSON Generator

More tools: Base64 Encoder · Dummy Data Generator · Diff Checker