JSON to CSV Converter — Free Online Tool
Convert JSON arrays into clean CSV instantly. Runs locally in your browser—no data leaves your device.
How to use
- Paste a JSON array of objects in the left box.
- Click Convert or press ⌘/Ctrl+Enter.
- Review the CSV on the right, then Copy CSV.
- Use Clear to reset, or Share to copy a prefilled link.
Common pitfalls
- Not an array: input must be a JSON array (e.g.,
[{},{}]
). - Mixed keys: column headers are the union of keys across rows; missing values become empty cells.
- Nested objects/arrays: values are stringified; flatten first if you need separate columns.
- Special characters: quotes, commas, and newlines are escaped per CSV rules.
- Types: numbers/booleans/dates are converted to strings in CSV.
Example
[{"name":"Alice","age":30},{"name":"Bob","age":25}]
name,age Alice,30 Bob,25
About this tool
Convert JSON arrays of objects into clean CSV. Keys are unioned across rows and values are safely quoted.
Works entirely client-side.
FAQ
Does it run locally?
Yes. All parsing and conversion run in your browser; nothing is uploaded.
What JSON is supported?
A top-level JSON array of objects: `[{"a":1,"b":2},{"a":3,"b":4}]`. Each object becomes a row.
How are columns chosen?
The header is the union of keys across all rows. Missing values are left empty.
Are commas or quotes handled?
Yes. Values containing commas, quotes, or newlines are quoted, and quotes are escaped by doubling them.
Nested objects/arrays?
Flattening is not automatic in this version. Convert nested structures to strings first or pre-process your JSON.
Can I share a prefilled example?
Yes. Use the Share button—your JSON is embedded in the URL (?q=...).