JSON formatter

Paste JSON, then pretty-print or minify it. Errors point at what's wrong.

What is JSON formatter?

JSON (JavaScript Object Notation) is the standard format for data exchanged between APIs and web apps โ€” this pretty-prints it for readability, minifies it to save space, or just validates that it's syntactically correct.

How to use it

Paste JSON and click Pretty-print for indented, human-readable output, or Minify to strip all whitespace for production use. Validation errors point at exactly what's wrong.

Example

{"name":"Alex","role":"admin"} pretty-printed becomes: { "name": "Alex", "role": "admin" }