Skip to content
Runs local · no upload

JSON to CSV Converter

Turn any JSON array into a clean CSV file in seconds. Nested objects are flattened automatically — no scripting needed.

Ausgabe
Eingabe leer — oben einfügen, um die formatierte Ausgabe zu sehen.

How It Works

  1. 01

    Paste text or code

    Paste your content into the input field or type directly.

  2. 02

    Instant processing

    The tool processes your content immediately and shows the result.

  3. 03

    Copy result

    Copy the result to your clipboard with one click.

Privacy

All calculations run directly in your browser. No data is sent to any server.

Exporting data from a REST API often means dealing with nested JSON arrays that spreadsheet apps can't open directly. This tool flattens JSON arrays into comma-separated rows, maps keys to column headers, and lets you download a .csv file ready for Excel, Google Sheets, or any data pipeline. Nested objects are dot-notated (e.g. `address.city`) so no data is lost.

01 — How to Use

How do you use this tool?

  1. Paste your JSON array (or upload a .json file) into the input panel.
  2. The tool auto-detects all keys and previews the column headers.
  3. Choose your delimiter: comma (default), semicolon, or tab.
  4. Toggle 'Flatten nested objects' on or off depending on your needs.
  5. Click Download CSV to save the file, or copy the raw CSV text.

What This Tool Does

REST APIs, NoSQL databases, and SaaS exports all speak JSON. But analysts, project managers, and finance teams live in spreadsheets. This converter bridges the gap: it reads a JSON array and writes a properly structured CSV file that opens cleanly in Excel, Google Sheets, or any BI tool.

The converter handles the most common friction point — nested objects — by flattening them into additional columns using dot-path keys. An object like {"order": {"id": 42, "total": 19.99}} becomes two columns: order.id and order.total. Nothing is silently dropped.

How Does It Work?

StepWhat Happens
ParseInput string is parsed with JSON.parse()
Schema inferenceAll keys across all objects are unioned to build the header row
FlatteningNested objects are recursively flattened; nested arrays become JSON strings
SerializationEach object is mapped to a row, missing keys emit empty cells
EncodingOutput is UTF-8 with a BOM so Excel detects the encoding correctly

Delimiter options: comma (RFC 4180), semicolon (common in European locales), tab (TSV — useful for pasting directly into Google Sheets).

What Are Common Use Cases?

  • Salesforce / HubSpot exports: API responses are JSON arrays. Convert to CSV and open in Excel for reporting.
  • Airtable / Notion data migration: Export as JSON, convert to CSV, import into the target app.
  • Log analysis: Server log exports from AWS CloudWatch or Datadog often arrive as JSON arrays.
  • Google Sheets import: Paste the CSV output directly into a sheet or use File → Import.
  • Database seed files: Generate a CSV from a JSON fixture to seed a SQL database via COPY or LOAD DATA.
  • Finance teams: Accounting exports from Stripe, Square, or Shopify sometimes return JSON — convert to CSV for reconciliation.

Frequently Asked Questions

Can I convert CSV back to JSON? Not with this tool — that direction is handled by a dedicated CSV-to-JSON converter. This tool is JSON-in, CSV-out only.

Why does my CSV have extra quotes around some cells? RFC 4180 requires quoting any cell that contains the delimiter character, a newline, or a double-quote. This is correct behavior and Excel/Sheets parse it correctly.

How do I handle a JSON object at the top level, not an array? Wrap it in brackets: [{ ...your object... }]. The tool will treat it as a one-row table.

What encoding does the output use? UTF-8 with BOM (byte order mark). The BOM tells Excel to open the file in UTF-8 mode, which prevents garbled characters in names or addresses with accented letters.

Last updated:

You might also like