Split a large text file
Split a big TXT or log file by lines or size.
About this tool
This tool splits a large text file, such as a TXT, log, JSONL or SQL dump, into smaller files by a number of lines or by a maximum size in KB or MB. Lines are never cut in the middle, and you can repeat the first line in every part when the file has a header. The file is streamed on your device in 2 MB pieces, so even multi-GB logs can be split without uploading them.
At a glance
- What it does
- Split a big TXT or log file by lines or size.
- Price
- Free, no sign-up
- Works in
- Your browser, on phone or computer. Works offline after the first visit.
- Privacy
- Files are processed on your device and never uploaded.
How to split a text file
- Click "Select a text file" and choose your file.
- Choose "Number of lines" or "File size" and enter the limit.
- Click "Split file" and download the ZIP of parts.
Private
Your files are processed in your browser and never uploaded.
Fast
No upload or queue. Results are ready in seconds.
Free
No sign-up, no limits and no watermark on your files.
Frequently asked questions
How do I split a big log file into smaller files?
Select the log, choose "File size" and enter, for example, 10 MB. Each part is filled with whole lines until the next line would go over 10 MB. A 95 MB log gives 10 parts: nine of about 10 MB and one smaller.
Will a line ever be cut in half?
No. Parts always end at the end of a line. A single line longer than the size limit is put in a part of its own.
Should I use this or the CSV splitter for CSV files?
Use the CSV splitter for CSV files whose values contain line breaks inside quotes, because it counts real rows, not lines. For simple CSVs, ticking "Repeat the first line in every part" here works the same.
What encoding are the parts saved in?
UTF-8. Files in UTF-16 or Windows-1252 (older Windows text files) are detected and converted, so text in Hindi and other scripts stays readable.
Are my files uploaded to a server?
No. This tool runs entirely inside your browser, so your files never leave your device. Nothing is stored or seen by us.



