sangsen

JSON to CSV

Convert a JSON array of flat objects into CSV, ready to open in a spreadsheet.

CSV output

Paste a JSON array of objects to convert it to CSV.

How it works

Paste a JSON array of objects into the input box. It is parsed entirely in your browser — nothing is sent to a server — using the union of all keys as the CSV header, in the order they first appear. A missing key or a null value becomes an empty cell; nested objects or arrays are rejected with a clear error rather than silently flattened.

Example

Array of two objects
[{"name":"Alice","role":"admin"},{"name":"Bob","role":"user"}]name,role Alice,admin Bob,user

FAQ

Is my JSON uploaded anywhere?
No. Conversion happens entirely in your browser — nothing you paste ever leaves your machine.
What happens if the objects have different keys?
The header becomes the union of every key seen across all objects, in first-seen order. An object missing a given key gets an empty cell for that column.
What happens if a value is a nested object or array?
You get a clear error naming the item and key — nested values are not flattened automatically, since that could silently produce CSV a downstream tool cannot parse back correctly.
What does an empty array [] produce?
An empty result with no header and no rows — that is treated as valid, not an error.