Convert JSON to CSV
Convert a JSON array of objects to RFC 4180 CSV locally in your browser.
Tool workspace
Convert a JSON array of objects (or a single object) to RFC 4180 CSV in your browser. Column headers are the union of object keys. Nothing you paste is uploaded.
How it works
Conversion runs entirely in your browser. Prefer a JSON array of objects: each object becomes one data row, and column headers are the union of object keys in first-seen order. A single plain object is treated as one row. Nested objects or arrays are written as compact JSON in the cell. Fields are escaped per RFC 4180 (quotes, commas, and newlines).
Empty input or an empty array clears the result—no error. Scalars and arrays that are not objects are rejected with a clear message. This is the inverse of Convert CSV to JSON—not a spreadsheet importer.
Examples
- [{"name":"Alice","age":30},{"name":"Bob","age":25}] → name,age header + two rows
- {"name":"Ada","role":"engineer"} → one-row CSV
- [{"a":1},{"b":2}] → columns a,b with empty cells where keys are missing
- [1,2,3] → clear unsupported-shape error
Privacy
FAQ
Is my JSON uploaded?
No. Conversion runs entirely in your browser. We do not log or store what you paste.
What JSON shapes are supported?
An array of objects, or a single object as one row. Scalars and arrays of non-objects are not converted.
How are nested values handled?
Nested objects and arrays are written as compact JSON text inside the CSV cell, with RFC 4180 quoting when needed.
Do I need an account?
No. All published tools work for guests without login.