Add Line Numbers to Text
Add Line Numbers to Text
Add a number to the start of every line, so you can point to a line in a review, a class, or a document. Pick a starting number and a separator.
Add Line Numbers to Text Guide
Line numbers turn a plain block of text into something you can talk about line by line. When a teacher says "look at line 12", or an editor says "fix line 4", or a coder says "the error is on line 27", the number does the pointing for you. Without numbers, people have to count lines by hand, or copy a whole sentence to show which line they mean. With numbers, a short note like "line 8 has a typo" is enough, and everyone finds the same line at once.
Teachers use line numbers on poems, speeches, and reading passages, so a class can discuss one line at a time. Editors use them on drafts, so a review note can point to a single line without a long quote. Writers use them on lists, scripts, and meeting notes, so a change can be tracked line by line. The numbers also help when a text is long, because a reader can note where they stopped and pick up at the same line later. It is a small change, but it makes a long text much easier to work with.
How to use the line number adder step by step
First, paste your text into the top box, with one item on each line. Next, pick the starting number. It is 1 by default, but you can start at 0, 10, or any number you need, for example when you are numbering a second page that follows a first page. Then pick a separator, the mark that sits between the number and the text, such as a dot, a colon, a bracket, a dash, or a pipe. The skip blank lines toggle is on by default, so blank lines stay blank and do not take a number. Click Add Line Numbers, read the result in the bottom box, and check the count line, which tells you how many lines were numbered. Click Copy Result when you are happy, and the Clear button resets both boxes.
Check your line breaks before you number a text. A paragraph that wraps onto two lines in your editor is still one line to this tool, because it only counts real line breaks. If you need each wrapped line numbered, split the text into real lines first, then number it.
Input vs output examples
Example one. Input lines: "Apples", "Bananas", "Cherries". Start at 1, separator dot. Output: "1. Apples", "2. Bananas", "3. Cherries". Three lines are numbered, and the list is ready to share or print.
Example two. Input lines: "First draft", blank line, "Second draft". Start at 1, separator colon, skip blank lines on. Output: "1: First draft", blank line, "2: Second draft". The blank line stays blank, and the numbering skips it, so the second draft is line 2, not line 3.
Example three. Input lines: "Step one", "Step two", "Step three". Start at 10, separator dash. Output: "10 - Step one", "11 - Step two", "12 - Step three". Starting at 10 is useful when this block follows nine lines from an earlier page, and the numbers still run in order.
Privacy
All processing happens locally in your browser. Your text is never stored on a server, never sent anywhere, and never shared with anyone. Close the page and your text is gone. That makes this tool safe for class work, drafts, and private lists.
Frequently asked questions
Can I start numbering at a number other than 1?
Yes. Type any starting number, such as 0 or 10, and the numbering runs from there. It helps when you number a second page that follows a first page.
What separator should I pick?
A dot is the most common choice for a simple list. A colon works well for a script, a dash works well for steps, and a pipe works well when the text already has dots in it.
What happens to blank lines?
With skip blank lines on, blank lines stay blank and do not take a number. Turn it off if you want every line numbered, including blank ones.
Does it number wrapped lines?
No. It only counts real line breaks. A long line that wraps on screen is still one line, so split long lines into real lines first if you need each one numbered.
Can I remove the numbers later?
Yes, if you keep the original text in the top box. The tool does not change your input, so you can copy the original again, or paste the numbered text into the duplicate line remover to clean it up.