JSON to CSV Converter

Convert JSON to CSV format instantly. Upload JSON arrays or objects, customize delimiter and output, download as CSV without uploading data.

Upload
Drag & drop file here
or click to browse
Convert nested objects to dot notation (e.g., user.name)

About JSON to CSV Converter

JSON to CSV Converter is a free online tool that converts JSON (JavaScript Object Notation) data into CSV (Comma-Separated Values) format. Upload a JSON file or paste JSON data, choose your CSV delimiter and options, and download the converted CSV file—all processed locally in your browser for complete privacy.

Why convert JSON to CSV?

CSV is a universal format that's compatible with spreadsheet applications (Excel, Google Sheets, LibreOffice), databases, and data analysis tools. Converting JSON to CSV is useful for:

- Opening API data in Excel or Google Sheets
- Importing data into databases
- Data analysis with spreadsheet tools
- Sharing data with non-technical users
- Creating reports and visualizations

CSV files are simpler, smaller, and easier to work with than JSON for tabular data.

What JSON formats are supported?

The tool supports two common JSON formats:

1. Array of Objects (Most Common):
[{"name": "John", "age": 30}, {"name": "Jane", "age": 25}]
This is the standard format for APIs and databases. Each object becomes a row, and object keys become column headers.

2. Array of Arrays:
[["John", 30], ["Jane", 25]]
Each array becomes a row. You can optionally include a header row with column names.

The tool automatically detects which format you're using and converts it appropriately.

Does my data leave my device?

No. All JSON to CSV conversion happens entirely in your browser using JavaScript. Your data never leaves your machine, ensuring complete privacy for sensitive information like customer data, financial records, or API responses.

What does 'Flatten nested objects' mean?

JSON can have nested objects, but CSV is flat (one level). When you enable flattening:

Original JSON:
{"user": {"name": "John", "email": "[email protected]"}, "age": 30}

Flattened CSV columns:
user.name, user.email, age
John, [email protected], 30

Without flattening, nested objects are converted to JSON strings, which may be harder to work with in spreadsheet applications.

What CSV delimiters are available?

The tool supports common CSV delimiters:
- Comma (,) - Standard CSV format, used worldwide
- Semicolon (;) - Common in European locales where comma is used for decimals
- Tab (\t) - TSV format, good for data with commas in values
- Pipe (|) - Alternative delimiter
- Custom - Specify any character you need

Choose the delimiter that best fits your use case or matches the format required by your target application.

What if my JSON has missing or inconsistent fields?

The tool handles inconsistent JSON data gracefully:

- If objects have different keys, all unique keys become columns
- Missing values are left empty in the CSV
- Extra values in some objects create additional columns
- The header row includes all possible column names found in the data

This ensures no data is lost during conversion, even if your JSON structure isn't perfectly uniform.