JSON Formatter
Format and validate JSON with syntax highlighting.
Paste a JSON payload on the left and a pretty-printed version appears on the right. Invalid input is rejected with the exact parser message so you can find the offending character — trailing comma, missing quote, control character, whatever it is.
Common use cases: cleaning up minified API responses before pasting into a bug report, sanity-checking a config file before committing, validating webhook payloads, and eyeballing whether two JSON blobs are structurally identical after re-indentation.
Input
Output
Frequently asked questions
What does the JSON formatter do?
Does my JSON leave the browser?
JSON.parse and JSON.stringify. Nothing is uploaded, logged, or stored.Why is my JSON invalid?
How big a payload can I format?
Can I minify JSON here too?
JSON.stringify(JSON.parse(input)) in any JavaScript console — single-line output with no whitespace.Other Formatters
View all tools →SQL Prettify
Format and beautify SQL queries
HTML to Markdown
Convert HTML to Markdown format
Markdown to HTML
Convert Markdown to HTML
YAML to JSON
Convert YAML format to JSON with syntax validation
JSON to YAML
Convert JSON to YAML format for configuration files
CSS Minifier
Minify CSS to reduce file size and improve performance
CSS Beautifier
Format and beautify minified CSS code