JSON Toolkit
Everything you need when JSON lands in front of you: from an API response, a config file, a log or an AI model. Each tool runs in your browser, so the data you paste stays on your device.
Check and tidy JSON
Start here when JSON won't parse or is hard to read. The formatter validates as you type, points to the line and column of an error, and beautifies or minifies the result. JSON Statistics shows the shape of a large document: depth, key counts and value types.
Compare two JSON documents
To see what changed between two API responses or two versions of a config, compare them structurally. Key order and formatting are ignored, so only real differences show.
Generate types and schemas
Turn a sample payload into TypeScript interfaces for your code, or a JSON Schema for validating requests.
Convert to and from other formats
Move data between JSON and spreadsheets, config files and XML APIs.
JSON to CSV
Convert a JSON array to CSV format instantly online, for free.
CSV to JSON
Convert CSV data or spreadsheet files to a JSON array instantly online, for free.
JSON to YAML
Convert JSON to YAML format instantly online, for free.
YAML to JSON
Convert YAML to JSON online, free and instant.
XML to JSON
Convert XML markup to a clean JSON object instantly online, for free.
Put JSON inside code or other JSON
Escape a JSON document so it can sit inside a string, or unescape one copied from a log.
Frequently asked questions
How do I check if my JSON is valid?
Paste it into the JSON Formatter. It shows Valid or Invalid as you type, and for invalid JSON it gives the line and column of the problem.
How do I compare two JSON files?
Use JSON Compare. It compares the structure, so a different key order or indentation isn't reported as a change.
Can I convert JSON to Excel?
Convert a JSON array to CSV with JSON to CSV, then open the file in Excel or Google Sheets. Every key becomes a column; nested values are written as text.
Is the JSON I paste uploaded?
No. Every tool in this toolkit runs in your browser.