JSON formatter and validator

For reading API responses, tidying configuration files or shrinking JSON before shipping it.

Format or minify JSON Free, and your files are never uploaded.

How it works

  1. Open the workspace and add a .json file.
  2. Choose pretty-print or minify, and whether to sort keys.
  3. 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.