Convert CSV to JSON and JSON to CSV
Paste a CSV (or open one exported from Excel or Google Sheets) to get JSON ready for code, or turn JSON into a CSV table that Excel opens directly. Your data never leaves your browser.
đź”’ Your files never leave your device
How to use it
- Choose the direction: CSV → JSON or JSON → CSV.
- Paste the data or choose a .csv or .json file (the direction is detected automatically).
- The delimiter is detected automatically; change it if needed. For CSV → JSON, say whether the first row is the header.
- Press “Convert” and copy or download the result.
Example
A list exported from Excel
The CSV “name,amount” with the row “"Smith, Ann",12” becomes [{"name": "Smith, Ann", "amount": 12}]: the comma inside the quotes does not split the field. The other way round, JSON objects with different keys produce one column for every key that appears.
How it works
CSV is read according to RFC 4180: quoted fields may contain delimiters, line breaks or escaped double quotes ("").
The delimiter is detected by checking which character (comma, semicolon, tab or pipe) appears the same number of times on every line.
With “Detect numbers and true/false”, numeric values are written as JSON numbers; IDs longer than 15 digits stay as text so no precision is lost.
From JSON to CSV, numbers are copied exactly as written, the columns are the union of all keys, and nested objects or arrays are written as JSON inside the cell.
Limitations
- Numbers with a decimal comma (“12,5”) stay as text, because JSON uses a decimal point.
- Files of tens of MB may be slow; the preview shows at most 200,000 characters, but the download includes everything.
- The default CSV delimiter is a comma; choose semicolon if your Excel uses a decimal comma.
FAQ
How do I open the CSV in Excel with the right characters?
The downloaded file includes the UTF-8 marker Excel needs; just double-click it.
Is my data sent anywhere?
No. The conversion runs in your browser; you can check by going offline.
What happens to nested objects?
They are written as JSON text inside the cell. To split them into columns, flatten the JSON first.