Curated picks
JSON format & minify
Handy for API payloads, config files, and debugging server responses.
Try it
JSON format & minify
Paste JSON to validate, pretty-print with indentation, or minify to a single line.
Why validate JSON?
One stray comma or quote breaks parsers. Checking before you paste into CI or deploy saves time.
Errors often come from trailing commas (JSON disallows them), trailing text after a closing brace, or smart quotes pasted from editors. Our formatter will fail with a parse error until the input is valid JSON.
Pretty-print vs minify
Indented JSON is easier to review. Minified JSON removes whitespace — common for responses and cached bundles.
Where JSON shows up
REST APIs, JSON-LD in `<script type="application/ld+json">`, `package.json`, `tsconfig.json`, CI/CD config, Terraform variables, and browser extension manifests. The same syntax rules apply everywhere.
Size and performance
Large JSON payloads can slow TTFB and parsing. For public APIs, compress responses (gzip/Brotli) and avoid unnecessary nesting. In the browser, avoid parsing huge strings on the main thread if you can stream or chunk.
Privacy
Parsing happens in your tab; we do not receive your JSON on a server.
Secrets and tokens
Never paste production API keys, passwords, or personal data into third-party tools. This page runs locally, but the same rule applies elsewhere: treat pasted JSON as potentially sensitive.