Developer tool
CSV to JSON
Free CSV to JSON converter: paste comma, semicolon or tab separated data and get JSON records. Handles quoted cells and headers in your browser, with no upload.
Your file never leaves your device.
Runs locally in your browser
Your text is not uploaded.
What is a CSV to JSON converter?
A CSV to JSON converter is a tool that transforms comma-separated values into structured JSON (JavaScript Object Notation) records. File ICU’s CSV to JSON runs client-side, in your browser, so your data is never uploaded.
Simple steps
How it works
- 01
Paste CSV with a header row.
- 02
Choose its delimiter and whether the first row contains headers.
- 03
Copy the resulting JSON.
A worked example
With First row contains headers on, a CSV made of the four lines name,city,age then "Smith, Anna",Paris,34 then Lee,,29 then Khan,Lahore,41,extra becomes three records: {"name": "Smith, Anna", "city": "Paris", "age": "34"}, {"name": "Lee", "city": "", "age": "29"} and {"name": "Khan", "city": "Lahore", "age": "41"}.
The comma inside the quotes stays part of the name, the empty city becomes an empty string and the extra fourth cell is dropped.
Types, headers and errors
Every value stays a string: 34 becomes "34", not the number 34. That keeps postcodes, phone numbers and IDs with leading zeros, such as 00123, exactly as written; convert values to numbers in your own code where you need them. Two double quotes inside a quoted cell stand for one quote character.
Without the header option, the keys are column1, column2 and so on, and an empty header cell is also named by its position. Completely empty rows are skipped. A quote that is opened but never closed stops the conversion with an error, rather than merging the rest of the file into one cell.
Good to know
Frequently asked questions
How do I convert CSV to JSON locally in my browser?
Paste your CSV into CSV to JSON and choose its delimiter: comma, semicolon or tab. With Use first row as headers on, the first row gives the field names and each following row becomes one JSON record; quoted values that contain commas are handled. Everything is parsed in your browser, so nothing is uploaded.
How are field names chosen?
With Use first row as headers enabled, cells from row one become JSON keys.
Are quoted commas supported?
Yes. Commas and newlines inside quoted CSV cells stay within that value.
What happens when rows have different lengths?
Missing cells become empty strings; extra cells are ignored when headers are enabled.
Can I use tabs or semicolons?
Yes. Choose comma, semicolon, or tab as the delimiter.
Does conversion upload my data?
No. CSV parsing and JSON generation run in your browser.