JSON Formatter
Paste messy JSON and get it formatted, minified or validated instantly. Errors point at the exact line and column.
Paste or type — it formats as you go
Indent
Runs entirely in your browser — nothing you paste is uploaded or stored.
About json formatter
JSON is easy for machines and awful for humans the moment it arrives on one line. Formatting it with consistent indentation is usually the fastest way to understand a payload you have just pulled out of an API or a log.
This formatter parses the document first, so it does more than add whitespace: if the JSON is invalid you get the parser's message plus the line and column where it gave up, which is normally enough to spot the trailing comma or unquoted key that caused it.
Good to know
- Everything happens in your browser. The JSON never leaves your machine, so it is safe to paste a payload containing credentials or personal data.
- Minify strips every optional byte of whitespace — useful when you need to embed a document in an environment variable or a single-line config value.
- Indentation can be 2 spaces, 4 spaces or tabs, matching whatever your project uses.