JSON Formatter

Paste raw JSON and get a clean, indented version — or the opposite, a compact one-liner. Errors are reported with their exact position so you can fix them fast.

Free Runs in your browser No sign-up
Updated as you type

How to use

  1. Paste JSON

    From an API, a config file or a log line.

  2. Choose indentation

    2 or 4 spaces, tabs, or minify.

  3. Copy the result

    Invalid JSON is flagged, never mangled.

Supported formats

  • Input: JSON
  • Output: JSON

Limits & notes

  • Very large documents (>5 MB) may take a moment.