What you can do
- Pretty-print with 2 or 4 spaces or tabs, and minify to a single line.
- Validation with the error's line, column and context, including the classic trailing comma.
- Alphabetical key sorting, handy before comparing two API responses.
- A built-in parser that keeps numbers exactly as written: 19-digit IDs are not rounded.
- JSON that ended up inside a string with escaped quotes is unwrapped and formatted.
Frequently asked questions
Why do other formatters change my numeric IDs?
Because they use JavaScript's JSON.parse, which turns numbers into doubles and loses precision beyond 2^53. This parser keeps the original text of every number, so 9007199254740993123 stays 9007199254740993123.
Is the JSON I paste saved or sent anywhere?
No. Formatting happens in JavaScript in your browser, the input is not sent to any server and is not saved.
How do I find the error in invalid JSON?
Press "Validate": the message gives the line and column of the error and shows the surrounding text, so you can find it even in very long files.
More developer tools
- XML formatter โ Format, minify and check it's well-formed (SOAP included, unfortunately).
- Base64 encode and decode โ Encode and decode UTF-8 text, URL-safe variant, files and binary content.
- JWT decoder โ Read header and payload, with issue and expiry dates in plain language.
- URL encode, decode and parser โ Encode and decode, and break a URL down into its parameters.
- JSON, YAML and CSV converter โ Conversion to and from JSON, with automatic, comma or semicolon delimiter.
- SHA-256 and HMAC hash generator โ SHA-1/256/384/512 and HMAC of text and files, with checksum verification.
- UUID v4 and v7 generator โ Bulk v4 and v7 generation, and inspection of existing UUIDs with creation date.
- Diff checker for text and JSON โ Compare two texts or JSON documents with word-level highlighting and patch export.
- Regex tester โ Live testing with named groups, replacement and protection from catastrophic backtracking.
- Unix epoch timestamp converter โ Unix epoch in seconds, milliseconds, micro and nano, time zones and ISO week.
- Cron expression explainer โ Plain-English explanation of crontab, Spring and Quartz expressions with the next runs.
- Working days calculator โ Man-days and hours between two dates or a deadline N days out, with holidays, patron saint and time off.