Add line numbers to any text
Prepend sequential line numbers to text, code snippets, or lists with custom separators and padding.
About This Tool
Line Numberer makes it easy to reference specific lines in documentation, code reviews, or raw text files.
Key Features
Custom starting number
Zero-padding for visual alignment
Custom separator choices (. , : |)
Option to skip empty lines
Real-time preview
How to Use This Tool
- Paste text into the input box.
- Customize the starting number, padding style, and separator (e.g., dot, colon).
- Copy the numbered text.
Why Use This Tool
- Great for sharing code snippets that need line referencing.
- Useful for numbering long lists of names or items.
- Fully customizable and works locally in the browser.
Pro Tips
- Use zero-padding to keep the text aligned vertically
- Use a pipe (|) separator when numbering code snippets
- Skip empty lines when numbering a list of disjointed paragraphs
Frequently Asked Questions
What is zero-padding?
Zero-padding adds leading zeros to numbers so they all align perfectly (e.g., 01, 02... 10).
Can I skip empty lines?
Yes, you can choose whether empty lines increment the counter or are skipped.