Split Text File
Cut a large text file into smaller, numbered parts — by lines per part or by number of parts. Free and private: the file is processed in your browser and never uploaded.
or click to browse — TXT, CSV, LOG, MD and other text files · stays on your device
Resulting parts
If your browser asks for permission to download multiple files, allow it once and press the button again.
How to split a text file online
- Load your file. Drag and drop a TXT, CSV, LOG or any other text file into the box above, or click it to browse your device.
- Choose how to split. Pick Lines per part to cap each piece at a fixed number of lines (great for log files), or Number of parts to divide the file into equally sized chunks. The tool shows how many parts will be created before you commit.
- Split and download. Press Split file and download each numbered part individually, or grab them all at once with Download all parts.
About this tool
This free text file splitter breaks big files into manageable pieces without installing anything. Typical uses: chopping multi-gigabyte-looking server logs into chunks an editor can open, splitting a large CSV export so it fits an import tool's row limit, dividing a mailing list into batches, or breaking a long manuscript into sections. Parts are numbered sequentially (part01, part02, …) and keep the original file extension, and the original line endings (Windows CRLF or Unix LF) are preserved exactly.
The splitting happens entirely in your browser with JavaScript — your file is never uploaded to any server, so confidential logs and customer data stay on your device. There are no accounts, watermarks or artificial size limits. Need to put the pieces back together later? Use the companion Merge Text Files tool.
Frequently asked questions
Does splitting break lines in the middle?
No. The file is always split on line boundaries, so every part contains only whole lines. That makes the tool safe for CSV files and logs where a broken line would corrupt a record.
How does "Number of parts" divide the lines?
The tool computes lines-per-part as the total line count divided by the requested number of parts, rounded up. Every part except possibly the last has the same number of lines; if the division is very uneven the actual part count can be slightly lower than requested.
Can I split a CSV and keep the header row in each part?
The splitter copies lines as-is, so only the first part contains the header. After downloading, paste the header line into the other parts, or split with a tool that understands CSV structure like the CSV Viewer for browsing instead.
How large a file can I split?
Because the whole file is read into browser memory, files up to a few hundred megabytes work well on a typical computer. Nothing is uploaded, so speed depends only on your device — a 100 MB log usually splits in a couple of seconds.