Skip to content
Language:en

CSV to JSON converter

Convert CSV to JSON and JSON back to CSV, with delimiter detection, headers and number types.

Convert

Runs entirely in your browser. Your files never leave your device.

About this tool

Spreadsheets export CSV, web APIs and JavaScript want JSON. Paste a CSV, or a block copied from a spreadsheet, and get a JSON array with one object per row, keyed by the header line. The delimiter is detected automatically, whether commas, semicolons as in many European exports, tabs or pipes.

Quoted fields with commas, doubled quotes and line breaks inside cells are parsed correctly, following the RFC 4180 rules. Numbers, true, false and null become real JSON values unless you prefer to keep everything as text. Switch direction to turn a JSON array of objects into CSV, with a column for every key found. Download the result or copy it.

How it works

  1. Choose CSV → JSON or JSON → CSV.
  2. Paste your data.
  3. Check the delimiter, header and type options.
  4. Copy or download the result.

Without a header row, each line becomes an array of values. When converting JSON to CSV, nested objects are written as JSON text in their cell.

Worked example

An export from a French spreadsheet, nom;âge;ville then Ana;31;Lyon, uses semicolons. The delimiter is detected and you get [{"nom": "Ana", "âge": 31, "ville": "Lyon"}], with 31 as a real number.

A list of postal codes such as 01000 should keep its leading zero: switch off type conversion so every value stays text.

Good to know

  • Copy cells directly from Excel or Google Sheets: they arrive tab-separated and are read correctly.
  • Make sure the first line holds the column names; they become the keys of each object.
  • When going back to CSV for Excel in Europe, a semicolon delimiter avoids broken columns.

Frequently asked questions

Why does my European CSV use semicolons?
In countries where the comma is the decimal separator, spreadsheets use semicolons between columns. Auto-detection handles both.
Can I paste cells copied from Excel or Google Sheets?
Yes. Copied cells are separated by tabs, which auto-detection recognises.
Are leading zeros kept, as in postal codes?
Values such as 01234 are not valid JSON numbers, so they stay as text. Turn off type detection to keep every value as a string.