Free tool

CSV to JSON, rows to objects.

Drop a CSV file or paste the text and get JSON: with headers, each row becomes an object with the header names as keys; without, each row becomes an array. Numbers and true or false become real JSON values, empty cells become null, and quoted cells with commas or line breaks are read correctly. Pretty-print it or keep it compact, then copy or download.

Converted in your browser. Your data is never uploaded.

Ready for code

Typed values, clean keys.

01 / Objects

Headers as keys

The first row names the fields; blank headers become column1, column2 and so on.

02 / Types

Real values

42 becomes a number, true a boolean, and an empty cell null. Turn this off to keep everything as text.

03 / Robust

Proper CSV reading

Quoted cells, doubled quotes and line breaks inside quotes are handled.

Questions

Good to know.

How do I convert CSV to JSON?

Drop or paste the CSV and press Save the JSON. The JSON also shows in the box.

What if my CSV has no header row?

Untick The first row is headers to get an array of arrays.

Are numbers kept as numbers?

Yes, unless you untick that option. Numbers with leading zeros stay as text.

Does it handle semicolons or tabs?

Yes. The separator is found for you, or pick it.

Is my data uploaded?

No.