JSON to CSV Converter

Convert a JSON array to a spreadsheet-ready CSV, or turn a CSV into JSON. Choose comma, semicolon or tab as the delimiter and swap direction in one click.

Updated November 2026

Quick answer: To convert JSON to CSV, the tool reads an array of objects, uses the keys as column headings and writes one row per object. To go the other way, it reads the first CSV row as keys and builds one object per remaining row. Values with commas, quotes or line breaks are quoted correctly.

JSON is how most APIs return data, while spreadsheets, databases and reporting tools prefer CSV. This converter bridges the two for quick jobs, without a script.

How the conversion works

  • Columns are the union of all keys found in the array, in order of first appearance. Missing values become empty cells.
  • Nested objects and arrays are written into a single cell as JSON text, so no data is lost.
  • Quoting follows RFC 4180: a value containing the delimiter, a double quote or a line break is wrapped in quotes, and inner quotes are doubled.
  • CSV to JSON turns numbers such as 42 or 3.5 into numbers, and true and false into booleans. Values with leading zeros, such as 007 or a postcode, stay as text so they are not damaged.

Example

Example. The JSON [{"name":"Ana","city":"Lima, Peru"}] becomes two CSV lines: a header name,city and a row Ana,"Lima, Peru". The comma inside the city is protected by quotes.

Tips

  • For spreadsheet apps in regions that use a comma as the decimal mark, pick the semicolon delimiter so columns split correctly.
  • The input must be valid JSON. Property names need double quotes, and trailing commas are not allowed.
  • Very large files are better handled with a script, because the whole text is processed in your browser tab.

Frequently asked questions

Does the JSON have to be an array?

An array of objects works best. A single object is treated as a one-row array.

What happens to nested data?

Nested objects and arrays are stored as JSON text inside one CSV cell.

Why did my CSV numbers turn into text or the other way around?

Plain numbers become JSON numbers. Values with leading zeros, such as 007, stay as text on purpose.

Is my data uploaded?

No. Everything is converted in your browser and nothing leaves your device.

People also search for this as: json to excel, csv to json online, convert json array to csv, csv parser, json to spreadsheet.

Sources and further reading

Press Esc to close