Loading the interactive tool… It runs in your browser — if it doesn't appear, enable JavaScript.
Number every line in a block of text. Set where the numbering starts, how much it steps by, and what separates the number from the line — a dot, a bracket, a tab, whatever the destination needs.
Numbers are padded with leading spaces by default so the separator lines up all the way down. It's the difference between a list that reads cleanly past line 9 and one that steps sideways when the numbers gain a digit. Blank lines can either be numbered or skipped and left in place, which is what you want when numbering paragraphs rather than rows.
Frequently asked questions
Can I start numbering from something other than 1?
Yes — set any start value. It's the usual need when you're numbering a section that continues from an earlier page, or when line 1 of your excerpt is really line 340 of the file.
How do I number every other line?
Set the step to 2. Any step works, including negative ones for counting down.
Why do my numbers not line up?
Turn on "Align numbers". Without padding, 9 is one character and 10 is two, so the text after the separator shifts right the moment you pass single digits. Padding adds leading spaces so every line starts at the same column.