Developer tools

JSON formatter and validator

Format, validate and minify JSON. Options for indent size, key sorting and Unicode escaping. Instant syntax error highlighting.

  • Free, no sign-up
  • No data stored
  • Reviewed 2026-01-15

Your details

Results

About the JSON Formatter

Paste JSON to format it with custom indentation (2/4 spaces or tabs), validate syntax and optionally sort keys alphabetically. Switch to minify mode to remove all whitespace for production use.

How to use the JSON Formatter

  1. Paste your JSON.
  2. Choose mode: format or minify.
  3. Set indent size and key sorting.
  4. View formatted output and any errors.
  5. Copy the result.

Frequently asked questions

What happens with invalid JSON?

The validator highlights the error location with line and column number, plus a description of what went wrong.

Does sorting keys change the data?

No. JSON objects are unordered by specification. Sorting is purely visual and does not alter semantics.

Can I escape Unicode characters?

Yes. Enable Unicode escaping to convert non-ASCII characters to \uXXXX sequences.