AIForeverThing
All Tools›Data & Lists

JSON to CSV Converter

Paste an array of JSON objects — get clean CSV rows. Works entirely in your browser.

How it works

The parser reads your JSON and confirms it's an array of objects. It then walks every object to build a union of all keys, preserving the order in which each key first appears — this becomes the header row. For each object, the tool writes one CSV row: values follow header order, and any missing key becomes an empty cell. Values containing the delimiter, quotes, or newlines are wrapped in double quotes, with internal quotes doubled, so output stays valid. Finally, the rows are joined with line breaks into a standard CSV file you can copy or download.

Frequently Asked Questions

How do I convert JSON to CSV?

Paste your JSON array of objects into the input box and click Convert. The tool extracts a union of all object keys as headers and writes each object as a CSV row, escaping commas, quotes, and newlines automatically.

What happens if JSON objects have different keys?

The converter collects every unique key across all objects and uses them as columns. If an object is missing a key, the corresponding cell is left empty — no data is lost and no rows are dropped.

Can I download the result as a CSV file?

Yes. After converting, click the Download CSV button to save the result as a .csv file that opens directly in Excel, Google Sheets, or any spreadsheet program.

Related Tools

Free tools by TUNA — energy supply from vetted manufacturers