Embed this tool on your site
<iframe src="https://devtoolbox.dedyn.io/tools/json-csv-converter" width="100%" height="700" frameborder="0" title="JSON to CSV / CSV to JSON Converter"></iframe>

JSON to CSV / CSV to JSON Converter

Convert between JSON and CSV formats with nested object flattening, data preview table, custom delimiters, and file download. Everything runs in your browser — your data stays private. See also our CSV Files Complete Guide.

Samples:
 
Converted output will appear here...

About JSON ↔ CSV Conversion

JSON (JavaScript Object Notation) and CSV (Comma-Separated Values) are two of the most widely used data interchange formats. JSON excels at representing hierarchical, nested data structures used by APIs and web services. CSV is the universal tabular format understood by every spreadsheet application, database, and data analysis tool.

This bidirectional converter handles the full complexity of real-world data: nested objects are flattened to dot-notation columns, arrays are preserved as JSON strings, missing keys across rows are filled correctly, and special characters in values (commas, quotes, newlines) are properly escaped following RFC 4180.

For a deeper dive into the CSV format, including advanced parsing techniques and edge cases, check out our CSV Files Complete Guide.

JSON to CSV Features

CSV to JSON Features

Common Use Cases

Frequently Asked Questions

How does this tool handle nested JSON objects when converting to CSV?
Nested JSON objects are flattened using dot notation. For example, {"user": {"address": {"city": "NYC"}}} becomes a column named 'user.address.city' with the value 'NYC'. This preserves the hierarchical structure while making the data compatible with flat CSV format. You can toggle flattening on or off in the options.
Can I convert CSV back to JSON with this tool?
Yes. This is a bidirectional converter. Switch to 'CSV to JSON' mode, paste your CSV data, and the tool will parse it into a JSON array of objects using the first row as property names. It supports automatic type detection for numbers, booleans, null values, and dates.
What delimiters are supported for CSV conversion?
The tool supports four delimiters: comma (standard CSV), tab (TSV), semicolon (common in European locales), and pipe. You can select the delimiter from the options panel before converting.
Is my data safe when using this converter?
Yes, completely. This tool runs 100% in your browser using client-side JavaScript. Your data never leaves your computer and nothing is sent to any server. You can even use it offline once the page is loaded.
How are arrays inside JSON objects handled?
Arrays inside JSON objects are serialized as JSON strings in the CSV output (e.g., [1,2,3]). This approach preserves the array data without losing information. When converting back from CSV to JSON, array-like strings are detected and automatically parsed back into arrays.
Can I preview the data before downloading?
Yes. The tool includes a data preview table that shows the parsed data in a scrollable, formatted table before you convert or download. This helps you verify the data structure and catch any issues before exporting.
Keyboard Shortcuts
Ctrl+Enter Convert
Ctrl+Shift+C Copy output
Ctrl+L Clear
Ctrl+P Preview table