CSV Splitter - Split Large CSV Files by Rows or Parts avatar

CSV Splitter - Split Large CSV Files by Rows or Parts

Pricing

from $3.00 / 1,000 files split

Go to Apify Store
CSV Splitter - Split Large CSV Files by Rows or Parts

CSV Splitter - Split Large CSV Files by Rows or Parts

Split one large CSV or TSV file into smaller CSV files: every N rows, or into N files of about equal size. The header row is repeated in each part. Get a download link for every part plus one ZIP. Auto-detects delimiter and encoding (UTF-8, Shift_JIS). No login, no API key.

Pricing

from $3.00 / 1,000 files split

Rating

0.0

(0)

Developer

KOTARO project

KOTARO project

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Categories

Features

Limited permissions

Share

Split one large CSV or TSV file into smaller CSV files that Excel, Google Sheets, import tools and email can handle.

What it does

  • Reads a CSV or TSV from a public URL (up to 200 MB) or pasted text.
  • Splits it every N rows (for example 1,000 rows per file) or into N files of about the same size.
  • Repeats the header row at the top of every part (turn this off for files without column names).
  • Keeps quoted line breaks inside their cell, so rows are never cut in the middle.
  • Auto-detects the delimiter (comma, tab, semicolon, pipe) and the encoding (UTF-8, UTF-16, Shift_JIS, Latin-1). The parts are always UTF-8.
  • Gives a download link for every part and one ZIP with all parts.

Input example

{
"csvUrl": "https://raw.githubusercontent.com/datasets/country-list/main/data.csv",
"splitBy": "rows",
"rowsPerFile": 100
}

Output example

{
"files": 3,
"rowsTotal": 249,
"splitBy": "rows",
"rowsPerFile": 100,
"zipFile": "data_parts.zip",
"zipDownloadUrl": "https://api.apify.com/v2/key-value-stores/<store>/records/data_parts.zip",
"parts": [
{"fileName": "data_part001.csv", "rows": 100, "firstRow": 1, "lastRow": 100},
{"fileName": "data_part002.csv", "rows": 100, "firstRow": 101, "lastRow": 200},
{"fileName": "data_part003.csv", "rows": 49, "firstRow": 201, "lastRow": 249}
]
}

Pricing

One file-converted event per run that makes files (all parts and the ZIP together). An empty input returns a free note. If the file cannot be downloaded or has no data rows, you get an error row and are not charged.

Limits and safety

  • Files up to 200 MB, up to 5,000,000 rows and 500 parts per run.
  • Only public http/https addresses on the standard ports. Internal and private network addresses are refused.
  • No login, no API key, nothing is stored outside your own Apify storage.
  • Only use files you are allowed to process.