JSON Tools Hubjsontoolshub.com

JSON to CSV Converter

Popular

Convert JSON records to CSV for spreadsheets and tabular workflows. Review column flattening, header unions, array formatting, and quoting rules before exporting.

JSON to CSV Converter

Input0 chars
Line 1, Col 1

JSON to CSV conversion rules

The JSON to CSV Converter wraps a single object into one row or iterates an array of objects to collect the union of all headers. Child objects flatten via dot notation (meta.x), primitive arrays join with "; ", object arrays serialize as JSON strings, missing keys/nulls become empty cells, and checking Spreadsheet Safe neutralizes formula prefixes (=, +, -, @) with a leading apostrophe.

Features and output

  • Dot-notation flattening for nested objects and full union header discovery across rows
  • Joins primitive arrays with "; " and serializes object arrays as escaped JSON strings
  • Supports Comma (,), Tab (\t), and Semicolon (;) delimiters with RFC 4180 quoting
  • Opt-in Spreadsheet Safe checkbox prefixes leading =, +, -, @ with ' to help guard against formula injection

When to use this tool

  • Export REST API array responses into CSV columns for Excel or Google Sheets review
  • Flatten uneven JSON records where optional keys appear only in selected rows
  • Generate semicolon-delimited or Spreadsheet Safe exports safely in-browser

Practical example

Sample Input
[{"id":1,"user":{"name":"Ada"},"tags":["a","b"]},{"id":2}]
Expected Output
id,user.name,tags
1,Ada,a; b
2,,

Object keys across all records form the header union; missing fields leave blank cells cleanly. Spreadsheet Safe Mode is opt-in so raw CSV values remain exact by default.

Common errors & troubleshooting

  • Root JSON scalars (strings or bare numbers) fail conversion because CSV requires objects or arrays.
  • Unquoted spreadsheet cells like "001" may lose leading zeros when opened in Excel unless imported as Text.
  • Malformed JSON clears any stale CSV output so invalid exports cannot be downloaded.

Limitations & edge cases

  • CSV has no native type system; booleans, numbers, and strings turn into plain text.
  • Deeply nested object arrays are serialized into a single JSON cell rather than expanding extra rows.
  • Check Spreadsheet Safe Mode before opening untrusted user-supplied text in spreadsheet applications.

Developer tip: Need to move tabular edits back into an API? Send your exported CSV directly into the companion CSV to JSON converter.

How to use JSON to CSV Converter

  1. 1Paste a JSON array of objects (or a single object) into the input pane.
  2. 2Choose Comma, Tab, or Semicolon in the Delimiter menu, and check Spreadsheet Safe if opening untrusted text in Excel.
  3. 3Click Convert to CSV, inspect headers and quoted cells, then Copy or Download as .csv.

Privacy note: Processing runs locally in your active browser tab. Avoid pasting live production secrets or tokens.Verified against implementation: November 2026

JSON to CSV Converter Reference

Frequently asked questions

How are nested objects and arrays handled in JSON to CSV?

Nested objects flatten recursively into dotted columns such as user.name. Primitive arrays join with "; ", while arrays of objects serialize as JSON strings inside the cell.

Will missing keys or null values shift my columns?

No. The converter scans all records first to build a union of every header column and fills missing or null properties with empty cells so columns always stay aligned.

How do I protect exported CSV files from spreadsheet formula injection?

Enable the optional Spreadsheet Safe checkbox in the toolbar before converting; any value beginning with =, +, -, @, tab, or carriage return will be prefixed with an apostrophe (').

Can I convert a single JSON object instead of an array?

Yes. A single top-level JSON object automatically wraps into a one-row CSV table.

Related tools and contextual links

View all 16 tools →
Convert CSV back to JSON →

Parse delimited CSV rows back into structured JSON objects with string preservation.

Inspect nesting before conversion →

Check nesting depth and missing-value distribution before flattening.

Check the source JSON for errors →

Verify valid RFC 8259 JSON syntax if conversion reports a parse error.