CSV ↔ JSON Converter

Convert CSV to JSON or JSON to CSV. Handles quotes, commas, and embedded newlines.

100% in your browser · No uploads
Output
[
  {
    "name": "Alice",
    "age": "30",
    "city": "Paris"
  },
  {
    "name": "Bob",
    "age": "25",
    "city": "New York, NY"
  }
]

What this does

CSV ↔ JSON Converter turns a CSV table into an array of JSON objects (using the first row as keys), or flattens an array of JSON objects back into CSV. Handles quoted fields, embedded commas, and escaped quotes.

When to use it

  • Importing a spreadsheet into a tool that only accepts JSON
  • Exporting JSON API data to share with someone in Excel or Google Sheets
  • Converting CSV downloads to JSON for use in a script
  • Quickly inspecting CSV structure as readable JSON

Frequently asked

What CSV dialect does it support?

RFC 4180 with a configurable delimiter (comma, semicolon, tab, pipe). Fields with commas, quotes, or newlines should be wrapped in double quotes.

Can it handle nested JSON?

Going CSV → JSON only produces flat objects (one row → one object). Going JSON → CSV will stringify nested values; for deep nesting, flatten first.