📊 CSV ↔ JSON Converter

Convert CSV to a JSON array or JSON back to CSV instantly. Supports custom delimiters, header rows, file upload, and one-click download. Everything runs in your browser.

CSV → JSON JSON → CSV File Upload
CSV Input
JSON Output

FAQ

How does CSV to JSON conversion work?

The first row is treated as column headers (when "First row is header" is enabled). Each subsequent row becomes a JSON object with keys from the header row. The result is a JSON array of objects.

What delimiters are supported?

Comma (,), Tab (\t — for TSV files), semicolon (;), pipe (|), and any custom single character you specify.

Are quoted fields with commas handled correctly?

Yes. The CSV parser handles RFC 4180 quoting: fields wrapped in double quotes can contain the delimiter, newlines, and escaped double quotes ("").

Can I upload a file?

Yes — click "Upload file" to load a .csv, .tsv, or .json file. The contents are read entirely in your browser using the FileReader API. No data is uploaded to any server.

What JSON input format is expected for JSON → CSV?

An array of objects with consistent keys, e.g. [{"name":"Alice","age":30},{"name":"Bob","age":25}]. The keys of the first object become the CSV headers. Nested objects are stringified.