JSON Formatter
Pretty-print or minify JSON, with instant validation and syntax highlighting.
Mode
Input
0 chars · 0 words · 0 linesOutput
0 chars · 0 words · 0 linesNo changes yetCtrl+Z undo · Ctrl+Shift+Z redo
About this tool
Paste any JSON to pretty-print it with 2-space indentation or minify it down to a single line. Invalid JSON is caught immediately with the parser's exact error message, and valid output is syntax-highlighted so keys, strings, numbers and booleans are easy to tell apart.
Features
- Pretty print with indentation
- Minify to a single line
- Instant validation with error messages
- Syntax highlighting
- Copy button
- Download as .txt