CSV to JSON converter

Paste CSV with a header row to get a JSON array where each row is an object keyed by the column names.

Parsing rules

The parser follows RFC 4180: fields may be wrapped in double quotes, a quoted field can contain the delimiter or line breaks, and "" inside quotes is a literal quote. Both Windows (CRLF) and Unix (LF) line endings work.

With type detection on, 42 and 3.5 become numbers, true/false become booleans and null becomes null. Values with leading zeros such as ZIP codes 02134 stay strings so they are not damaged.

Worked example

id,name
1,"Chen, Li"
→ [{"id": 1, "name": "Chen, Li"}]

Frequently asked questions

What if a row has fewer columns than the header?
Missing cells become empty strings.
Can I convert tab-separated (TSV) files?
Yes, choose Tab as the delimiter.