CSV to JSON Converter

How it works
Indent
Valid CSV

Input CSV

No problems found. This is valid CSV.

About CSV to JSON

Spreadsheet exports and database dumps usually come as CSV, while APIs and scripts want JSON. Paste the CSV here and each row becomes an object whose keys come from the header row, so "name,email" turns into {"name": …, "email": …}.

Commas, quotes and line breaks inside quoted fields are read correctly, and tab-separated files work too. The conversion happens in your browser; the file is never uploaded.

How to use it

  1. Paste your CSV into the Input panel, or use Open to load a .csv or .tsv file.
  2. Make sure Input says CSV and choose Convert to JSON as the Output.
  3. Check the Problems panel for rows with too few or too many fields.
  4. Copy the JSON, download it as a .json file, or pick 2, 4 or Tab indentation first.

Frequently asked questions

Are numbers converted to JSON numbers?

No. Every value stays a string, exactly as it appears in the CSV, so IDs like "007" and dates are never altered. Convert types in your own code where you need them.

What if two columns have the same name?

The second one gets a suffix, so a header of "a,a" becomes the keys "a" and "a_1" and no data is lost.

What happens to empty lines?

Blank lines are skipped. Rows with a different number of fields than the header are still converted and are listed as warnings so you can check them.

Related tools