JSON Formatter

Format, validate and minify JSON instantly. Your data stays on your device.

Output

โœ“ Valid JSON

Features

  • Validates your JSON and shows the parser's error message when it is invalid.
  • Pretty-prints with 2 or 4 spaces, or minifies to one line.
  • Download the result as a .json file.

Common JSON mistakes

  • Keys and strings must use double quotes: {"a": 1}, not {a: 1} or {'a': 1}.
  • No trailing commas after the last item.
  • No comments. JSON doesn't allow // comments.

Frequently asked questions

Is my JSON uploaded?

No. Parsing and formatting happen entirely in your browser, which makes it safe for API responses and config files.

How big can the JSON be?

Several megabytes work fine on most devices.

Why minify JSON?

It removes whitespace to reduce size for APIs and storage.

More text and developer tools

See all text and developer tools โ†’