JSON to CSV Converter

Paste JSON, open a local file, or load an example. Handles nested objects, wrapped arrays, irregular records, and JSON Lines, then gives you both CSV and a spreadsheet-style table preview.

Ready for JSON input.
Conversion options

Free Online JSON to CSV Converter — Export JSON Arrays as CSV Instantly

Convert JSON arrays to CSV format effortlessly with our free online JSON to CSV converter. Whether you're exporting API data, preparing spreadsheet imports for Excel, or transforming NoSQL datasets, this tool parses your JSON and generates clean, ready-to-use CSV output in seconds.

Why Convert JSON to CSV?

While JSON (JavaScript Object Notation) is the ideal data structure for internet APIs, web servers, and NoSQL databases, it is notoriously difficult for non-technical team members to read or manipulate. If you need to hand over an analytics report, customer database export, or inventory feed to marketing, finance, or operations teams, they will invariably request the data in a spreadsheet format.

CSV (Comma-Separated Values) remains the global standard for tabular data exchange. By converting complex JSON arrays into flattened CSV files, you allow data to be seamlessly imported into Microsoft Excel, Google Sheets, Apple Numbers, robust SQL database management interfaces, and almost all legacy business intelligence software.

How to Convert JSON to Excel/CSV

Our intelligent parsing engine makes transforming nested collections into two-dimensional tables incredibly straightforward:

  1. Choose Your Source: Paste JSON or upload a JSON/JSONL file. The converter accepts arrays of records, a single object, wrapped arrays selected with an array path, and newline-delimited JSON.
  2. Select Your Delimiter: While the standard separator is a comma, some regions or specialized applications require semicolons (;), pipes (|), or tabs. Use the dropdown to choose your ideal delimiter.
  3. Execute the Conversion: Click "Convert to CSV". The tool scans all records to build a complete set of column headers, so fields that appear only in later records are preserved.
  4. Download or Copy: Once generated, you can copy the raw CSV string directly into a text editor, or click "Download .csv" to save an instantly importable file to your local drive.

How Do We Handle Nested JSON Objects?

Modern JSON APIs rarely output flat lists; they utilize complex hierarchies, deep object nesting, and embedded lists. When converting a multi-dimensional JSON object down to a two-dimensional CSV format, "flattening" must occur.

Our JSON to CSV converter algorithm attempts to cleanly flatten associative objects by mapping out keys using dot notation. For instance, if an object contains "address": {"city": "London", "zip": "E1"}, the resulting CSV column headers will intelligently generate as address.city and address.zip, preventing the total loss of crucial hierarchical context.

Common Issues During JSON to CSV Conversion

  • Root Level Objects: A single root-level object is supported and becomes one CSV row. If the records are nested inside a larger API response, enter their location in Array path, such as data.items.
  • Mismatched Schema Keys: If the objects inside your array contain substantially different keys (e.g. object 1 has 5 keys, object 2 has 20 entirely different keys), the resulting CSV file will contain many empty cells (null columns) where data properties do not align across objects. Keep your JSON schema as uniform as possible for optimal Excel imports.
  • Array Inside Array: When a property contains an array of basic literal values (like "tags": ["urgent", "new"]), translating this into a single CSV cell can get messy. Usually, the converter will stringify these sub-arrays.

Frequently Asked Questions

Is my JSON data uploaded to an external server?
No. Your data is 100% secure. Our JSON to CSV processing script runs entirely client-side, directly inside your web browser. Nothing is ever uploaded, cached, or saved on our remote servers, making it ideal for converting strictly confidential customer CRM lists or financial APIs.
How should I import this CSV into Microsoft Excel?
Use Excel's Text/CSV import controls to check the delimiter and UTF-8 encoding. Set identifier or postal-code columns to Text before automatic type conversion if their leading zeros matter. CSV quoting preserves field boundaries; it does not force Excel to retain a particular data type.
Why am I getting an "Invalid JSON" error?
Check for trailing commas and use double quotes around object keys and strings. Arrays, single objects, and JSON Lines are supported. For records inside a larger response, select their location with Array path, such as data.items. For JSON Lines, each nonempty line must be valid JSON.