JSON to CSV Converter — Free Online Tool

Convert JSON arrays and objects to CSV format instantly in your browser. Flatten nested objects, handle arrays, and download Excel-compatible CSV. No upload, no signup.

JSON to CSV · Flatten Nested JSON · API Response to CSV · 100% Private

Drop a file here or browse

Your data is processed locally and never sent to any server.

CSV Output

nameemailage

Paste JSON and click Convert to see results

How It Works

1

Paste JSON

Paste a JSON array of objects, a single object, or any valid JSON data into the input field.

2

Configure Options

Choose your CSV delimiter, toggle header rows, and enable nested object flattening with adjustable depth.

3

Download CSV

Copy the CSV to clipboard or download as a .csv file. Ready for Excel, Google Sheets, or any database.

What is JSON to CSV conversion?

JSON to CSV conversion transforms structured data from JavaScript Object Notation into a flat, tabular format suitable for spreadsheets and databases. JSON is the dominant data format for web APIs, configuration files, and NoSQL databases, while CSV remains the universal standard for data exchange between applications like Excel, Google Sheets, and relational databases.

The conversion process extracts all unique keys from your JSON objects to create CSV column headers, then maps each object's values into corresponding rows. Nested objects can be flattened into dot-notation columns (e.g., address.city), and arrays are serialized into comma-separated strings within a single cell.

Example: JSON to CSV conversion

Starting with this JSON array:

[
  { "name": "Alice", "email": "alice@example.com", "role": "Engineer" },
  { "name": "Bob", "email": "bob@example.com", "role": "Designer" },
  { "name": "Charlie", "email": "charlie@example.com", "role": "Manager" }
]

The converter produces this CSV output:

name,email,role
Alice,alice@example.com,Engineer
Bob,bob@example.com,Designer
Charlie,charlie@example.com,Manager

Handling nested JSON

Real-world JSON often contains nested objects and arrays. Our converter handles this with configurable flattening:

[{
  "name": "Alice",
  "address": { "city": "New York", "zip": "10001" },
  "skills": ["JavaScript", "Python"]
}]

With flattening enabled, this becomes:

name,address.city,address.zip,skills
Alice,New York,10001,"JavaScript, Python"

Common use cases

API Response Export

Convert REST API responses into CSV for analysis in Excel or Google Sheets. Perfect for exporting data from services like GitHub, Stripe, or Shopify APIs.

MongoDB Export

Transform MongoDB JSON exports into CSV for import into relational databases like MySQL, PostgreSQL, or SQL Server.

Configuration Review

Convert JSON configuration files into spreadsheet format for easier review, comparison, and documentation.

Data Reporting

Transform JSON analytics data into CSV format for import into reporting tools, BI platforms, or presentation software.

Why use our JSON to CSV converter?

🔒

100% Private

All processing happens in your browser. Your data never leaves your device.

🏭

Smart Flattening

Nested objects are flattened with dot notation. Control depth from 1-5 levels.

RFC 4180 Output

CSV output follows official standards for maximum Excel and database compatibility.

Frequently Asked Questions

How do I convert JSON to CSV?

Paste your JSON data (an array of objects) into the input field, configure your preferred CSV delimiter and options, and click "Convert to CSV". The tool automatically extracts all keys as column headers and maps values to rows. You can then copy or download the CSV.

How does the converter handle nested JSON objects?

When "Flatten nested objects" is enabled, nested properties are converted to dot-notation column headers. For example, {"address": {"city": "NYC"}} becomes a column named "address.city" with value "NYC". You can control the maximum flatten depth from 1 to 5 levels.

Can I convert a single JSON object (not an array)?

Yes! If you paste a single JSON object, the converter automatically wraps it in an array and produces a CSV with one data row. Arrays of primitives (strings, numbers) are also supported, with each value becoming a row.

What happens if JSON objects have different keys?

The converter collects all unique keys across all objects and uses them as CSV headers. If an object is missing a key, the corresponding CSV cell is left empty. This ensures no data is lost even with inconsistent JSON structures.

Is my JSON data uploaded to a server?

No. All conversion happens 100% in your browser using JavaScript. Your data never leaves your device, is never stored, and is never transmitted. The tool works completely offline once the page is loaded.