CSV ↔ JSON Converter
What this tool does
Paste CSV or JSON and the converter instantly transforms it to the other format. The CSV parser handles quoted fields, escaped quotes, and multi-character delimiters. In CSV→JSON mode, toggle Headers to control whether the first row becomes object keys. Toggle Pretty to switch between human-readable and compact JSON output.
How to use
- Choose a direction: CSV→JSON or JSON→CSV.
- Paste your data or click Sample to load an example.
- Select your delimiter and toggle Headers/Pretty as needed.
- The result appears instantly. Click Copy or Download to export.
Frequently Asked Questions
What does the Headers toggle do?
When Headers is on, the first row of your CSV is treated as column names and each subsequent row becomes a JSON object with those names as keys. When Headers is off, rows are converted to arrays of values instead.
How do I convert a tab-separated file (TSV)?
Click the Tab delimiter chip in the toolbar before converting. TSV files use tab characters between columns instead of commas — the parser handles them the same way.
Why does my CSV have extra quotes in the output?
CSV fields that contain the delimiter character, double quotes, or line breaks must be wrapped in double quotes per the RFC 4180 standard. The converter wraps them automatically when exporting to CSV.
Can I convert a JSON array of arrays to CSV?
Yes. If your JSON is an array of arrays (e.g. [[1,2],[3,4]]), each inner array becomes a CSV row. If it's an array of objects, the object keys become column headers.
Is this converter secure?
Yes. All conversion happens in your browser with JavaScript. No data is sent to any server. Your CSV and JSON never leave your device.