Add Line Numbers
Add line numbers to text with customisable separator, start number, and zero-padding.
Separator
How to use Add Line Numbers
-
Paste your text
Paste or type the text you want to number into the input box.
-
Choose a separator
Select from dot (1. ), colon (1: ), tab, or pipe (1 | ) to control the formatting between the number and the line content.
-
Set options
Change the start number if the list continues from a previous block. Enable zero-padding to align numbers into a consistent-width column.
-
Copy the result
Numbered text appears instantly in the output box. Click Copy to send it to your clipboard.
Add Line Numbers FAQ
What separators are available?
What does zero-padding do?
Can I start numbering from a number other than 1?
Does it handle empty lines?
Is my text uploaded or stored?
Background
The Kordu Add Line Numbers tool prepends a number to every line in your text. Choose from four separator styles: dot (1. ), colon (1: ), tab (1→), or pipe (1 | ). Set the starting number to any value — useful when numbering a section that continues from a previous block. Enable zero-padding to align numbers to a consistent width so lists stay visually neat.
Common uses: numbering code snippets for documentation and screenshots, adding reference numbers to interview questions or quiz answers, numbering log lines for debugging references, and creating ordered lists from unordered text.
All processing runs client-side in your browser. Your text is never uploaded, stored, or transmitted to any server.
Related tools
Remove Empty Lines
Remove blank lines from text, or collapse multiple blank lines into one. Free online tool.
Sort Lines
Sort lines alphabetically, by length, numerically, or randomly. Optionally remove duplicates.
Remove Duplicate Lines
Remove duplicate lines from text instantly. Keeps first occurrence, case-sensitive or insensitive.
Word Counter
Count words, characters, sentences, and paragraphs with reading time, speaking time, and keyword density.
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, and more — instantly.