Kadben

Convert CSV to JSON

Choose a CSV file or paste CSV to get a JSON array with one object per row. The delimiter is detected, and European files with semicolons and decimal commas work.

Runs in your browser. Nothing is uploaded.

CSV to JSON

Input
Options

The result appears here.

How to use it

  1. Choose a CSV or TSV file, drop it on the box, or paste the text; the result appears at once.
  2. Check the delimiter and the header option; the notes next to the result show what was detected.
  3. Decide whether numbers and true/false should become JSON numbers and booleans, and whether dotted headers should become nested objects.
  4. Download the .json file or copy the result.

Rules and limits

How CSV is read

From CSV to JSON

Dotted headers back to nesting

Questions and answers

How is the delimiter detected?

It picks the one that gives the same number of fields, more than one, in most of the first rows. Set it yourself if the guess is wrong.

Why did 01067 or 1,234.50 stay a string?

Changing them could change the data: 01067 would lose its zero, and 1,234.50 could mean two different numbers. Fix such values in the file if they should be numbers.

What if a header has a dot but should stay flat?

Leave “Nest dotted headers” off: the header is then used as it is, dots included.

Why do some letters look wrong?

The file was saved in an encoding other than the one the page guessed. Save it as “CSV UTF-8” in Excel, or as UTF-8 in your editor, and convert again.

What if rows have more or fewer fields than the header?

Missing fields become "" and extra fields get keys named column_N. The first such row is reported with its line number.

Related tools