JSON Parser / Formatter

Free online JSON parser. Validate, pretty-print, and minify JSON in real time with syntax highlighting and error location. 100% client-side.

Paste JSON on the left to see validation result
0 chars
Paste JSON on the left to see the formatted result here

😄 Free thanks to ads

Online JSON Parser & Formatter

JSON (JavaScript Object Notation) is the most common data exchange format. A JSON parser validates your JSON, pretty-prints it with indentation, and highlights syntax so you can spot errors instantly.

Features

Lenient mode — auto-recovery for broken JSON

JSON copied from chat apps, email clients, or terminals often contains accidental line breaks that break JSON.parse. This tool auto-recovers 4 common cases:

  1. Control chars inside strings (\n, \t) → replaced with spaces
  2. Line breaks inside tokens (e.g. 847\n521, fal\nse) → rejoined
  3. Trailing commas → removed
  4. Comments (//, /* */) → stripped (URLs preserved)

When recovery applies, a yellow warning banner appears and recovered values are outlined in red.

Privacy: 100% client-side

Your JSON is never sent to any server. All parsing happens in your browser. Safe for JSON containing API keys, passwords, or sensitive customer data.

Common parse errors

JSON syntax cheatsheet

More iTool Features!

Help us improve this tool

Share what you like, what needs work, or features you'd like to see