DataHub Tools JSON to CSV

JSON to CSV Converter

Local-first

Convert JSON arrays to CSV locally in your browser for spreadsheets, BI tools, imports, and data cleanup.

How this tool actually works

The converter parses strict JSON, flattens nested object fields, merges discovered columns, and quotes every CSV field while doubling embedded quotes. It is best suited to trusted object arrays with stable field names.

  • Flatten nested object fields
  • Quote and escape CSV fields
  • Download comma-separated rows

How to use it

  1. Paste a JSON array of records from a trusted source.
  2. Review columns, nulls, newlines, quotes, and nested paths.
  3. Check cells beginning with =, +, -, or @ before opening in spreadsheet software.
  4. Download only after confirming encoding and downstream import rules.

Quick example

Example input

[{"name":"Ada","note":"Line 1, \"quoted\"","formula":"=1+1"}]

Expected result

"name","note","formula"
"Ada","Line 1, \"\"quoted\"\"","=1+1"

Quoting is not spreadsheet formula neutralization. Untrusted cells beginning with formula characters can remain dangerous when the CSV is opened.

Best use cases

  • Export trusted API records to a spreadsheet-ready draft.
  • Flatten simple nested records for BI import.
  • Inspect CSV quoting for commas, quotes, and newlines.

References and scope

RFC 4180 documents a common CSV format, but spreadsheet applications add their own formula behavior. CWE-1236 describes the resulting injection risk.

Sources checked July 24, 2026. Specifications and platform behavior can change; verify the sources before formal use.

Known limitations

  • Literal dot keys can collide with flattened object paths.
  • Primitive arrays and empty nested structures do not map reliably.
  • The file uses LF line endings and does not add a spreadsheet-specific formula prefix.

FAQ

Which JSON shape works best?

An array of objects with consistent, non-conflicting fields.

Are commas and quotes escaped?

Yes. Every field is quoted and embedded double quotes are doubled.

Is the CSV safe for untrusted input?

Not automatically. Formula-like cells require a policy appropriate to the receiving spreadsheet.

Are nested objects supported?

They are flattened with dot-separated paths; arrays and empty structures need manual review.