How to use the Add Line Numbers
- Type or paste your text into the box.
- Choose the starting number and format.
- Copy the result or download it as a text file.
What does this tool do?
Turn plain lists into numbered lists, number lines of code or poetry for reference, or prepare text for scripts and transcripts.
Numbered lines make it easy to refer to a specific line in feedback (“see line 14”), to follow along in scripts and transcripts, or to turn a plain list into a numbered one before pasting it somewhere that doesn't format lists.
How each option behaves
There are six formats: “1.”, “1)”, “1:”, “1 -”, a tab after the number and “[1]”. Start at sets the first number. It can be 0 or higher than 1, which is useful when you continue a list from earlier.
Zero padding sizes every number to the width of the last one, so a 120-line text becomes 001 to 120, and a 9-line text stays 1 to 9. Lines that contain only spaces count as empty when the skip option is on: they are kept in the output but not numbered, and they do not use up a number.
Related: Remove duplicate lines · Sort lines · Text diff
Good to know before pasting the result
The numbers are plain text, not a list your word processor controls. If you edit the list later, the numbers will not update, so number the lines last. Windows and Mac line endings are converted to a standard line break, so the output pastes cleanly into any editor.
Numbers are added to the front of each line only. They are not a ruler for code, and a line that wraps on screen still counts as one line.
Why use it?
- Quick numbered lists without a word processor.
- Reference specific lines in reviews.
- Zero-padding keeps numbers aligned.
Worked example: a list with a blank line, numbered two ways
Input is three lines, “Milk”, an empty line, then “Eggs”. Empty lines are skipped by default.
| Settings | Output |
|---|---|
| Format “1. Line”, skip empty lines on | 1. Milk, then the empty line unchanged, then 2. Eggs |
| Same, skip empty lines off | 1. Milk, then 2. (just the number), then 3. Eggs |
| Format “[1] Line”, start at 10 | [10] Milk, then the empty line, then [11] Eggs |
Privacy
Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.
Frequently asked questions
Can I skip blank lines?
Yes. Turn on “Don't number empty lines” and blank lines are left as they are, with numbering continuing on the next line of text.
Can I start from a number other than 1?
Yes. Set the starting number — useful when you're continuing a list or numbering a section of a longer document.
Content last updated . See how M2Toolkit works.