CSV Column Splitter
Split one CSV field into multiple columns by a delimiter
CSV Column Splitter — what it does
Pick a column and a delimiter, and the tool splits that field into several new columns named with a prefix you choose. It is the inverse of merging: one address line becomes street, city and postcode, or a semicolon-separated tag list becomes one column per tag, ready for filtering and counting.
Worked example
A subscriber list whose tags column holds semicolon-separated tags, split so each tag can be filtered on. The tags column was selected, ; typed as the delimiter and Tag as the prefix.
Input — subscribers.csv
email,tags ann.lee@example.com,vip;newsletter;trial ben.ortiz@example.com,newsletter chloe.park@example.com,vip;newsletter dev.patel@example.com, emma.rossi@example.com,trial;newsletter;vip;beta
Output — split-column.csv
email,tags,Tag 1,Tag 2,Tag 3,Tag 4 ann.lee@example.com,vip;newsletter;trial,vip,newsletter,trial, ben.ortiz@example.com,newsletter,newsletter,,, chloe.park@example.com,vip;newsletter,vip,newsletter,, dev.patel@example.com,,,,, emma.rossi@example.com,trial;newsletter;vip;beta,trial,newsletter,vip,beta
Four new columns are created because one row has four tags; shorter rows end in empty cells and the blank tags cell gives an empty Tag 1. The download starts with a UTF-8 byte-order mark.
When this tool helps
- Breaking a single full-name field into first and last name so a mailing can address people properly.
- Splitting a delimited tag or category list so each value can be filtered independently.
- Separating a combined code such as REGION-YEAR-SEQ into its parts for grouping and analysis.
How to use it
- Choose the CSV file.
- Select the column to split and enter the delimiter.
- Set a prefix for the new column names.
- Process the file and download the result.
Accuracy, limits, and good practice
- The number of new columns follows the row with the most parts, so rows with fewer segments simply end with empty cells.
- Watch for values where the delimiter appears inside the data — a company name containing a comma will split in the wrong place.
- Splitting on a single space is unreliable for names, since middle names and compound surnames land in unexpected columns.
Frequently asked questions
Is the original column kept?
The new columns are added to the row; keep or remove the source afterwards with the column extractor if you no longer need it.
Can I split on more than one character?
Yes, a multi-character delimiter such as ' | ' works, which is often cleaner than a single character that also occurs in the data.
What if a row has no delimiter at all?
The whole value goes into the first new column and the remaining new columns are left blank for that row.
Are spaces after the delimiter removed?
No. Splitting vip; newsletter on ; gives a second part of ' newsletter' with a leading space. When the source was written with a space after each separator, type the delimiter as '; ' (semicolon plus space).
What happens if the delimiter box is empty?
An empty delimiter splits the value into single characters, one new column per character, which is almost never intended. The box defaults to a comma, so put a delimiter back before running.
Related tools on this site
- CSV Duplicate Remover — Remove duplicate rows using a selected key column
- CSV Row Filter — Keep CSV rows that match a selected rule
- HTML Table to CSV — Extract an HTML table and download it as a CSV file
Further reading: Cleaning a CSV export before you import it anywhere · CSV, JSON, YAML, XML and Markdown Tables: When Each Fits and How to Convert
Everything above runs inside this page. CSV Column Splitter needs no account, no upload, and no server round trip — close the tab and nothing is left behind.
CSV 欄位拆分能做什麼
選定欄位與分隔符,工具會把該欄拆成數個新欄位,並以你指定的前綴命名。它是合併的反向操作:一行地址可拆成街道、城市與郵遞區號,用分號分隔的標籤清單也能拆成一個標籤一欄,方便後續篩選與統計。
實際範例
訂閱者名單的 tags 欄以分號串接多個標籤,拆開後才能逐一篩選:選 tags 欄、分隔符填 ;、前綴填 Tag。
來源:subscribers.csv
email,tags ann.lee@example.com,vip;newsletter;trial ben.ortiz@example.com,newsletter chloe.park@example.com,vip;newsletter dev.patel@example.com, emma.rossi@example.com,trial;newsletter;vip;beta
得到:split-column.csv
email,tags,Tag 1,Tag 2,Tag 3,Tag 4 ann.lee@example.com,vip;newsletter;trial,vip,newsletter,trial, ben.ortiz@example.com,newsletter,newsletter,,, chloe.park@example.com,vip;newsletter,vip,newsletter,, dev.patel@example.com,,,,, emma.rossi@example.com,trial;newsletter;vip;beta,trial,newsletter,vip,beta
因為有一列帶四個標籤,所以新增四個欄位;較短的列以空儲存格補齊,tags 為空的那列得到空白的 Tag 1。下載檔開頭帶 UTF-8 BOM。
什麼時候用得上
- 把單一全名欄位拆成姓與名,讓寄送名單能正確稱呼收件人。
- 拆開以分隔符串接的標籤或分類清單,讓每個值都能單獨篩選。
- 把 REGION-YEAR-SEQ 這類組合代碼拆成各部分,供分組與分析使用。
使用步驟
- 選擇 CSV 檔案。
- 選定要拆分的欄位並輸入分隔符。
- 設定新欄位名稱的前綴。
- 執行處理並下載結果。
精確度、限制與實務建議
- 新欄位數量以段數最多的那一列為準,段數較少的列後面就會是空白儲存格。
- 留意資料本身含有分隔符的情況,例如公司名稱中的逗號會導致切在錯誤位置。
- 以單一空格拆分姓名並不可靠,中間名與複姓會落到非預期的欄位。
常見問題
原本的欄位會保留嗎?
新欄位會加到該列上;若不再需要來源欄位,可再用欄位提取工具決定保留或移除。
可以用多個字元當分隔符嗎?
可以,像 ' | ' 這種多字元分隔符通常比單一字元更安全,因為單字元常也出現在資料中。
如果某列完全沒有分隔符呢?
整個值會放進第一個新欄位,該列其餘新欄位留空。
分隔符後面的空格會被去掉嗎?
不會。以 ; 拆 vip; newsletter 時,第二段是帶前導空格的「 newsletter」。若來源在每個分隔符後都有空格,請把分隔符填成「; 」(分號加空格)。
分隔符欄位留空會怎樣?
空的分隔符會把值逐字拆開,每個字元各佔一欄,幾乎不會是你要的。該欄位預設是逗號,執行前請先填回一個分隔符。
本站相關工具
- CSV 重複資料移除 — 依指定欄位移除重複資料列
- CSV 資料篩選 — 依指定條件保留符合的 CSV 資料列
- HTML 表格轉 CSV — 提取 HTML 表格內容並下載為 CSV 檔案
延伸閱讀: 匯入之前先把 CSV 匯出檔清乾淨 · CSV、JSON、YAML、XML 與 Markdown 表格:各自適用的場合與轉換方法
以上步驟全部在這個頁面內完成,CSV 欄位拆分 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。