JSON and CSV tools
Free converters, a formatter and minifiers for JSON, CSV, Excel, YAML, XML and JavaScript. Each one runs in your browser, so your data is never uploaded.
Converters
JSON to CSVFlatten nested objects, read JSON Lines and download a CSV that opens cleanly in Excel.
CSV to JSONDetect the delimiter, type the values and rebuild nested JSON from column names.
JSON to ExcelDownload a real .xlsx workbook where zip codes and long IDs stay exact.
JSON FormatterValidate, pretty-print or minify JSON, with the exact line and column of every error and a one-click fix.
JSON to YAMLSafe quoting for yes, no and 0123, ready for Kubernetes, Compose and CI files.
JSON to XMLChoose the root, repeat or wrap arrays and turn @keys into attributes.
JSON MinifierStrip whitespace from validated JSON and see exactly how many bytes you saved.
JavaScript MinifierRemove comments and whitespace safely. Does not rename variables.
JSON DiffCompare two JSON documents and see every added, removed and changed key with its path.
JSONL to CSV ConverterConvert JSON Lines and NDJSON logs or exports to CSV, with nested objects flattened into columns.
XML to JSON ConverterConvert XML to JSON with clear rules for attributes, repeated elements and text.
YAML to JSON ConverterConvert YAML configuration to JSON, with anchors resolved and clear error messages.
JSON to SQL ConverterTurn a JSON array into CREATE TABLE and INSERT statements for MySQL, PostgreSQL, SQLite or SQL Server.
JSON Schema Generator and ValidatorGenerate a JSON Schema from a sample, or check data against a schema and see every error.
Guides
Excel changes long numbers in CSVWhy IDs lose digits and zip codes lose zeros, and four ways to stop it.Unexpected token in JSONWhat the error means and how to find the real cause.Flatten nested JSON into CSVObjects, arrays as columns or rows, and when to use each.How to open a JSON fileOn Windows, Mac and in Excel, readable or as a table.JSON vs CSVWhich format fits your data, with a side-by-side table.CSV garbled or in one columnFix encoding and delimiter problems in Excel.JSONL vs JSONWhat JSON Lines is, and when it beats a JSON array.YAML gotchasWhy NO becomes false and 1.10 becomes 1.1.XML to JSON rulesHow attributes, repeated elements and text are converted.Import JSON into SQLTypes, NULLs, nested data and big IDs for MySQL and PostgreSQL.JSON Schema basicsDescribe and validate JSON, and read the errors.Compare two JSON filesWhy text diffs mislead, and how to read a structural diff.JSON to CSV in Pythonpandas and the csv module, with nesting and encoding.JSON into Excel with Power QueryLoad, expand and refresh a JSON file as a table.JSON to CSV with jqCommand line one-liners that work.Excel or CSV to JSONExcel has no JSON export; here is the reliable route.Invalid JSON: 10 common errorsTrailing commas, quotes, NaN, BOM and how to fix them.JSON to CSV in JavaScriptA no-library converter with correct escaping.
Which converter do you need?
Pick by what you have and what you want to end up with.
| You have | You want | Use |
|---|---|---|
| JSON or JSON Lines, such as an API response | A CSV for a spreadsheet, a database import or a script | JSON to CSV |
| A CSV or an Excel export saved as CSV | JSON for an API, an app or a config file | CSV to JSON |
| JSON | An Excel workbook to filter, sort and share | JSON to Excel |
| JSON that will not parse, or is hard to read | A valid, readable or minified version | JSON Formatter |
| JSON | YAML for Kubernetes, Compose, CI or OpenAPI | JSON to YAML |
| JSON | XML for a legacy system, a feed or a config file | JSON to XML |
| Pretty-printed JSON | The smallest valid text, for storage or a payload | JSON Minifier |
| JavaScript with comments and indentation | A smaller file without a build step | JavaScript Minifier |
| Two versions of a JSON document | A list of added, removed and changed keys | JSON Diff |
| JSON Lines or NDJSON from logs and exports | A CSV with one row per line | JSONL to CSV Converter |
| XML from a feed, an API or a legacy system | JSON with attributes and arrays | XML to JSON Converter |
| YAML from Kubernetes, Compose, CI or OpenAPI | JSON with anchors resolved | YAML to JSON Converter |
| A JSON array of records | CREATE TABLE and INSERT statements | JSON to SQL Converter |
| A sample JSON document, or data and a schema | A schema, or a list of validation errors | JSON Schema Generator and Validator |
Why these tools run in your browser
Data you want to convert is often customer records, orders or internal exports. The converters here read your file with JavaScript on your own device and build the result there too. Nothing is sent to a server, nothing is stored, and the pages keep working if your connection drops after they have loaded.
Read the privacy policy for the details, or get in touch if there is a converter you would like to see added.