ToolBox.Online

JSON to CSV Converter — Convert JSON Array to CSV Online Free [2026]

Convert JSON to CSV instantly online. Paste a JSON array and get a downloadable CSV file. Handles nested objects, custom delimiters, and header options.

What is JSON to CSV Converter?

CSV (Comma-Separated Values) is the most universal format for tabular data — spreadsheets, databases, and analytics tools all support it. JSON arrays of objects are a natural match for CSV conversion: each object becomes a row, and the object keys become column headers. This conversion is one of the most common data tasks in software development and data analysis. You might fetch data from an API as JSON and need to load it into Excel, Google Sheets, or a data pipeline that expects CSV. Or you might have a database export in JSON format that needs to be converted for analysis. This tool handles the conversion properly — including CSV value escaping (wrapping values with commas or quotes in double quotes), flattening nested objects, and supporting multiple delimiter options for different regional formats.

How to Use JSON to CSV Converter

Paste your JSON array of objects into the left input panel. Choose your delimiter (comma, tab, or semicolon) and toggle whether to include a header row. Click "Convert to CSV" to generate the CSV output in the right panel. Use "Copy CSV" to copy the result to your clipboard, or "Download CSV" to save it as a .csv file directly to your device. Click "Clear" to reset.

How JSON to CSV Converter Works

The converter processes a JSON array of objects through these steps: 1. **Parsing:** The JSON input is parsed and validated. The input must be an array of objects. 2. **Header extraction:** All unique keys from across all objects in the array are collected to form the header row. This handles objects that have different keys — missing values are left empty. 3. **Value formatting:** Each value is formatted for CSV: - Strings and numbers are used as-is. - Nested objects and arrays are serialized to a compact JSON string. - Values containing the delimiter, double quotes, or newlines are wrapped in double quotes. - Double quotes within values are escaped by doubling them (""). 4. **Row assembly:** Each object is converted to a row of values in the same order as the headers. 5. **Output:** Rows are joined with newlines. The download function creates a Blob and triggers a browser download. All processing is client-side — your data never leaves your browser.

Common Use Cases

  • Exporting API response data (JSON) to CSV for analysis in Excel or Google Sheets
  • Converting database query results from JSON format to CSV for reporting
  • Transforming JSON fixtures or test data into CSV for bulk import into tools
  • Preparing JSON data exports for stakeholders who work in spreadsheet applications
  • Converting JSON configuration lists to CSV for tabular review and editing
  • Building data pipelines that require CSV format from JSON API sources

Frequently Asked Questions

What JSON format does this converter accept?

This converter accepts a JSON array of objects — an array where each element is an object (key-value pairs). For example: [{"name": "Alice", "age": 30}, {"name": "Bob", "age": 25}]. A plain JSON object or array of arrays is not supported. Each object becomes a row, and the keys become column headers.

How are nested objects handled?

Nested objects and arrays within a JSON value are stringified to a compact JSON representation and placed in the corresponding CSV cell. For example, {"address": {"city": "NYC"}} would have the "address" column contain the text {"city":"NYC"}. For deep flattening of nested objects, you would need to preprocess the JSON before converting.

Why do some CSV values appear in double quotes?

CSV requires values that contain the delimiter character (comma, tab, or semicolon), double quotes, or newlines to be wrapped in double quotes. This is standard CSV escaping per RFC 4180. Any double quotes within the value are doubled (""). This ensures the CSV can be correctly parsed by Excel, Google Sheets, and other tools.

What delimiter should I use?

Use comma (,) for standard CSV compatibility — it is supported by all applications globally. Use tab for TSV (Tab-Separated Values) format, which is useful when your data contains many commas. Use semicolon (;) if you are in a European locale where Excel defaults to semicolon as the CSV delimiter due to comma being used as the decimal separator.

Can I download the CSV file directly?

Yes. Click the "Download CSV" button to save the converted data as a .csv file directly to your device. The file uses UTF-8 encoding with BOM (Byte Order Mark) to ensure correct display of special characters in Microsoft Excel on Windows.

Related Tools