Add Line Numbers prefixes every line of an input block with a sequential counter. You control the starting number, the delimiter that separates the number from the text (default '. '), and whether numbers are space-padded so the columns line up. This line counter tool runs the whole pipeline on every keystroke so you can preview and tweak your line prefix settings instantly.
Padding width is computed from the largest number that will be emitted, so a 1000-line block starting at 1 reserves four columns for the gutter and you get ' 1.', ' 2.', ..., '1000.'. With 'Skip empty lines' enabled, blank lines pass through untouched and do not consume a number - useful when using this line numbering tool for paragraphs of prose rather than every line of a code block or log file.
Yes. The text is split on \n, prefixed, and re-joined with \n. Trailing newlines are preserved. Windows-style \r\n input becomes \r\n on output because the \r stays at the end of each line.
When 'Pad numbers' is on, every number is left-padded with spaces to match the width of (start + line count). So a 10-line block starting at 1 produces ' 1.', ' 2.', ..., '10.' - the columns line up regardless of digit count.
Yes - change the Start field to any non-negative integer (0, 100, 9999). The padding width is then computed from the largest number actually emitted, so columns still align.
Empty or whitespace-only lines pass through with no number prefix and don't consume a number - the next non-empty line gets the next sequential number, so the count reflects real content lines only.
From preparing legal documents to formatting code snippets for tutorials, this technical utility makes it easy to add gutter numbers to any text. Bookmark this Add Line Numbers tool for a fast, browser-side solution to all your line numbering needs.