JSON formatter and validator
Paste JSON to format, validate, minify or convert it to CSV and XML. It runs in your browser, so nothing you paste is uploaded.
Output will appear here
How it works
From messy payload to readable JSON in seconds
Paste your JSON
Valid JSON is pretty-printed as you paste. Invalid JSON shows the line and column of the first error.
Pick an output
Beautify with 2 or 4 spaces and sorted keys, minify it, browse it as a collapsible tree, or convert it to CSV or XML.
Copy or download
One click copies the result. Download saves it as .json, .csv or .xml.
Features
A JSON tool that stays out of your way
Private by design
Everything runs in your browser. Your JSON never leaves your device, so it is safe for API keys and customer data.
Errors you can act on
Line and column for the first syntax error, with the parser message, instead of a red "invalid" badge.
Five views of the same data
Formatted, minified, collapsible tree, CSV and XML, switchable without re-pasting.
Readable highlighting
Keys, strings, numbers, booleans and null each get their own colour, tuned for both dark and light mode.
No ads, no sign-up
Open the page and paste. Nothing to install and nothing to log in to.
Sample data on tap
Need something to test with? Generate a random JSON document in one click.
Guides
Learn the format, fix the errors
- JSON BeautifierPretty-print messy JSON
- JSON MinifierStrip whitespace, shrink payloads
- JSON ValidatorCheck JSON syntax and find errors
- Minify JSONReduce JSON size for production
- Formatter guideA beginner's guide to formatting JSON
- CSV to JSONConvert between CSV and JSON
- Common JSON errorsTen syntax errors and how to fix them
FAQ
Questions developers ask