On an iPhone, add line numbers to text by pasting it into a browser page, choosing the starting number and separator, and downloading the numbered UTF-8 TXT file.
This is a plain-text file workflow, not a way to add page numbers inside a rich Notes, Pages, or Word document. The Add Line Numbers to Text page runs the transformation in your browser, sends no pasted text to Lizely, and leaves the input area unchanged when it generates a result.

Number plain text on your iPhone
No dedicated line-numbering app is required. The practical iPhone workflow is to copy plain text from its source, open the tool in a browser, and download the finished TXT file.
- Copy the source text. Open the app where the text lives and copy the portion you want to number. Keep the input at or below the tool’s limit of 1,000,000 characters.
- Open the tool and enter the text. Visit the line-numbering page in your iPhone browser, tap the input area, and paste or type the copied text. This workflow is for plain text; rich formatting is outside the tool’s scope.
- Choose the starting number. Enter a whole, non-negative integer with no more than six digits. The accepted range is 0 through 999999, and the first logical line receives that starting value.
- Set the separator. Add the characters that should appear between each generated number and the original line. Common choices include a period followed by a space, a colon, a vertical bar, a pasted tab, or an empty separator. Separators are limited to 20 Unicode characters.
- Decide whether to pad the numbers. Optional zero padding uses the digit width of the final number in the sequence. It changes only the generated numeric prefix and never alters the original line text.
- Generate and inspect the preview. Tap Add line numbers. The preview shows the exact transformed text after newline normalization. On a narrow iPhone screen, a long line may wrap visually, but that display wrapping does not add newline characters to the download. Check the numbering of blank lines and any final empty line before continuing.
- Download the result. Use the download control to save the numbered output as a UTF-8 plain-text file without a byte-order mark. If you edit a setting afterward, the previous result is cleared and its download link is invalidated, so generate and inspect the updated result again before downloading.
What gets numbered in the result
The tool works with logical lines rather than only visible, non-empty content. It recognizes Windows CRLF, classic Mac CR, and Unix LF boundaries, then prefixes every logical line with the next sequential integer.
| Input situation | Numbering result |
|---|---|
| A line containing text | The generated number and separator appear before the untouched line text. |
| An empty line | It receives a generated number and separator even though it contains no original text. |
| A whitespace-only line | It receives a number, and its spaces or tabs remain in the output. |
| Input ending with a newline | A final empty logical line is created and numbered. |
| CRLF, lone CR, or lone LF boundaries | All three are recognized as line breaks, while the generated output uses LF between lines. |
The original characters within each line—including leading and trailing spaces, repeated spaces, tabs, punctuation, and existing numerals—are not trimmed, collapsed, or rewritten. The line-ending representation does change: mixed CRLF, CR, and LF input is normalized to LF in the preview and download. This preserves the sequence and content of each logical line without claiming that the original newline bytes are retained.
Set the prefix style
The available controls determine both the numbering sequence and the exact text inserted before each line.
| Control | Accepted value | Effect |
|---|---|---|
| Text input | Up to 1,000,000 characters | Provides the plain text that will be split into logical lines. |
| Starting number | Whole integer from 0 to 999999 | Sets the first generated number; each later logical line increases by one. |
| Separator | 0–20 Unicode characters | Is inserted literally between the number and original line text. |
| Zero padding | On or off | Uses the digit width of the final sequence value when enabled. |
Generated numbers use ordinary base-ten digits without locale separators. A separator is treated as literal text, not as a regular expression, so punctuation such as a period remains a period. With enough logical lines, later sequence values can contain more than six digits; the six-digit rule applies to the starting number entered by the user and does not cause values to wrap or truncate.
See how a blank line is handled
Worked example: Paste three logical lines: alpha, an empty line, and beta. Set the starting number to 8, choose a period followed by a space as the separator, and turn on zero padding. The final value is 10, so the padding width is two digits. The first output line is 08. alpha, the second is 09. followed by the chosen space and no original text, and the third is 10. beta.
Where numbered text is useful
Because the sequence is positional and includes blank lines, the resulting file can provide stable identifiers for discussions, review comments, and classroom references.
- Code-review references that need to point to a particular source line.
- Transcripts that need sequential locations for notes or edits.
- Poetry and script drafts used for line-specific discussion.
- Support logs that connect an issue to an exact message.
- Legal-review working copies that need clear line identifiers.
- Classroom material in which students refer to specific lines.
For larger text sets, the bulk line-numbering workflow explains how to apply the same browser-based process in batches. Each individual input must still remain within the 1,000,000-character limit. If you only need to count lines rather than transform them, use Line Counter instead.
Know what this method does not do
This tool adds a generated prefix to every logical line. It does not intelligently renumber an existing numbered list: existing numerals remain part of the original line text and receive another outer number.
It also does not add page numbers to documents. Rich formatting, syntax highlighting, spreadsheet columns, and document-file structures are outside its scope. The supported result is numbered plain text rather than live line numbering inside Notes, Pages, Word, or another rich document.
Empty input, an invalid starting number, or a separator longer than 20 characters produces a visible error instead of output. The input-length bound is intentional: it keeps browser work responsive and memory use predictable while processing large amounts of text.
Download the result as plain text
The browser’s download flow produces a UTF-8 TXT file with the generated prefixes and the original line content. If the destination app accepts TXT files, you can pass the downloaded file to it using the normal iOS file-opening or sharing controls. The tool does not insert its numbering into the destination document or preserve rich formatting that was outside the plain-text input.
Numbering, preview generation, and TXT download creation all happen locally in the browser. Your pasted text is not sent to Lizely, so the workflow keeps the source content on the device while you create the downloadable file.
Related reading: How to Add Suffix to Lines While Preserving Their Text.