Convert JSON to CSV

Transform JSON data into CSV format with automatic nested object flattening and table preview.

Convert any JSON data into clean CSV format instantly. Supports nested object flattening with dot notation, array handling, custom delimiters (comma, semicolon, tab, pipe), interactive table preview, and one-click download. All processing runs locally in your browser for maximum privacy and speed.

Loading...
Your data stays in your browser
Was this tool useful?
Tutorial

How to Use

1
1

Paste Your JSON

Enter or paste your JSON data into the input area. Both arrays of objects and single objects are supported.

2
2

Choose a Delimiter

Select your preferred delimiter from the dropdown: comma, semicolon, tab, or pipe character for your CSV output.

3
3

Convert and Preview

Click Convert to generate the CSV output. Switch between raw CSV text and interactive table preview to inspect results.

4
4

Download or Copy

Copy the CSV to your clipboard with one click, or download it as a .csv file ready for spreadsheet import.

Guide

Complete Guide to JSON to CSV Conversion

Understanding JSON and CSV Formats

JSON (JavaScript Object Notation) stores data as nested key-value pairs with support for objects, arrays, strings, numbers, booleans, and null values. CSV (Comma-Separated Values) stores data in flat rows and columns where each line represents a record and fields are separated by a delimiter character. Converting between these formats requires flattening hierarchical JSON structures into a two-dimensional tabular format while preserving data integrity and readability.

How Nested Object Flattening Works

When JSON contains nested objects like {user: {name: 'Alice', address: {city: 'NYC'}}}, the converter creates dot-notation headers: user.name and user.address.city. This approach preserves the original hierarchy in a readable format that maps directly to spreadsheet columns. Array elements receive numeric indices (items.0, items.1) so each value gets its own column without data loss or ambiguity.

Choosing the Right Delimiter

The comma is the default CSV delimiter and works with most software. European users should consider semicolons because many European locales use commas as decimal separators in numbers, which causes parsing conflicts. Tab-separated values (TSV) avoid delimiter conflicts entirely since tabs rarely appear in data fields. Pipe delimiters are useful when data contains both commas and semicolons, common in address fields and free-text descriptions.

Best Practices for JSON to CSV Workflows

Validate your JSON before converting to catch syntax errors early. For large datasets, check the table preview to verify column headers match your expectations before downloading. When importing CSV into databases, use the header row to verify column names match your target schema. Keep the original JSON as a backup since CSV conversion is lossy for deeply nested structures, and round-trip conversion may not preserve the exact original hierarchy.

Examples

Worked Examples

Example: Converting a User List

Given: A JSON array of user objects with nested address fields.

1

Step 1: Paste [{"name":"Alice","address":{"city":"NYC"}},{"name":"Bob","address":{"city":"LA"}}] into the input.

2

Step 2: Click Convert to CSV.

3

Step 3: View the output with headers name, address.city and corresponding values.

Result: name,address.city\nAlice,NYC\nBob,LA

Example: Handling Mixed Data Types

Given: A JSON object with strings, numbers, booleans, and null values.

1

Step 1: Paste {"name":"Test","active":true,"count":42,"notes":null} into the input.

2

Step 2: Click Convert to CSV.

3

Step 3: Observe that booleans become true/false strings and null becomes an empty value.

Result: name,active,count,notes\nTest,true,42,

Use Cases

Use Cases

API Response Export

Convert JSON API responses into CSV format for analysis in spreadsheet applications like Excel or Google Sheets. When working with REST APIs that return arrays of objects, this tool flattens nested structures using dot notation and produces clean tabular data ready for filtering, sorting, and pivot table creation.

Database Migration Preparation

Transform JSON data exports from NoSQL databases like MongoDB or Firebase into CSV files suitable for importing into relational databases. The automatic flattening of nested documents creates individual columns for each nested field, making it straightforward to map JSON structures to SQL table columns during migration projects.

Report Generation for Non-Technical Stakeholders

Convert complex JSON datasets into simple CSV tables that business analysts and managers can open in their preferred spreadsheet software. This bridges the gap between developer-facing JSON formats and the tabular data formats that non-technical team members are comfortable working with for reporting and analysis.

Frequently Asked Questions

?How does the tool handle nested JSON objects?

Nested objects are flattened using dot notation. For example, a field like user.address.city becomes a single column header, preserving the hierarchy in a readable format.

?Can I convert JSON arrays with different structures?

Yes. The tool collects all unique keys from every object in the array and creates columns for each. Missing values in any row are left as empty cells.

?What delimiters are supported?

You can choose between comma, semicolon, tab, and pipe delimiters. Semicolons work well for European locales where commas are used as decimal separators in numbers.

?Can I export the result as an Excel file?

Currently the tool exports CSV files, which can be opened directly in Excel, Google Sheets, or LibreOffice Calc. CSV is the most universal spreadsheet interchange format available.

?How are arrays inside JSON objects handled?

Array elements are indexed with numeric suffixes. For example, tags.0, tags.1, and tags.2 become separate columns, ensuring no data is lost during the conversion process.

?Is my data private when using this tool?

Yes. All processing happens entirely in your browser using JavaScript. No data is uploaded to any server, ensuring complete privacy and security for sensitive information.

?Is this tool free to use?

Yes. This JSON to CSV converter is completely free with no usage limits, no registration required, and no watermarks or restrictions on the output files you generate.

?What happens with special characters in CSV output?

Values containing commas, quotes, or newlines are automatically wrapped in double quotes following the RFC 4180 CSV standard, ensuring proper parsing by spreadsheet software.

Help us improve

How do you like this tool?

Every tool on Kitmul is built from real user requests. Your rating and suggestions help us fix bugs, add missing features and build the tools you actually need.

Rate this tool

Tap a star to tell us how useful this tool was for you.

Suggest an improvement or report a bug

Missing a feature? Found a bug? Have an idea? Tell us and we'll look into it.

Related Tools

Recommended Reading

Recommended Books on JSON, Data Processing & CSV

As an Amazon Associate we earn from qualifying purchases.

Boost Your Capabilities

Professional Products to Boost Your Data Workflow

As an Amazon Associate we earn from qualifying purchases.

Newsletter

Get Free Productivity Tips & New Tools First

Join makers and developers who care about privacy. Every issue: new tool drops, productivity hacks, and insider updates — no spam, ever.

Priority access to new tools
Unsubscribe anytime, no questions asked