把 CSV 轉成 JSON,且不改動你的值
能正確讀出引號欄位、成對引號與儲存格內換行,先偵測分隔符,輸出 JSON 或 NDJSON,每個值都保持原本的文字樣子。
分隔符留在自動,除非檔案被認錯了。
在本分頁內執行,不上傳任何內容。
結果
免費方案:每檔案最多 5 MB,每次 1 個檔案,每天 5 次。這件工具單件買斷 $24,一次付款。比較價格。
授權:免費方案。
這頁與別處不同之處
試算表匯出的 CSV 裡,編號常帶前導零、日期常是奇怪的格式、金額裡可能還有千分位逗號。這個頁面用單遍狀態機解析引號與換行,絕不把 007 變成 7、也不把 1,234 拆成兩個欄位;分隔符先偵測再確認,重複欄名會明確報出而不是默默覆蓋。
保留每個值的原始文字,不擅自推斷型別,重複欄名明確報出而不是覆蓋。
範例輸入與輸出
| 環節 | 情形 | 體積 | 說明 |
|---|---|---|---|
| 輸入 | 1,204 行供應商清單,分號分隔 | 145 KB | exported from a spreadsheet in a German locale, where the delimiter is a semicolon and decimals use commas |
| 輸出 | 同樣這些行的 JSON 陣列 | 226 KB | one object per row, column names taken from the header, all values still strings |
這裡寫的是本頁建置時對照的示範數字,不是對每個檔案的承諾。
你可以自己核對什麼
| 承諾 | 測試結果 |
|---|---|
| 引號裡的逗號或換行不會把欄位拆開。 | 一行 "Doe, John" 輸出為 1 個值;帶引號的 2 行備註保留換行,不會變成 2 筆記錄。 |
| 開頭的零在轉換後還在。 | 編號寫成 007,輸出仍是字串 "007",不會悄悄變成數字 7。 |
常見問題
以下問答目前仍為英文原文。
Why are numbers quoted in the output?
Because a CSV has no types. A part number "007" and a price "1.50" are indistinguishable from text, and guessing turns the first into 7 and the second into a float that prints as 1.5. Keeping strings means the output says exactly what the file said.
Which delimiters are detected?
Comma, semicolon, tab and pipe. The first line is scanned with quote awareness, so a header like "last, first" does not make a semicolon file look comma-separated.
What happens to rows with missing cells?
They are kept, and missing trailing cells become empty strings rather than nulls, so the object shape stays consistent across records.
What is NDJSON for?
One JSON object per line, which is what bulk import endpoints and log pipelines usually want. It streams better than a single array and diffs cleanly in version control.
Is my data uploaded?
No. The file is read and converted in this tab. Nothing is sent anywhere, which is why the size limit is generous.
價格
這件工具一次性 $24,只要工具還在就一直可用。一次付款,不是訂閱。授權存在目前瀏覽器裡,憑交易編號可在別處還原。
免費方案:每次 1 個檔案,每檔案 5 MB,每天 5 次。買斷:50 個檔案,每檔案 200 MB。