Split Text File (By Lines or Delimiter)

Split Text File (By Lines or Delimiter)

Local Processing

Split a large text file into smaller chunk files by line count or custom delimiter string.

How It Works & Processing Standards

Split a large text file into smaller chunk files by line count or custom delimiter string.

Tool processing runs in your browser. If you create a calculator or conversion share link, its values are included in the URL. See the privacy policy for account, analytics and advertising data.

Current Limits

  • Desktop max file size: 100MB
  • Mobile max file size: 40MB

For cutting oversized logs or CSVs down to openable sizes, or separating documents joined by a divider. Pieces are numbered files inside a ZIP.

Splitting a CSV by lines leaves the header only in the first piece. Use the CSV split tool to repeat it.

What You Can Do

By line count
Split every N lines, such as 1,000.
By separator
Split wherever a string such as "---" appears.

How to Use Split Text File (By Lines or Delimiter)

  1. 1
    Pick a fileSelect the text file.
  2. 2
    Set the ruleLine count or separator.
  3. 3
    Download the ZIPSave the pieces.

Examples

Every 1,000 lines
Input: log.txt with 2,500 lines, 1,000 lines
Result: A ZIP with 3 pieces (1,000, 1,000 and 500 lines)

Common Use Cases

  • Splitting a CSV too big for a spreadsheet app
  • Fitting text to an email length limit

Frequently Asked Questions (FAQ)

Is the separator kept in the output?

No. It is only used to decide where to split and is not included in the pieces.

Have feedback or ideas for this tool? Suggest & Inquire →