a✦ Awais GfxFree online tools
FORMAT · VALIDATE · MINIFY · PRIVATE

JSON Formatter
& Validator.

Paste JSON to make it readable, check it for errors or squeeze it onto one line. Everything runs in your browser, so API keys, tokens and private data never leave your device.

100% FreeNo Sign-upInstant ResultsWorks on MobilePrivate — Runs in Your Browser
Output

How to format and validate JSON

  1. Paste your JSON into the input box — from an API response, a config file or a log.
  2. Press Format to pretty-print it with your chosen indent, or Minify to remove all whitespace.
  3. If there is a mistake, the error message shows what is wrong and the line and column.
  4. Copy the result or download it as a .json file.

Common JSON errors

Trailing comma{"a":1,} — remove the last comma
Single quotes{'a':1} — JSON needs double quotes
Unquoted keys{a:1} — keys must be in double quotes
Comments// note — comments are not allowed in JSON
Special valuesundefined, NaN — use null or a string instead

Promoting a product or service? Awais Gfx makes short video ads for small businesses — see video ads for small business →

Built and maintained by Awais Gfx · Last reviewed November 2026

Frequently asked questions

Is my JSON sent to a server?

No. Formatting and validation use your browser’s built-in JSON parser. Nothing is uploaded, so it is safe for private data.

What is the difference between format and minify?

Format adds line breaks and indentation so people can read it. Minify removes all unneeded spaces to make the file as small as possible for machines.

Why does my JSON fail validation?

The most common causes are trailing commas, single quotes, unquoted keys and comments. The error message points to where the parser stopped.

Can it sort keys?

Yes. Tick “Sort keys A–Z” to sort object keys alphabetically at every level, which makes comparing two files easier.

Is there a size limit?

There is no fixed limit, but very large files (tens of MB) may be slow depending on your device.

More free online tools

Calculators, text and developer tools — free, fast and private.

Free photo tools

Passport photos, background remover and image resizer in KB.