Smart Unit ConvertersSmart Unit Converters

JSON ↔ CSV Converter

Convert JSON arrays of objects to CSV (or back). Custom delimiter, type coercion, copy + download.

JSONCSVDelimiter:
JSON → CSV: input must be an array of objects. Keys from all rows are merged into the header. CSV → JSON: first row treated as headers; cells are coerced to numbers/booleans/null where possible.

?What is the JSON ↔ CSV Converter?

The JSON ↔ CSV converter turns an array of JSON objects into a CSV table (and vice versa) — the most common data-transformation task in spreadsheet, ETL, and reporting workflows. Headers are inferred from the union of keys across all rows. Cells are properly escaped: values containing commas, quotes, or newlines are wrapped in quotes with internal quotes doubled. Choose comma, semicolon, tab, or pipe as your delimiter to match your spreadsheet's locale (Excel in many European locales uses semicolon; tab-separated values are universal). When converting CSV → JSON, simple types (numbers, booleans, null) are coerced automatically.

The Formula

JSON [{a:1,b:2},{a:3}] → CSV header: 'a,b' + rows. Cells with comma/quote/newline are wrapped in "…" with internal " doubled.

Practical Examples

1

Convert a JSON API response to CSV for opening in Excel or Google Sheets.

2

Convert a CSV export from your database to JSON for import into a JS app.

3

Bulk-edit data: API → JSON → CSV → edit in Sheets → CSV → JSON → API.

4

Convert MongoDB exports (JSON Lines) to CSV for non-technical stakeholders.

5

Sample data: list of cities or products with name, country, population — converts cleanly.

Frequently Asked Questions

Because the delimiter character (usually comma) might appear inside cell values. Wrapping the cell in double quotes signals 'this comma is data, not a field separator'. Internal double quotes are escaped by doubling: "He said ""hi""".

Popular Conversions

Jump to a ready-made conversion — useful for quick reference and sharing: