Skip to content

JSON Formatter

Format, validate, minify and sort JSON, with precise error locations.

Loading tool…

Runs locally in your browser. Your files are never uploaded.

About this tool

Pretty-print or minify JSON and sort keys. When the JSON is invalid, it shows the exact line and column of the error.

How to use it

  1. Paste JSON or load a file.
  2. Format, minify or sort keys.
  3. Copy or download the result.