Add Line Numbers Online
Add line numbers to every line of your text.
What is Add Line Numbers?
Adds a line number prefix to every line of your text. Configurable start number, number-text separator (tab, period, colon), and optional zero-padding for alignment.
Common Use Cases
Preparing text for code review, referencing specific lines in documents, creating numbered lists, preparing scripts and screenplays, and formatting log files for sharing.
How It Works
Splits text by newline, prepends an incrementing number to each line with the chosen separator, and optionally zero-pads numbers for consistent alignment.
Frequently Asked Questions
Can I start numbering from a number other than 1?
Yes. Set any starting number — useful when appending to an already-numbered document.
Can I remove line numbers too?
Use the Find and Replace tool with a regex like /^\d+[.:\t]\s*/ to strip existing line numbers.
Related Tools
Sort Lines Alphabetically
Sort any list of lines alphabetically — A–Z or Z–A.
Line Counter
Count total lines including blank and non-blank lines.
Text Repeater
Repeat any text or character N times with a custom separator.
Find and Replace
Find text and replace it — with optional regex support.