Convertools Dev
All tools

Convert CSV to JSON

Turn CSV with a header row into an array of JSON objects.

CSV input

Paste text or drop a file here (up to 50 MB).

JSON result

Free to use. Your input stays in this browser.

How to use it

  1. Paste CSV or drop a .csv file. The first row becomes the keys.
  2. Check the detected delimiter and the value options.
  3. Copy the result or download it as a .json file.

Following RFC 4180, quoted fields can contain delimiters, line breaks, and doubled quotes (""). Repeated headers get a suffix such as id_2.

With value reading on, 42 and 3.5 become numbers and true and false become booleans, while 007 stays text. Headers such as address.city become nested objects; turn that option off to keep flat keys.

Example

CSV input
id,name,address.city,active,joined
1,Ada,London,true,2024-01-05
2,"Hopper, Grace",New York,false,2023-11-30
JSON result
[
  {
    "id": 1,
    "name": "Ada",
    "address": {
      "city": "London"
    },
    "active": true,
    "joined": "2024-01-05"
  },
  {
    "id": 2,
    "name": "Hopper, Grace",
    "address": {
      "city": "New York"
    },
    "active": false,
    "joined": "2023-11-30"
  }
]