JSON to CSV Converter (and CSV to JSON)
Convert between JSON and CSV formats in either direction. Handles nested objects, arrays, and various delimiter formats.
Runs in your browser. No data leaves your device.
Frequently Asked Questions
How does the JSON to CSV Converter work?
For JSON-to-CSV, the tool iterates through an array of objects, collects all unique keys as column headers, and writes each object as a row with values in the corresponding columns. Nested objects are flattened using dot notation (e.g., user.name). For CSV-to-JSON, it parses the header row for keys and maps each subsequent row into an object. The CSV parser handles quoted fields with embedded delimiters correctly.
Can I convert CSV to JSON too?
Yes. The tool works in both directions. Paste JSON to get CSV, or paste CSV to get JSON. It auto-detects the input format and converts to the other.
How does it handle nested JSON objects?
Nested objects are flattened into dot-notation columns. For example, { "user": { "name": "John" } } becomes a column called "user.name" in the CSV output.
What delimiters are supported for CSV?
Comma (default), tab, semicolon, and pipe characters. Choose the delimiter that matches your data source or target application.