CSV to JSON Converter

Convert pasted CSV or TSV to JSON. Use the first row as object keys or return an array of rows. Values stay as text, preserving leading zeros and spreadsheet-formatted dates.

Workspace

JSON output

Your result will appear here.

How to use it

  1. Paste the delimited text and choose the separator used between its fields.
  2. Keep the header option enabled for named columns, or turn it off for an array of arrays.
  3. Convert and copy the JSON. If a row has a different number of columns, correct the input and try again.

Worked example

Input
id,name
007,"Green, large"
Output
[
  {
    "id": "007",
    "name": "Green, large"
  }
]

Frequently asked questions

Can CSV fields contain commas or line breaks?

Yes. Enclose the whole field in double quotes and write two consecutive double quotes to represent a quote within the field.

Why do numbers appear inside quotes in the JSON?

The converter preserves field values as strings so IDs, leading zeros, dates and other ambiguous values survive conversion. Convert selected columns to numbers after checking their meaning.