CSV to JSON Converter

Convert CSV data to a JSON array locally in your browser.

📐 工作原理與說明
CSV 轉 JSON 按行拆分:首行為表頭即欄位名,其後每行按分隔符(預設英文逗號,可自定義)切分欄位並與表頭逐列配對,生成「欄位: 值」物件陣列;欄位含分隔符或換行時按 RFC 4180 用雙引號包裹,引號內雙引號以兩個雙引號轉義,鍵值對按行序輸出。

Formula & Standard References

ItemFormulaSource / Standard
CSV parsing rule First row as header→keys, each row→object RFC 4180 (CSV format)
JSON encoding Array of objects + UTF-8 escape ECMA-404 / IETF RFC 8259
Delimiter Comma (configurable to ; or tab) RFC 4180 §2
📌 轉換規則