Developer tools
JSON formatter and minifier
Paste JSON, get readable indent or a one-line payload, and see parser errors immediately — still on this device.
Processed in your browser — nothing is uploaded
Pretty JSON is for reading; minified JSON is for sending. This tool does both without a network hop, which matters when the payload contains secrets.
Need to hide a string inside JSON? Encode it with Base64 first. Need to rename keys in bulk? Find and replace with regex can help before you re-validate here.
Last reviewed 2026-09-10.
FAQ
Questions, answered
Does this send my JSON anywhere?
No. `JSON.parse` and `JSON.stringify` run in your browser. Use it on tokens, fixtures, and private payloads.
Pretty or minify?
Pretty prints with two-space indent. Minify removes optional whitespace. Both validate first.
What if the JSON is invalid?
The original text stays in the output pane and the parser message appears above the stats. Fix the input and it restyles live.
Are comments allowed?
Standard JSON does not allow comments. If you need JSONC, strip comments first or wait for a later JSONC mode.
Related
Keep going
Developer tools
Array to JSON
Convert PHP array to JSON, JavaScript arrays to JSON, or Power Automate array output — locally in your browser.
Developer tools
JSON ↔ YAML
Convert JSON to YAML and YAML back to JSON in the browser.
Developer tools
JSON stringify
Wrap any text as a JSON string with escaped quotes and newlines.