Everyday tools / JSON FormatterFOR DEVELOPERS AND THE DATA-CURIOUS

Clean JSON.
Clear errors.

Paste an API response or config file to beautify it, find the exact line of a syntax error, or minify it for production. Data stays on your device.

PASTE YOUR JSON

GOOD TO KNOW

Fixing the usual JSON errors.

Most invalid JSON comes from a handful of mistakes. The error line tells you where to look.

  • Trailing commas after the last item in an object or array are not allowed.
  • Single quotes must be double quotes: "name", not 'name'.
  • Unquoted keys such as {name: 1} are JavaScript, not JSON.
  • Comments are not part of standard JSON.
  • Special values like undefined or NaN are not valid; use null.
Is my JSON sent to a server?+

No. Parsing and formatting use your browser’s built-in JSON engine, so API keys and personal data in the payload stay on your device.

What is the difference between formatting and minifying?+

Formatting adds line breaks and indentation for reading. Minifying removes all unnecessary whitespace to make the file as small as possible.

Why sort keys?+

Sorted keys make two versions of the same data easier to compare in a diff tool.

Is there a size limit?+

Several megabytes work comfortably on a modern computer. Very large files may be slow on older phones.

Word Counter ↗ · Password Generator ↗