Skip to content

Split a large CSV file into smaller files (Pro)

Splitting is a CsvDrill Pro feature. Your original file isn't changed: the parts are written as new files to the folder you choose, and a cancelled job leaves no half-written files behind.

Split file window (Pro): a new file every 1,000,000 rows, target folder and file name prefix.
Split file window (Pro): a new file every 1,000,000 rows, target folder and file name prefix.

Steps

  1. Open the file in CsvDrill. Wait for the scan to finish; splitting reads the whole file.
  2. Choose Tools › Split (Pro). If Pro isn't active, the item appears locked; clicking it opens a short explanation of what it does.
  3. Choose how to split. Every N rows into a new file: for example, 1,000,000 makes every part fit in Excel. By column value: every distinct value of the chosen column becomes a separate file (at most 1,000 files).
  4. Choose the folder, the file name prefix and the format. Parts are named prefix_001.csv, prefix_002.csv… or prefix_.csv. The encoding defaults to UTF-8 with BOM (recommended for Excel) and the delimiter to the source's; you can change both.
  5. Click Split. A progress bar shows the progress; if you cancel, the half-written files are deleted. If parts with the same names already exist, you are asked before they are overwritten.
Split file window (Pro): splitting by the value of the City column.
Split file window (Pro): splitting by the value of the City column.

Tips

  • If you will open the parts in Excel, use at most 1,048,575 data rows per part; together with the header row, that is Excel's limit.
  • When splitting by column value, values that differ only in upper/lower case or in characters not allowed in file names go to the same file.
  • To join separate files back into one, use Tools › Merge (Pro); the files must have the same header.

Splitting rewrites the whole file; the target drive needs a little more free space than the file's size. If there isn't enough, you are warned before the job starts.

Result

Your large file is now in parts you can open in Excel or share; the original file is untouched.

Download free

Other guides