CSV to JSON converter
Convert CSV to JSON and JSON back to CSV, with delimiter detection, headers and number types.
Runs entirely in your browser. Your files never leave your device.
About this tool
Spreadsheets export CSV, web APIs and JavaScript want JSON. Paste a CSV, or a block copied from a spreadsheet, and get a JSON array with one object per row, keyed by the header line. The delimiter is detected automatically, whether commas, semicolons as in many European exports, tabs or pipes.
Quoted fields with commas, doubled quotes and line breaks inside cells are parsed correctly, following the RFC 4180 rules. Numbers, true, false and null become real JSON values unless you prefer to keep everything as text. Switch direction to turn a JSON array of objects into CSV, with a column for every key found. Download the result or copy it.
How it works
- Choose CSV → JSON or JSON → CSV.
- Paste your data.
- Check the delimiter, header and type options.
- Copy or download the result.
Without a header row, each line becomes an array of values. When converting JSON to CSV, nested objects are written as JSON text in their cell.
Worked example
An export from a French spreadsheet, nom;âge;ville then Ana;31;Lyon, uses semicolons. The delimiter is detected and you get [{"nom": "Ana", "âge": 31, "ville": "Lyon"}], with 31 as a real number.
A list of postal codes such as 01000 should keep its leading zero: switch off type conversion so every value stays text.
Good to know
- Copy cells directly from Excel or Google Sheets: they arrive tab-separated and are read correctly.
- Make sure the first line holds the column names; they become the keys of each object.
- When going back to CSV for Excel in Europe, a semicolon delimiter avoids broken columns.