How to use the CSV to JSON Converter
- Paste CSV or JSON
- Choose the direction and delimiter
- Copy or download the result
CSV to JSON and back
Paste CSV or open a .csv file to get a JSON array, or switch to JSON โ CSV to go the other way. The delimiter is detected automatically โ comma, semicolon, tab or pipe โ and quoted fields containing commas or line breaks are handled correctly. Options: first row is header (gives an array of objects) and detect numbers & booleans (so 22 becomes a number, not "22"). Copy or download the result.
Example
name,age / Ayesha,22 โ [{"name": "Ayesha", "age": 22}]. Values with leading zeros, such as phone numbers starting 0300โฆ, are kept as text.
From Excel
Save the sheet as CSV (File โ Save As โ CSV), or simply copy the cells โ Excel copies them as tab-separated text, which is detected automatically โ and paste here.
Government filing portals
Tax portals such as India's GST and income tax systems need JSON in their own exact format, created by their official offline utilities (for example the GST Returns Offline Tool). Generic JSON from this page won't upload there โ use the official tool for filing.
In Python
json.dumps(list(csv.DictReader(open("data.csv")))), or with pandas, df.to_json(orient="records"). Once this page has loaded, your data never leaves your device.