Bidirectional CSV and JSON conversion with custom delimiter, header setting, indent format, table preview, one-click copy and download, 100% client-side processing.
CSV (Comma-Separated Values) and JSON (JavaScript Object Notation) are the two most common data exchange formats. CSV stores data in plain-text tabular form — compact and Excel-compatible. JSON stores data in key-value structures — highly readable and ideal for programmatic processing. This tool supports bidirectional conversion between the two formats, no installation required — just paste and convert.
This tool strictly follows the RFC 4180 standard for CSV parsing: if a field contains the delimiter, double quotes, or newlines, it must be wrapped in double quotes. Double quotes inside a field are escaped with two consecutive double quotes (""). For example, the field value He said "Hello", World should be written in CSV as "He said ""Hello"", World". The tool correctly handles all these edge cases.
When you export CSV from Excel and need to import it into a database or process it in code, converting CSV to JSON first makes programmatic access easier. When API-returned JSON data needs to be viewed by non-technical staff in Excel, convert it to CSV for direct opening. Web-scraped tabular data can be converted back and forth between CSV and JSON to fit different tool requirements.
Step 1: Select the conversion direction (CSV→JSON or JSON→CSV). Step 2: Set the delimiter, header row, and JSON indent format as needed. Step 3: Paste your data into the left input box. Step 4: Click "Convert" — the result appears in the right output box, with a table preview below. Step 5: Click "Copy Result" or "Download File" to get the converted data.
Following the RFC 4180 standard: fields containing delimiters, quotes, or newlines are wrapped in double quotes, and double quotes inside fields are escaped with two double quotes. This tool automatically recognizes and handles these cases, and can auto-escape when converting JSON to CSV.
The tool iterates through all objects, collecting every key encountered to form the complete header. If an object is missing a field, that position outputs an empty value — no error is thrown.
Yes. When a JSON object field value is an object or array, the tool serializes it as a JSON string before placing it in the CSV field, preserving the data structure. If you need flattened output, we recommend flattening nested objects before conversion.
Completely safe. All parsing and conversion logic runs locally in your browser using JavaScript. No data is uploaded to any server, making it suitable for processing sensitive business data.
Downloaded CSV files use UTF-8 encoding (with BOM) to ensure proper display in Excel. JSON files also use UTF-8 encoding, compatible with all programming languages and tools.