CSV to JSON Converter

Paste a CSV table or open a file to get a JSON array, or switch direction to turn JSON into a CSV file that opens in Excel or Google Sheets. The parser follows the CSV standard, so quoted values, commas inside quotes and line breaks inside cells come through intact.

Runs in your browser — nothing is uploaded

Useful for:Developers

How to use it

  1. Choose the direction: CSV → JSON or JSON → CSV.
  2. Paste your data or open a .csv / .json file. Nothing is uploaded; the conversion happens in your browser.
  3. For CSV input, leave the delimiter on Auto or pick it yourself, and decide whether the first row holds column names and whether numbers and true/false should become real JSON types.
  4. Copy the result or download it as a file. Switching direction carries the current result over, so you can convert back and forth.

Common uses

  • Turning a spreadsheet export into JSON for an API, a database seed or a test fixture.
  • Exporting JSON from an API response into a CSV that opens in Excel.
  • Converting European CSV files that use semicolons instead of commas.
  • Inspecting a CSV file quickly without opening a spreadsheet program.
  • Preparing data for charts, maps or static site generators.

Examples

InputOutput
name,age Alice,30[{ "name": "Alice", "age": 30 }]The first row becomes the keys; 30 is detected as a number.
"Smith, John",45"Smith, John" stays one valueCommas inside quotes don't split the field.
zip;city 01234;Boston[{ "zip": "01234", "city": "Boston" }]Semicolons are detected automatically, and leading zeros keep the value as text.
[{"a":1,"b":2},{"a":3,"c":4}]a,b,c 1,2, 3,,4JSON → CSV: the header is the union of all keys.

Frequently asked questions

Is my data uploaded anywhere?

No. The file is read and converted entirely in your browser, which makes the tool safe for customer lists, exports and other private data.

Why are some numbers kept as text?

Values with leading zeros (ZIP codes, phone numbers, IDs like 007) and integers too large to store exactly are left as strings so nothing is lost. Turn off “Detect numbers and true/false” to keep every value as text.

My CSV uses semicolons. Will it work?

Yes. With the delimiter on Auto, the converter checks the first lines and picks commas, semicolons, tabs or pipes, whichever splits the rows consistently. You can also choose the delimiter yourself.

How are nested JSON objects converted to CSV?

Top-level keys become columns. If a value is itself an object or an array, it is written into the cell as JSON text, so the CSV stays valid and you can still see the data.

What does the “unclosed quote” error mean?

A field starts with a double quote that never closes, so the rest of the file looks like one cell. Check the line mentioned in the message, often a value such as 12" that should be written as "12""".