STEMSTUDIO
Convert CSV and JSON
Click to skip
Data · converted on this device
Turn spreadsheet CSV into JSON and back — with a table preview so you can see the columns line up.
Tab-separated is what you get pasting straight out of a spreadsheet. Semicolon is what Excel writes in locales that use a comma for the decimal point. Turn it off to read the CSV as an array of arrays, or to write CSV with no header row — for raw data that never had column names. Turns "123" into a number, "true" into a boolean and an empty cell into null. Values that would not survive the trip — leading-zero codes, long IDs — are kept as strings. By default only values containing the delimiter, a quote, a line break or edge spaces are quoted. Excel mis-reads UTF-8 CSV without a BOM. This affects the downloaded file only — not what is shown on screen or copied. Check that the split is what you expected. With the wrong delimiter everything lands in one column.
把 CSV 轉成 JSON,也能轉回來。選擇分隔符(逗號、製表符或分號)以及第一行是否為表頭;引號內的逗號和換行都能正確讀取。解析出的表格會和輸出一起顯示。
支援格式
CSV / TSV / JSON
能。在引號內,換行是值的一部分,預覽表格會把它顯示為該單元格內的折行。不在引號內的換行是行分隔符,這是檔案本身的意思。
這個警告表示某一行和第 1 行的寬度不一致。常見原因是引號沒有閉合,或沒有引號的值裡有分隔符。看預覽表格就知道那一行實際在哪裡斷開。轉換仍會進行,缺少的欄位當作空值。
幾萬行沒問題。因為輸入時會重新解析,超過幾 MB 打字就會開始卡。預覽顯示前 20 行;複製和儲存總是使用全部資料。
不能——.xlsx 是另一種壓縮格式。請在 Excel 中另存為“CSV UTF-8”,或者選中工作表複製,以製表符分隔的形式貼上到這裡。
不會。解析和轉換完全在頁面中進行,關閉標籤頁就消失,所以不能外傳的檔案也可以放心在這裡用。
Ratings appear once there are 10.
The tool name, this page’s path and your browser type are sent with it. Files are never sent. For a reply, use the email on the Contact page.
分類
可以查看處理在哪裡進行、檔案傳送到哪裡、如何保存。