CSV Row Splitter
Split a CSV into smaller files by row count
CSV Row Splitter — what it does
Split a long CSV into a series of smaller files with a fixed number of rows each, delivered together in a ZIP. Every part keeps the original header, so each file opens as a valid standalone CSV rather than a fragment that only makes sense next to its siblings.
Worked example
An eight-order export split into parts of three rows each; Rows per file was set to 3.
Input — orders.csv (rows per file: 3)
order_id,region,product,qty,unit_price,order_date 1001,East,Notebook,12,3.50,2026-01-04 1002,West,Stapler,3,8.99,2026-01-04 1003,East,Notebook,5,3.50,2026-01-05 1004,North,Pen box,20,2.10,2026-01-06 1005,West,Notebook,7,3.50,2026-01-06 1006,East,Stapler,1,8.99,2026-01-07 1007,North,Pen box,15,2.10,2026-01-08 1008,West,Desk lamp,2,24.00,2026-01-08
Output — orders-parts.zip, three files
orders-001.csv order_id,region,product,qty,unit_price,order_date 1001,East,Notebook,12,3.50,2026-01-04 1002,West,Stapler,3,8.99,2026-01-04 1003,East,Notebook,5,3.50,2026-01-05 orders-002.csv order_id,region,product,qty,unit_price,order_date 1004,North,Pen box,20,2.10,2026-01-06 1005,West,Notebook,7,3.50,2026-01-06 1006,East,Stapler,1,8.99,2026-01-07 orders-003.csv order_id,region,product,qty,unit_price,order_date 1007,North,Pen box,15,2.10,2026-01-08 1008,West,Desk lamp,2,24.00,2026-01-08
Part numbers are zero-padded to three digits and the ZIP is named after the source file. Every part repeats the header and starts with a UTF-8 byte-order mark; the status reads 3 file(s).
When this tool helps
- Meeting an import limit, where a system accepts a few thousand rows per upload at most.
- Dividing a large task list across a team so each person gets a manageable file.
- Breaking a huge export into pieces a spreadsheet application can open without stalling.
How to use it
- Choose the CSV file.
- Enter how many rows each output file should contain.
- Process the split.
- Download the ZIP containing the parts.
Accuracy, limits, and good practice
- The header is repeated in every part and does not count toward the row limit you set.
- Sort before splitting if the parts should be meaningful groups; otherwise the division is purely positional.
- Very small chunk sizes on a large file produce hundreds of parts, which the ZIP handles but your file manager may not enjoy.
Frequently asked questions
How are the files named?
Sequentially, so they sort in the original order when extracted and can be reassembled by concatenating them.
Can I split by a column value instead?
Yes, that is what the split-by-column tool does: one file per distinct value rather than per fixed row count.
Can I put the parts back together?
Yes, the CSV merger recombines them, and enabling the source filename column records which part each row came from.
What if Rows per file is blank, 0 or negative?
A blank or 0 box falls back to 1000 rows per part; a negative number is treated as 1, which produces one file per data row. The last part simply holds whatever is left, so it can be shorter.
Do I still get a ZIP when the file fits in one part?
Yes. The tool always produces a ZIP, so a 400-row file with the default 1000 rows per part gives a ZIP containing a single orders-001.csv.
Related tools on this site
- JSON Key Renamer — Rename matching object keys recursively throughout JSON data
- CSV Column Splitter — Split one CSV field into multiple columns by a delimiter
- CSV Missing Value Cleaner — Remove incomplete rows or fill blank cells
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 Row Splitter needs no account, no upload, and no server round trip — close the tab and nothing is left behind.
CSV 按行數拆分能做什麼
把長長的 CSV 依固定列數切成數個較小的檔案,並一併打包成 ZIP。每一份都保留原始標題列,因此各檔案都是可獨立開啟的完整 CSV,而不是必須配合其他檔案才看得懂的片段。
實際範例
八筆訂單拆成每份三列;每檔列數設為 3。
來源:orders.csv(每檔列數:3)
order_id,region,product,qty,unit_price,order_date 1001,East,Notebook,12,3.50,2026-01-04 1002,West,Stapler,3,8.99,2026-01-04 1003,East,Notebook,5,3.50,2026-01-05 1004,North,Pen box,20,2.10,2026-01-06 1005,West,Notebook,7,3.50,2026-01-06 1006,East,Stapler,1,8.99,2026-01-07 1007,North,Pen box,15,2.10,2026-01-08 1008,West,Desk lamp,2,24.00,2026-01-08
得到:orders-parts.zip,內含三個檔案
orders-001.csv order_id,region,product,qty,unit_price,order_date 1001,East,Notebook,12,3.50,2026-01-04 1002,West,Stapler,3,8.99,2026-01-04 1003,East,Notebook,5,3.50,2026-01-05 orders-002.csv order_id,region,product,qty,unit_price,order_date 1004,North,Pen box,20,2.10,2026-01-06 1005,West,Notebook,7,3.50,2026-01-06 1006,East,Stapler,1,8.99,2026-01-07 orders-003.csv order_id,region,product,qty,unit_price,order_date 1007,North,Pen box,15,2.10,2026-01-08 1008,West,Desk lamp,2,24.00,2026-01-08
分段編號補零到三位數,ZIP 以來源檔名命名。每個分檔都重複標題列,開頭帶 UTF-8 BOM;狀態列顯示 3 file(s)。
什麼時候用得上
- 配合匯入限制,例如系統每次最多只接受數千列。
- 把大量待辦資料分給團隊,每人拿到份量合理的檔案。
- 把超大匯出檔切成試算表軟體開得動的片段。
使用步驟
- 選擇 CSV 檔案。
- 輸入每個輸出檔要包含幾列。
- 執行拆分。
- 下載內含各分割檔的 ZIP。
精確度、限制與實務建議
- 標題會在每一份中重複,且不計入你設定的列數上限。
- 若希望每份都是有意義的群組,請先排序;否則切分純粹依位置進行。
- 在大檔案上設定過小的每份列數會產生上百個檔案,ZIP 承受得住,但檔案總管可能不太好用。
常見問題
檔案怎麼命名?
採連號命名,解壓後會依原始順序排列,直接串接即可還原。
可以改成依欄位值拆分嗎?
可以,那正是「依欄位拆分 CSV」工具的功能:依不重複值各產生一個檔案,而非固定列數。
拆開後還能合回去嗎?
可以,用 CSV 合併工具即可;開啟來源檔名欄位還能記錄每列出自哪一份。
每檔列數留空、填 0 或負數會怎樣?
留空或 0 會退回每份 1000 列;負數會被當成 1,變成每筆資料各一個檔案。最後一份裝剩下的列,所以可能較短。
整個檔案一份就裝得下時,還是會得到 ZIP 嗎?
會。這個工具一律產生 ZIP,所以 400 列的檔案在預設 1000 列的設定下,得到的是只含一個 orders-001.csv 的 ZIP。
本站相關工具
- JSON 鍵名批量重新命名 — 在整份 JSON 中遞迴重新命名符合的物件鍵名
- CSV 欄位拆分 — 依分隔符將單一 CSV 欄位拆成多欄
- CSV 缺失值清理 — 刪除不完整資料列或填補空白儲存格
延伸閱讀: 匯入之前先把 CSV 匯出檔清乾淨 · CSV、JSON、YAML、XML 與 Markdown 表格:各自適用的場合與轉換方法
以上步驟全部在這個頁面內完成,CSV 按行數拆分 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。