JSON ⇄ CSV
Convert a JSON array of objects into CSV, or a CSV file into a JSON array, in one click — handling quoted fields, embedded commas and nested values correctly.
About the JSON ⇄ CSV
JSON handles nested structure naturally; CSV is flat, spreadsheet-shaped rows and columns — which is exactly why converting between them is more than a find-and-replace. A JSON array of objects maps cleanly to CSV when every object has the same flat set of keys, with each key becoming a column.
The tricky part is quoting: a CSV value containing a comma, a quote character, or a newline has to be wrapped in double quotes (with internal quotes doubled) per RFC 4180, or it silently corrupts the column alignment when opened in a spreadsheet. This converter handles that quoting in both directions automatically.
How to use it
- 1Paste a JSON array of objects, or CSV with a header row.
- 2Choose the conversion direction.
- 3Copy or download the converted output.
Features
- Convert both directions: JSON → CSV and CSV → JSON
- RFC 4180-correct quoting for commas, quotes and newlines in values
- Auto-detects headers from the first row or object keys
- One-click copy or download of the result
Frequently asked questions
What happens to nested objects or arrays when converting to CSV?
CSV has no concept of nesting, so nested values are serialized as a JSON string within that cell — the round trip back to JSON won't automatically restore the original nested structure unless you parse that cell yourself.
How are commas inside a value handled?
Per the CSV standard (RFC 4180), any value containing a comma, quote, or newline is wrapped in double quotes, with internal double quotes doubled — exactly how Excel and Google Sheets expect it.
Does the first row have to be headers?
For CSV → JSON, yes — the first row is treated as the object keys for every subsequent row.
Is my data private?
Yes. Conversion runs entirely in your browser; nothing is uploaded.