CSV to JSON Converter

Turn a CSV table into a JSON array of objects, with the delimiter detected for you.

How to use

What it checks and how it works

The CSV is read with Papa Parse, which follows the quoting rules of RFC 4180: a cell in double quotes may hold the delimiter, a line break or a doubled quote. With a header row, each following row becomes an object keyed by the column names, and repeated names are renamed name_2, name_3. Typed output writes plain numbers, true and false, and empty cells as JSON types, while values that start with zeros, such as 01234, stay text. CSV carries no types, so the tool cannot know that a column of digits is a phone number: leave typed output off for identifiers. A file saved from Excel in an Arabic locale may use a semicolon delimiter, which auto-detect handles.

Why does my CSV show a different number of cells on some rows?

Usually an unclosed quote or a delimiter inside a cell that was not quoted. The tool counts those rows and fills missing cells with null.

Will 00123 become the number 123?

No. Values that start with zeros stay text even with typed output on, so postcodes, phone numbers and SKUs keep their digits.

Does it keep Arabic text intact?

Yes. It reads and writes Unicode as it is. A byte order mark added by Excel at the start of the file is removed so it does not end up in your first column name.

Sources

Related tools

Privacy

Runs in your browser; nothing is uploaded. The interactive tool needs JavaScript.