JSON formatter and validator
For reading API responses, tidying configuration files or shrinking JSON before shipping it.
How it works
- Open the workspace and add a .json file.
- Choose pretty-print or minify, and whether to sort keys.
- Convert, preview and download.
What to expect
- Large integers beyond JavaScript’s safe range are detected and reported, because formatting would change them.
- Trailing commas, comments and single-quoted strings are reported as syntax errors rather than silently fixed.
What carries over
Kept
- All values
Changed or removed
- Original whitespace
- Precision of numbers beyond IEEE-754 doubles (reported when detected)
Questions
Can I paste JSON instead of uploading a file?
Not yet; the formatter works on files. Pasting text is planned.