Online Add Line Numbers
Add line numbers to text. Each line is prefixed with its number (1, 2, 3...) with configurable separator and padding.
Frequently Asked Questions
- What format are the line numbers?
- You can choose the separator (e.g. space, colon, tab) and whether to right-align numbers with padding (e.g. 1 vs 10) for alignment.
- Does it work with empty lines?
- Yes. Empty lines are still counted and get a number so the output stays in sync with the original line count.
- Why use line numbers?
- To reference specific lines in code, logs, or documents, or to paste numbered text into reports or tickets.
Related Text Tools
Word Counter
Count words, characters, sentences, and paragraphs. Perfect for writers and students.
Case Converter
Convert text between uppercase, lowercase, title case, and sentence case instantly.
Morse Code Translator
Translate text to Morse code and Morse code to text. Supports letters, numbers, and punctuation.
Lorem Ipsum Generator
Generate placeholder text for designs and mockups. Choose paragraphs, sentences, or words.
Diff Checker
Compare two texts side by side. Highlight differences between documents, code, or strings.
Character Counter
Count characters with and without spaces. Real-time counts for tweets, meta descriptions, and forms.