CSV to JSON Converter
Turn CSV into a JSON array of objects. The delimiter is detected for you, and numbers and true or false values are typed.
How to convert CSV to JSON
Paste your CSV
Paste or type it into the box, or press Try an example.
Check the delimiter
It is detected for you, or you can choose it.
Choose the shape
A list of objects keyed by the header, or a list of lists. Say whether the first row is the header.
Convert values
Tick the box to turn numbers and true or false into real JSON values.
Copy or download
Use the JSON in your code or an API request.
Worked example
This is what CSV to JSON Converter gives for its own sample values. Open the tool above and change anything to try your own.
CSV
id,name,email,active,score 1,Ada Lovelace,ada@example.com,true,9.5 2,Linus Torvalds,linus@example.com,false,7 3,"Hopper, Grace",grace@example.com,true,10
- Delimiter
- Detect automatically
- JSON shape
- List of objects
- Indentation
- 2 spaces
- First row is the header
- Yes
- Convert numbers and true/false
- Yes
JSON
[
{
"id": 1,
"name": "Ada Lovelace",
"email": "ada@example.com",
"active": true,
"score": 9.5
},
{
"id": 2,
"name": "Linus Torvalds",
"email": "linus@example.com",
"active": false,
"score": 7
...About CSV to JSON Converter
Turn CSV into a JSON array. The delimiter is detected for you, quoted fields and line breaks inside them are handled, and numbers and true or false values are typed instead of left as text.
FAQs
Does it detect semicolons and tabs?
Yes. Leave the delimiter on automatic, or choose one.
Can I keep every value as text?
Yes. Turn off the option that converts numbers and true or false.
What if my file has no header row?
Turn off the header option and the columns are named column_1, column_2 and so on.