JSON to CSV and CSV to JSON

Convert between JSON and CSV in both directions.

name,city
Asha,Pune
Ravi,Delhi

About this tool

Spreadsheets love CSV, programs love JSON, and moving data between them by hand is tedious. This tool converts in both directions. In JSON to CSV mode, paste an array of objects and get a table where each key becomes a column; nested objects are flattened into dotted column names such as user.name, and lists are kept as JSON text in one cell. In CSV to JSON mode, paste CSV with a header row and get an array of objects, with an option to turn numbers, true and false and empty cells into real values instead of text. Quoted fields, commas and line breaks inside quotes, and doubled quotes are handled as the CSV format describes, and you can switch between comma, semicolon and tab separators for files exported from regional spreadsheet settings. Errors such as unclosed quotes or broken JSON are reported in plain words. The conversion runs in your browser and nothing is uploaded.

How to use it

  1. Choose JSON to CSV or CSV to JSON.
  2. Paste your data into the input box.
  3. Pick the separator that your file uses.
  4. For CSV to JSON, decide whether to convert numbers and true or false values.
  5. Copy the result with the copy icon.

How it works

JSON to CSV: the columns are the union of all keys in order of first appearance; nested object keys are joined with a dot; arrays are written as JSON text; values containing the separator, a quote or a line break are wrapped in quotes with inner quotes doubled. CSV to JSON: the first row supplies the keys, and with conversion on, empty cells become null, true and false become booleans, and plain numbers without leading zeros become numbers.

Example: The JSON [{"name":"Asha","city":"Pune"},{"name":"Ravi","city":"Delhi"}] becomes the CSV with the header name,city followed by Asha,Pune and Ravi,Delhi. The CSV name,age then Asha,30 becomes an object with name Asha and the number 30.

Common uses

  • Turning an API response into a table that opens in Excel or Google Sheets.
  • Converting a spreadsheet export into JSON for a test or a script.
  • Cleaning up data that mixes quoted and unquoted values.

Frequently asked questions

How are nested objects handled?
Nested keys are flattened into dotted column names, for example user.name. Lists stay as JSON text in a single cell.
Why was my phone number or code like 007 kept as text?
Numbers with leading zeros are left as text on purpose because converting them would lose the zeros.
Can it handle semicolon-separated files?
Yes. Choose the semicolon or tab separator. Some regional spreadsheet settings export CSV with semicolons.
What if my JSON is not an array?
A single object is treated as a one-row table. A plain list of values becomes one column called value.
Is my data uploaded?
No. The conversion runs in your browser.

Last reviewed 2026-11-01. Browse all tools