CSV → JSON
CSV to JSON converter
Paste CSV (or open a .csv file) and get a JSON array: one object per row, keyed by the header row, or plain arrays if there’s no header. The delimiter is detected for you, quoted fields with commas, quotes and line breaks are handled properly, and numbers, true/false and empty cells can be turned into real JSON types.
Private: your files never leave your device.
3 rows
How was this tool?
How to use CSV to JSON converter
Step 1: Paste CSV or open a .csv / .tsv file.
Step 2: Check the delimiter and whether the first row is a header.
Step 3: Copy the JSON or download it as a .json file.
What counts as valid CSV
- Fields are separated by one delimiter (comma, semicolon, tab or pipe) and rows by line breaks (Windows or Unix).
- A field wrapped in double quotes may contain the delimiter, line breaks and quotes written twice: "He said ""hi""".
- A quote that’s opened and never closed is an error, reported with its line.
- A UTF-8 byte-order mark at the start (added by Excel) is ignored.
Type detection turns 42 and 3.14 into numbers, true/false into booleans and empty cells into null. Values with leading zeros and numbers too long to be exact in JavaScript stay strings.
Frequently asked questions
Does it handle commas and line breaks inside fields?
Yes. Fields in double quotes may contain the delimiter, line breaks and quotes written as two quotes (""), as in RFC 4180 and Excel’s own CSV.
Why does 007 stay a string?
Numbers with leading zeros (postcodes, IDs) would lose them as numbers, so they stay text. Turn type detection off to keep every value as a string.
What happens with duplicate or empty headers?
They get unique names: a second “name” becomes name_2 and an empty header becomes column_3, so no value is lost.