JSON Formatter & Validator
Pretty-print, minify and validate JSON in your browser. Instant, with clear error messages.
Format and validate JSON instantly
Paste raw JSON to beautify it with 2- or 4-space indentation, or minifyit to the smallest valid form. If it won’t parse, you get the exact error so you can find the stray comma or missing quote. It’s a strict parser (the same one your browser ships), so “valid” here means valid everywhere. Nothing is uploaded; your payloads stay on your machine.
For the things you copy a hundred times a day
Tokens, config blobs, API responses, that one curl command. Developers copy more than anyone, and lose it just as fast. Relic is an encrypted, searchable memory for everything you copy: it auto-tags JSON, code, URLs and secrets on-device, keeps them forever, and syncs across machines, all end-to-end encrypted, open source, self-hostable. Free for unlimited text.
Frequently asked questions
How do I format or pretty-print JSON?
Paste your JSON and it is instantly re-indented with consistent spacing so nesting is easy to follow. Minify does the reverse, stripping whitespace for compact payloads.
Why is my JSON invalid?
The usual culprits: a trailing comma after the last item, single quotes instead of double quotes, unquoted keys, or a missing bracket. The validator points at the exact spot where parsing failed.
Is it safe to paste API responses with real data in here?
Yes. Formatting and validation run entirely in your browser, nothing is uploaded, so tokens and customer data in a payload never leave your machine.
What is the difference between JSON formatting and validation?
Formatting rearranges whitespace for readability. Validation checks the text is legal JSON at all. This tool does both at once: if it cannot parse, you get the error; if it can, you get pretty output.