JSON Formatter
Beautify, minify and validate JSON with error lines.
Free
Runs in your browser
About this tool
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.
Questions people ask
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.
Guides for JSON Formatter
More developer tools
See all 24 →
Base64 Encode / DecodeEncode text to Base64 or decode it back, with UTF-8.
URL Encode / DecodePercent-encode or decode URLs and query strings.
Hash GeneratorSHA-1, SHA-256, SHA-384 and SHA-512 of text or files.
UUID GeneratorGenerate random v4 UUIDs, one or thousands at a time.
Unix Timestamp ConverterConvert epoch time to a readable date and back.
Regex TesterTest regular expressions with live match highlighting.