Skip to content

JSON Formatter

Paste messy JSON and get it back indented, validated and browsable. When the syntax is broken, the tool shows the line, column and surrounding snippet where the parser gave up, instead of a bare "Unexpected token".

# processed in your browser. no request leaves this page.

How it works

Parsing uses your browser own JSON.parse, so the result is exactly what your application will see. To locate errors, the tool reads the offset the parser reports and converts it into a line and column.

  • Indent with 2 or 4 spaces, or minify to a single line
  • Error message with line, column and the offending snippet
  • Sort keys alphabetically to diff two payloads
  • Key count, maximum depth and document size

Other tools

See all tools →