Text Tool Kit

Fast text utilities without the clutter

Minimal browser tools for common formatting, counting, and encoding tasks.

Back to all tools
Developer

JSON Formatter

Format raw JSON with readable indentation and catch invalid syntax before using it elsewhere.

How to use

  • Paste raw JSON into the input area.
  • The tool validates and formats the JSON automatically.
  • If the input is invalid, an error message appears instead of formatted output.

Formatting mode

Pretty-print, minify, or recursively sort JSON keys.

Common use cases

  • Pretty-print API payloads for debugging and review.
  • Minify JSON before embedding it into config or transport payloads.
  • Sort keys recursively to make diffs and comparisons easier.

FAQ

Can this validate malformed JSON?

Yes. Invalid input shows the parse error instead of formatted output.

Does sorting change the values?

No. Sort mode only changes object key order and leaves values intact.

Related tools

Learn more

Privacy note

Tool processing happens in your browser. Some tools save your latest input in local storage for convenience. Review the privacy page before using the site on a shared device or before enabling optional third-party scripts on the site.