About this tool
Add sequential line numbers to every line of your text.
Line Numbering Tool prefixes every line of pasted text with a sequential number and a full stop — "1. ", "2. ", "3. " — counting up one per line from whatever starting number you set, which defaults to 1. It splits on newlines and numbers every line including blank ones, so the numbering always matches the line positions in the original text. Useful whenever you need to reference specific lines by number rather than by quoting them.
Open Line Numbering Tool on AltFTool — it loads instantly in your browser.
Paste or type the text you're working with.
Choose how it should be transformed or analyzed.
Copy the finished text into your document or post.
The start value is an input, so you can begin at 0, at 1, or at any offset to continue a sequence from another page.
Empty lines are counted rather than skipped, so the numbers stay aligned with the real line positions of the source text.
Every line gets the number, a period and a single space, which pastes cleanly into documents, tickets and code comments.
Paste the text and the numbered version appears immediately, with each line prefixed "1. ", "2. " and so on. Change the Start at value if you need the count to begin somewhere other than 1.
Yes — set Start at to any number and the first line takes that value, incrementing by 1 for each following line. Starting at 0 is common for arrays and byte offsets; starting mid-sequence is useful when continuing a numbered list from a previous section.
Yes. Every line produced by splitting on newlines gets a number, including empty ones, so line 20 in the output is the twentieth line of your input. That keeps the numbers usable as references back into the original file.
No. Nothing but the number, period and one space is added to the front of each line — indentation, punctuation, capitalisation and line order are all left untouched, so you can strip the prefixes later and get the original back.