Split one text file on logical line boundaries, with special attention to CRLF, CR, LF, and the way a trailing boundary creates an empty final line. The Text File Splitter accepts one local TXT, CSV, MD, or LOG file no larger than 10 MiB and a whole-number chunk size from 1 to 100,000 lines. It reads the file in your browser, divides it sequentially, and creates numbered UTF-8 TXT parts for separate download.
A single run turns one source file into many smaller, line-based files. It does not mean selecting several source files in one operation: the tool accepts one file per run. For a directory of files, repeat the workflow file by file. There is no ZIP bundle, so every chunk requires its own download click, and your browser may request permission for repeated downloads.
Every generated part is plain text. The output filename always ends in .txt, even when the source is a CSV, Markdown, or LOG file. This distinction matters if a downstream system expects a specific extension or treats each output as a complete structured document.

What the one-file workflow covers
The splitter has explicit limits that determine whether it can complete a job. Check these values before selecting a source or calculating how many downloads you may need.
| Setting | Supported value | Practical meaning |
|---|---|---|
| Source files | One TXT, CSV, MD, or LOG file per run | Repeat the process for additional source files. |
| Maximum source size | 10 MiB | A larger file is outside the tool’s processing limit. |
| Lines per part | A whole number from 1 through 100,000 | Decimals, zero, negative values, and values above 100,000 are rejected. |
| Output format | Numbered UTF-8 TXT chunks | The original extension is not retained for generated parts. |
| Download method | One download per part | No ZIP archive is created. |
| Empty source | Rejected | There must be meaningful content to partition. |
Validation happens before chunks are produced, so an invalid file type, oversized file, empty file, or invalid line-count value does not leave a partial result behind. Selecting a different file or changing the line count also clears the previous result, helping prevent an old filename or part count from being mistaken for the new configuration.
The original source file is never changed. Keep it until every required part has been downloaded and checked, especially when the output will be used as the only remaining copy.
Prepare a safe source file
Prepare the source before opening the splitter. Although the accepted extensions are TXT, CSV, MD, and LOG, an extension does not validate the file’s syntax or encoding. The tool accepts a file based on its name and size, then decodes it as UTF-8 in the browser.
- Confirm the file type. Use a plain-text file with one of the four accepted extensions. Binary data renamed to .txt is not made safe by the rename.
- Check the size. The source must be no larger than 10 MiB. This cap bounds decoding and rendering inside the browser.
- Check the encoding. Use UTF-8 when possible. A non-UTF-8 source can decode with replacement characters because the browser’s text-reading method interprets the bytes as UTF-8.
- Identify the meaningful unit. Confirm that a physical line is the unit you want to divide. The splitter does not understand CSV records, paragraphs, code blocks, or other application-specific structures.
For files containing non-ASCII text, open a representative section after splitting and inspect it in the destination application. The splitter preserves decoded Unicode text, but it cannot recover characters that were already damaged or encoded incompatibly before processing.
Split the file by a fixed line count
- Select one source file. Choose a local TXT, CSV, MD, or LOG file that is no larger than 10 MiB. Do not assume that multiple files can be selected at once.
- Enter the number of lines per part. Use a whole number from 1 through 100,000. This value sets the maximum number of logical lines assigned to each complete part.
- Run the split. Activate the split action. The file is read and processed locally, and the parts are sliced sequentially from the first line forward.
- Verify the reported totals. Check the displayed total line count and part count before downloading anything. Remember that a trailing line boundary counts as the start of a final empty logical line.
- Download every numbered part. Select each part’s download button separately. The tool creates a temporary object URL when the button is clicked and triggers one file download; it does not create a single archive containing all outputs.
- Inspect representative outputs. Open the first, middle, and last parts when practical. Confirm that the text, Unicode characters, indentation, trailing spaces, and line boundaries look correct in the application that will use them.
If the browser blocks or prompts for repeated downloads, review its download permission settings and complete the set deliberately. Do not close the page until every required numbered part has been saved.
Read the line and filename rules
The splitter recognizes common text-file line endings and converts the line boundaries inside generated chunks to a consistent format.
| Source line ending | How it is recognized | Form inside generated chunks |
|---|---|---|
| CRLF | One line boundary | LF |
| Standalone CR | One line boundary | LF |
| LF | One line boundary | LF |
A trailing line boundary creates a final empty logical line. This behavior prevents the splitter from silently discarding a source boundary, but it also means a file that ends with a newline can produce an empty final part when the selected chunk size is one line. Check the reported logical line total with this rule in mind.
Within each line, the character content is otherwise preserved, including indentation, trailing spaces, punctuation, and Unicode text. Only the line boundaries inside the generated parts are normalized to LF. If a source mixes CRLF, CR, and LF, those mixed endings become consistent in the output.
Every complete part contains the requested number of lines, while the last part contains the remainder. The splitter does not redistribute lines to make the final parts equal in size. It also does not split by byte count, word count, or paragraph. The same decoded input and the same line-count setting always produce the same text strings, line total, part count, and filenames.
The original base filename is retained, followed by part and a zero-padded three-digit sequence. For example, a source named notes.txt produces names such as notes-part-001.txt and notes-part-002.txt. These predictable names make it easier to verify that the complete numbered set is present.
Protect structured text from broken boundaries
Line-based splitting is appropriate when every line is an independent unit. It is not safe for every text format simply because the file has a CSV, Markdown, or similar extension.
- CSV: A quoted field can legally contain a newline. Splitting at that boundary can divide one record across two output files and leave fragments that are not valid CSV.
- Markdown: Lists, tables, link definitions, block quotes, and fenced code blocks can continue across lines. A chunk boundary may interrupt one of these constructs.
- JSON and XML: Objects, elements, and attributes may span multiple lines, so splitting can produce syntactically incomplete fragments.
- Source code: Functions, strings, comments, and conditional blocks can cross a line boundary even when the extension is plain text.
For these cases, use a format-aware parser when structural validity matters. The splitter does not parse quoted multiline CSV fields, detect paragraph boundaries, or validate source syntax. An accepted CSV extension is not a guarantee that every downloaded TXT chunk remains a valid CSV record set.
The same caution applies to files whose internal meaning depends on encoding rather than visible lines. This tool divides decoded logical lines only. It does not split an individual line by byte size, and it does not preserve a non-UTF-8 source encoding in the UTF-8 output.
Verify and retain the output
After downloading, compare the result set with the information shown by the splitter. A short verification routine can prevent missing or misnamed parts from becoming a problem later.
- Confirm that the number of downloaded files matches the displayed part count.
- Check that the filenames form a complete numbered sequence based on the original base name.
- Compare the displayed logical line total with the source, accounting for any final empty logical line.
- Open representative parts and review indentation, trailing spaces, punctuation, Unicode text, and mixed line endings.
- For CSV, Markdown, JSON, XML, or source code, test whether each chunk still satisfies the destination application’s structural requirements.
Because the source file is decoded and processed locally, its bytes are not uploaded to Lizely. There is no server storage, account, or retained processing history. Each download creates a temporary object URL at click time and revokes it immediately after triggering the file download, so no long-lived object URL is created during rendering. The downloaded files are the durable output.
For a genuine bulk workflow, treat each source as a separate batch: confirm its size and encoding, choose a line count that reflects the unit you need, split it, verify the reported totals, download all numbered parts, and inspect representative results before discarding the original.