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.
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
- Flatten deeply nested JSON objects using dot notation (e.g.,
address.city) - Handle arrays of objects with varying keys — missing fields become empty cells
- Arrays within objects serialized as JSON strings to preserve data
- Custom delimiters: comma, tab, semicolon, or pipe
- Configurable null value representation (empty, "null", "N/A")
- Optional header row inclusion
- Proper CSV escaping for commas, quotes, and newlines per RFC 4180
CSV to JSON Features
- First-row header detection for property names
- Automatic type detection for numbers, booleans, null, and dates
- Handles RFC 4180 quoted fields with embedded commas and newlines
- Supports comma, tab, semicolon, and pipe delimiters
- Configurable JSON indentation (2 spaces, 4 spaces, tabs, minified)
- ISO 8601 date string detection
Common Use Cases
- Exporting REST API responses to Excel or Google Sheets
- Preparing CSV data for database bulk imports (PostgreSQL COPY, MySQL LOAD DATA)
- Converting spreadsheet exports to JSON for web applications
- Sharing structured data with non-technical stakeholders
- Transforming configuration files between formats
- Data migration between systems that use different formats