Number Lines
Prefix every text line with its line number.
Your workspace
Processed in your browserThis tool iterates through your input text, prefixing every line with its corresponding sequential number. It is useful for creating ordered lists or referencing specific lines in a document.
How to number lines
- Enter or paste your text into the input area.
- The tool immediately generates a numbered version of your text, which you can copy for your document or project.
Handling blank lines
The tool assigns a number to every line, including empty lines. This behavior ensures that the line count remains consistent with the original structure of your text, making it easier to track positions in long documents or code blocks.
Example usage
Item A Item B
1. Item A 2. 3. Item B
Questions about line numbering
Are empty lines included in the numbering?
Yes, every line is assigned a number, including empty ones, to preserve the exact line count of your input.
Can I use this to reorder my list?
This tool only adds numbers; it does not sort or reorder your content. If you need to sort lines, use a dedicated sorting tool first.
Continue your workflow
Explore more tools in this category for your next step.