What is the CSV to JSON Converter?
The CSV to JSON converter reads comma-separated (or tab, semicolon or pipe-separated) data and outputs a JSON array. When the first row holds column names, each following row becomes an object such as {"id": 1, "name": "Ada"}. Without a header row you get an array of arrays.
The parser follows RFC 4180, the CSV standard. Fields wrapped in double quotes may contain commas, line breaks and escaped quotes (""), which is where simple "split on comma" converters go wrong. With Convert numbers & booleans on, values like 42, true and null become real JSON types. Values like 007 and phone numbers stay strings, so leading zeros are not lost.
How to use the CSV to JSON Converter
- Paste CSV exported from Excel, Google Sheets or a database.
- Leave the delimiter on Auto-detect or choose one yourself.
- Untick First row is header if your data has no column names.
- Click Convert to JSON and copy or download the result.
Frequently asked questions
Can a CSV value contain a comma or a new line?
Yes, as long as the value is wrapped in double quotes, for example "London, UK". This converter handles quoted commas, line breaks and doubled quotes correctly.
Why did my zip code keep its leading zero?
On purpose. Numbers are only converted when converting back would give the exact same text, so 02134 stays the string "02134".
What happens with duplicate column names?
Duplicates get a suffix, so two name columns become name and name_2. No data is overwritten.
Does it support TSV (tab-separated values)?
Yes. Auto-detect recognises tabs, or you can choose Tab as the delimiter. Data copied from a spreadsheet is usually tab-separated.