CSV to JSON Converter (and JSON to CSV)

Convert CSV to JSON and JSON to CSV online. Detects commas, semicolons and tabs, handles quotes, and flattens nested JSON into columns. Runs in your browser.

How to convert CSV to JSON

  1. Paste your CSV or open a file. The result appears instantly.
  2. If the first row holds the column names, keep the header option ticked: each row becomes an object with those keys.
  3. To go the other way, choose JSON → CSV and paste an array of objects.
  4. Copy the result or download it as a file.

CSV and JSON in a nutshell

CSV (comma-separated values) is a table in plain text: one row per line, with columns separated by a character. It's what Excel, Google Sheets and databases export. JSON is the data format of almost every web API. Converting between them is common for importing spreadsheets into apps or checking API responses in Excel.

Frequently asked questions

How are commas inside values handled?

Values that contain the delimiter, quotes or line breaks must be wrapped in double quotes, and a quote inside a value is written twice (""). The converter reads and writes CSV this way (RFC 4180), so spreadsheets open the result correctly.

My CSV uses semicolons. Does that work?

Yes. Spreadsheets in many European countries, including Spain, save CSV with semicolons because the comma is the decimal separator. The converter detects commas, semicolons, tabs and pipes automatically, or you can choose one.

What happens to nested JSON when converting to CSV?

Nested objects become columns with dotted names, so {"address": {"city": "Madrid"}} becomes a column address.city. Arrays are written as JSON text inside the cell.

Is my data uploaded?

No. The conversion runs in your browser, so customer lists and other private data never leave your computer.

Related tools