JSON Formatter
Beautify, minify and validate JSON with error lines. Free, no sign-up.
About JSON Formatter
JSON Formatter makes messy JSON readable with clean indentation, or squeezes it onto one line. It also validates the JSON and points to the line where an error is. Data stays in your browser.
How to use JSON Formatter
- Paste your JSON.
- Press “Format” or “Minify”.
- Fix any error shown, then copy.
Frequently asked questions
Why is my JSON invalid?
Common causes are trailing commas, single quotes instead of double quotes, and keys without quotes.
Is my data sent anywhere?
No. Parsing uses your browser’s built-in JSON engine.
Can I sort the keys?
Yes. Tick “Sort keys” to order object keys alphabetically.
More developer tools
See all →Base64 Encode / Decode
Encode text to Base64 or decode it back, with UTF-8.
URL Encode / Decode
Percent-encode or decode URLs and query strings.
Hash Generator
SHA-1, SHA-256, SHA-384 and SHA-512 of text or files.
UUID Generator
Generate random v4 UUIDs, one or thousands at a time.
Unix Timestamp Converter
Convert epoch time to a readable date and back.
QR Code Generator
Make QR codes for links, text, Wi-Fi and UPI.