To add line numbers, paste your text and each line gets a number in front of it, starting at 1 and counting up by 1. You can change the starting number and the step, choose a style such as "1." or "[1]", pad numbers with zeros so they line up, and skip blank lines. A second mode strips existing numbers.
How to use the Add Line Numbers
- Paste your textAdd the list, script, lyrics or code you want numbered.
- Choose the stylePick the separator after the number, the starting number, the step and any padding.
- Copy the numbered textPress Copy. To take numbers off instead, switch the action to "Remove existing line numbers".
Options when you add line numbers
- Number style: the characters placed between the number and the text. "1. " and "1) " suit ordinary lists; "1: " and "1 | " are common for code and logs; "[1] " is the usual form for references; a tab keeps numbers in their own column when you paste into a spreadsheet or word processor.
- Start at: the number given to the first line. Use it to continue a list from an earlier page, or start at 0 for zero-based numbering. Negative starting numbers work.
- Count up by: the gap between numbers. A step of 10 gives 10, 20, 30, in the style of old BASIC programs, leaving room to insert lines later. A negative step counts down, so starting at 10 with a step of -1 makes a countdown.
- Align numbers: leading zeros make every number the same width (001, 002 ... 100), which keeps lists in the right order when they are sorted as text. Leading spaces right-align the numbers for monospaced text.
- Do not number blank lines: blank lines stay in place but do not use up a number, so paragraphs or verses are numbered continuously.
Every line break starts a new line. A long paragraph that wraps on screen is still one line and gets one number.
Removing numbers, and where numbering helps
The remove mode deletes a number at the start of each line along with its separator. It recognises the styles this tool creates: 1. 1) 1: 1- 1| [1] (1) and a bare number followed by a space. Indentation before the number is kept. Lines that do not start with a number are left alone. One caution: a line that genuinely begins with a number, such as "2026 was a good year", will lose it, so check the result when your text has such lines.
Numbered lines make text easy to refer to. Reviewers can say "see line 14" instead of quoting a sentence. Typical uses include contracts and transcripts for review, scripts and lyrics for rehearsal, code snippets in documentation and bug reports, step-by-step instructions, and ranked lists.
Numbering works best as the last step. Sort or deduplicate first with sort lines, then number the final order. If you only need to know how many lines there are, the line counter is quicker. Your text is processed in your browser and is not uploaded.
Frequently asked questions
How do I add line numbers to text?
Paste the text into the box. Each line is numbered automatically, starting at 1, and the numbered version appears below ready to copy.
Can I start numbering from a number other than 1?
Yes. Change "Start at" to any whole number, including 0 or a negative number, and change "Count up by" to number in steps such as 5 or 10.
How do I remove line numbers from copied text?
Switch the action to "Remove existing line numbers". Numbers at the start of each line, with separators such as a full stop, bracket or colon, are deleted.
What does zero padding do?
It adds zeros in front of shorter numbers so all numbers have the same width, for example 01 to 10 or 001 to 100. Numbers then line up and sort correctly as text.
Are blank lines numbered?
By default, yes. Tick "Do not number blank lines" to keep blank lines in place without giving them a number.
Last updated 24 November 2026 by the TheTechFolk team.