Convert a JSON array of objects into escaped CSV text and download the result.
Ready to use · Runs in your browser · No signup
Loading tool…
How to use the JSON to CSV Converter
Convert a non-empty JSON array of objects into CSV using the union of object keys as the header row.
Convert an array of similarly shaped JSON objects into CSV with controlled headers, quoting, and spreadsheet-formula protection. The safety option remains available because text beginning with formula characters can execute when opened in spreadsheet software.
The selected file is processed in browser memory. Keep an original copy and inspect the downloaded result before using it as an authoritative or archival document.
Paste a JSON array whose items are objects.
Fieldlet gathers all top-level keys into CSV columns and escapes commas, quotes, and line breaks.
Copy the result or download a UTF-8 CSV file.
Last reviewed for accuracy:
Worked examples
Export two records safely
Scenario: A JSON row contains a note value beginning with =SUM(1,1) and formula protection is enabled.
Result: The CSV escapes the cell so spreadsheet software treats it as text instead of a formula.
The exporter detects risky leading characters after relevant whitespace and prefixes or transforms the field according to the protection option before CSV quoting.
How the result is produced
The converter forms a header set, serializes each value, doubles embedded quote characters, and quotes fields containing separators, quotes, or line breaks. Formula protection is applied to string cells before download.
CSV has no universal native type system
Fields with commas, quotes, or newlines require quoting
Values beginning with =, +, -, or @ can be risky in spreadsheets
CSV is a transport format, not a typed database
CSV preserves rows and textual cells but does not carry JSON's object nesting or reliable value types. Review identifiers, dates, nulls, and nested values before relying on the export.
Keep leading-zero identifiers as text.
Choose how null and missing values should appear.
Inspect protected formula-like strings in the destination spreadsheet.
Limitations and common mistakes
Nested arrays and objects need a selected flattening or serialization policy.
Spreadsheet applications differ in delimiter, encoding, formula, and date interpretation.
Common questions
What happens to nested objects and arrays?
Nested values are serialized as JSON text inside a CSV field rather than being automatically flattened into many columns.
Why keep formula protection enabled?
A CSV cell can be interpreted as a formula when opened in spreadsheet software. Protection reduces that injection risk for untrusted or user-supplied strings.