CleverCat mascot: a cat engineer with a hard hatCleverCat.CC

Home / Developer tools / JSON Formatter and Validator

JSON Formatter and Validator

An API response on one line is unreadable, and a single missing comma stops everything. Paste JSON here to indent it, sort its keys, shrink it back down, or find out exactly where the syntax breaks.

How to use it

  1. Paste the JSON.
  2. Choose an indent size and whether keys should be sorted.
  3. Press format to expand or minify to compress.

Examples

Questions people ask

Why does my file fail to parse?

Usually a trailing comma, single quotes instead of double, an unquoted key, or a stray comment — none of which JSON allows, even though JavaScript does. The error message names the position where the parser gave up.

Does sorting keys change the data?

No. JSON objects have no defined order, so sorted keys carry exactly the same information. It is genuinely useful when comparing two config files, because it removes differences that are only about ordering.

Related tools

Updated: 2026-08-07