All tools

JSON Formatter & Validator

Format, validate, and minify JSON.

Input

About

Paste JSON and get pretty-printed output. Click minify to compact it. Click copy to grab the result. Errors get the exact line and character so you can fix them fast.

How to use

  1. Paste your JSON into the input box.
  2. Click Format to pretty-print it, or Minify to compact it.
  3. Click Copy to grab the output. If the JSON is invalid, the exact line and character of the error are shown.

FAQ

Does my JSON leave my browser?+

No. Formatting and validation happen entirely locally. Nothing is uploaded.

Does it support trailing commas or comments?+

Strict JSON does not allow either, and this tool follows the strict spec. If you have JSON5 or JSONC, remove the extras first.