How this calculator works
- Step 1Split into recordsOne per lineLine breaks inside quotes stay inside the field.
- Step 2Split into fieldsAt each delimiterCommas inside quotes are kept as text.
- Step 3Name the fieldsHeader rowEach record becomes an object with those names.
CSV looks simple, but quoted fields make naive splitting at commas go wrong. This converter reads quotes the way the CSV standard (RFC 4180) describes.
Worked example: a quoted comma
"Rao, Asha" contains a comma, but it is one field because it is in quotes.
- Line
"Rao, Asha",Pune,12500
- Field 1 (quoted)Rao, Asha
- Field 2Pune
- Field 312500
- As JSON, with number detection{"name":"Rao, Asha","city":"Pune","amount":12500}
Reading the result
- All text (default)"12500"Safe for codes, PIN codes and phone numbers.
- Detect types12500Numbers, true/false and null, ready for calculations.
- QuotesCommas, line breaks and "" inside quoted fields.
- DelimitersComma, semicolon, tab or pipe, detected for you.
- Uneven rowsLines with too few or too many fields are listed.
- Excel exportsA byte-order mark at the start is removed.
Related data tools
Converting is the first step. Checking and comparing the result come next.
To validate and format the output, use the JSON formatter. The diff checker compares two exports, and the remove duplicate lines tool cleans a column of values.
Common mistakes
Mistake: Splitting CSV at every comma in your own code.
Instead: Use a real CSV parser so quoted commas survive.
Mistake: Turning PIN codes or account numbers into numbers.
Instead: Keep type detection off, or check leading zeros.
Mistake: Opening a semicolon CSV as comma-separated.
Instead: Let the converter detect the delimiter, or choose it.
Read how we test our calculators, or browse more developer tools.