Contact

CSV to JSON Converter

Turn a CSV table into a JSON array of objects.

The first row is the header. Later rows become objects.

[
  {
    "name": "Ada",
    "role": "Design"
  },
  {
    "name": "Lin",
    "role": "Build"
  }
]

Calculations happen in your browser.

Worked example

A header name,role followed by Ada,Design and Lin,Build becomes an array of two objects, each with name and role.

FAQ

Does the first row have to be a header?
Yes. Those cells become the object keys. Later rows become the values.
How are quoted commas handled?
A quoted cell can contain commas. A doubled quote inside a quoted cell is one quote character.
What if a row is shorter than the header?
Missing cells become empty strings. Extra cells beyond the header are dropped.