CSV to JSON

Parse CSV (or TSV) into JSON, with delimiter detection, type inference and a table preview.

About CSV to JSON

CSV is the common exchange format for spreadsheets and databases; JSON is what APIs and programs prefer. This tool parses CSV according to RFC 4180, handling commas and line breaks inside quoted fields, and prints structured JSON.

When you would use it

How to use it

  1. Paste the CSV into the input; the delimiter is detected automatically.
  2. Check the table preview, paying attention to fields that contain commas.
  3. Adjust the options as needed: header row, type conversion, trimming.
  4. Copy the JSON from the output below.

Things worth knowing

Frequently asked questions

Why do non-ASCII characters show up as garbage?
That is a file encoding problem rather than a parsing one. Excel often exports CSV in a regional encoding or UTF-8 with a BOM. Re-save the file as UTF-8 in a text editor and paste it again.
Can I convert JSON back to CSV?
Yes, with the JSON to CSV tool. Both sides follow RFC 4180 quoting, so a round trip preserves the values.

All the tools