ITEngineeringTools

JSON to CSV Converter

Convert an array of JSON records to CSV with ordered columns and spreadsheet-safe string output.

Input

Result

How it works

Use a comma-separated header selection to control output order, or use the union of keys. Nested values become compact JSON, missing fields become empty, and spreadsheet formula prefixes in strings and headers are neutralized with an apostrophe. Quotes and line breaks follow CSV escaping rules.

Formula

Emit one escaped CSV field per selected key in each input object.

Practical examples

Export API results

JSON array of objects: [{"name":"Ada","count":2},{"name":"Lin","count":3}]
Column names in output order (optional): name,count

Ada,2

Export one nested field

JSON array of objects: [{"id":7,"config":{"active":true}}]
Column names in output order (optional): id

id 7

Untrusted spreadsheet cell

JSON array of objects: [{"note":"=1+1"}]
Column names in output order (optional): note

'=1+1

Technical references