Back to All Tools

JSON to CSV Converter

Convert JSON arrays to CSV format. Nested objects are flattened with dot notation.

100% Private — Your files never leave your browser. All processing happens locally on your device.

How to Convert JSON to CSV with FreeToolPoint

  1. Paste your JSON array — Copy your JSON data and paste it into the input field. The input must be a JSON array of objects, such as data exported from an API, database, or other JSON source. Each object in the array becomes a row in the CSV output.
  2. Click Convert to CSV — The tool parses your JSON, extracts all unique property names as column headers, and generates a properly formatted CSV output. Nested objects are automatically flattened using dot notation (for example, address.city).
  3. Review the results — The CSV output appears in the output area with a status message showing the number of rows and columns converted. Check that the headers and data look correct before copying or downloading.
  4. Copy or download — Click Copy CSV to copy the output to your clipboard, or Download CSV to save it as a .csv file. The CSV file can be opened in Excel, Google Sheets, LibreOffice Calc, or any spreadsheet application.

Why Use Our JSON to CSV Converter

Working with JSON and CSV Data

JSON and CSV are two of the most common data interchange formats, each with distinct strengths. JSON excels at representing hierarchical and nested data structures, making it the standard for API responses and NoSQL databases. CSV is a flat, tabular format that integrates seamlessly with spreadsheet software, database imports, and data analysis tools.

Converting JSON to CSV is a common task when you need to analyze API data in a spreadsheet, create reports from database exports, import JSON-sourced data into a relational database, or share data with team members who prefer working in Excel or Google Sheets. The key challenge in this conversion is handling nested objects, which this tool solves with automatic dot-notation flattening.

For best results, ensure your JSON input is a valid array of objects with consistent structure. While the tool handles objects with varying properties, consistent data structures produce the cleanest CSV output. If your JSON has deeply nested objects or arrays within arrays, consider restructuring the data before conversion for the most useful tabular output.

Frequently Asked Questions

What JSON format does this tool accept?

The tool accepts a JSON array of objects, for example: [{"name": "Alice", "age": 30}, {"name": "Bob", "age": 25}]. Each object in the array becomes a row in the CSV output, and the object property names become column headers. Single objects (not wrapped in an array) are not supported.

How does the tool handle nested objects?

Nested objects are automatically flattened using dot notation. For example, {"address": {"city": "NYC", "zip": "10001"}} becomes two columns: "address.city" and "address.zip". This preserves all nested data in a flat tabular format that spreadsheets can work with.

Can I open the CSV file in Excel?

Yes. The generated CSV file follows the RFC 4180 standard and opens correctly in Microsoft Excel, Google Sheets, LibreOffice Calc, Apple Numbers, and any other spreadsheet application. Values with commas or special characters are properly escaped with double quotes.

What happens if objects have different properties?

The tool scans all objects to build a complete set of column headers. If an object is missing a property that other objects have, that cell is simply left empty in the CSV output. This ensures no data is lost even when working with inconsistent JSON structures.

Is my data sent to any server?

No. All JSON parsing and CSV conversion happens entirely in your browser using JavaScript. Your data never leaves your device. This makes the tool safe for converting sensitive data, including API responses, user records, and confidential business information.