Processed locally

JSON to CSV Converter Online

Convert JSON to CSV locally, preview columns, flatten nested objects, choose delimiters, download clean CSV, or reverse CSV back to JSON in the same browser tool.

What this tool does

JSON to CSV Converter Online transforms JSON arrays, objects, and array-of-arrays into clean CSV or TSV data locally in your browser. It automatically discovers columns across all objects, flattens nested structures using dot notation, handles missing or null fields, escapes delimiters and newlines according to CSV standards, and includes an optional spreadsheet formula protection mode. You can also switch to CSV → JSON mode to parse CSV files back to JSON with conservative type inference.

How to use

Follow the core workflow below. Use “Show in tool” to locate the real control in the live tool above.

  1. Choose the conversion direction

    Use JSON → CSV for spreadsheet-ready rows, or switch to CSV → JSON when you need structured JSON from delimited text.

    JSON → CSVCSV → JSON
  2. Switch to CSV to JSON when needed

    Optional

    Open CSV → JSON to parse delimited rows back into structured JSON while preserving exact strings unless conservative type inference is enabled.

    CSV → JSONFirst row is HeaderInfer Primitive Types
  3. Paste JSON or choose a local file

    Add an array of objects, a single object, an array of rows, or CSV data that matches the selected direction.

    Input DataChoose FileSample Data
  4. Choose how nested data and columns should be handled

    Flatten nested objects or keep them as JSON strings, then review which columns will be included and in what order.

    Nested objectsColumnsFlatten with dot notationKeep as JSON string
  5. Set CSV output rules

    Choose the delimiter, line ending, header behavior, and optional spreadsheet-formula protection before generating the CSV.

    DelimiterLine endingHeaderProtect spreadsheet formulas
  6. Review the table preview and diagnostics

    Check rows, columns, nested-field handling, and formula-like cells before exporting the converted data.

    PreviewRowsColumnsDiagnostics
  7. Copy or download the converted data

    Copy the generated CSV or JSON, or download it as a local file after reviewing the conversion settings.

    Copy CSVDownload .csvCopy JSONDownload .json
Success

You can now convert JSON to CSV or CSV to JSON, configure flattening and column preferences, and export the converted result.

Copy CSVDownload .csvCopy JSONDownload .json

Examples

API array to spreadsheet CSV

Convert an array of JSON objects into columns with header row included.

Nested user data with dot notation

Flatten nested JSON objects such as user.contact.email into structured CSV columns.

Missing vs null fields

Preserve null as literal string 'null' while missing properties become clean empty cells.

CSV with quoted commas and newlines

Parse or output RFC 4180 compliant CSV fields containing embedded commas, quotes, and line breaks.

IDs with leading zeros in reverse mode

Parse CSV to JSON while preserving identifiers like '00123' as exact strings.

Common errors

  • Silently exploding nested arrays into variable row counts instead of preserving them in cell JSON strings.
  • Losing nested fields by failing to recursively flatten objects with dot notation.
  • Incorrect CSV quoting when values contain commas, double quotes, or line breaks.
  • Treating leading-zero identifiers (e.g. '00123') as numbers during CSV to JSON conversion.
  • Duplicate CSV headers overwriting object properties silently.
  • Spreadsheet formula injection when opening untrusted CSV files in Excel or Google Sheets.
  • Uploading sensitive JSON or CSV datasets to external cloud tools unnecessarily.

AI workflow

Use the converted CSV or JSON directly when that data format is the artifact required by a script, spreadsheet, test fixture, or coding-agent workflow. Review nested-field and type-conversion settings before moving the output into the next system.

Learn with this tool

Understand the concept, inspect a testable example, then open it in the tool above.

Data FormatsWhat Is a CSV File? Format, Structure, Examples, and Common PitfallsData FormatsJSON vs CSV: Differences, Use Cases, and Which Format to ChooseData FormatsCSV vs Excel (XLSX): What’s the Difference?

Frequently asked questions about JSON to CSV Converter