How to Add Line Numbers to Any Text (Paste and Copy)
Put a number in front of every line of your text, with a custom start and style. Useful for code, poems, contracts and references.

Numbered lines make long text easier to discuss. A lawyer can say "see line 14", a teacher can point to a line of a poem, and a developer can refer to a specific row in a snippet. Word processors can number lines, but copying plain text with numbers into an email or chat is awkward. This tool does it instantly.
Quick answer
Paste your text, choose the starting number and style, decide whether empty lines are skipped, and copy the result. Every line gets its number.
Options explained
- Start at. Begin at 1, or any number if you continue from another section.
- Style. Choose
1.,1),1:or a tab between the number and the text. - Skip empty lines. When ticked, blank lines are left without a number, so the numbering follows only the content.
Common uses
- Code reviews and bug reports where you quote line numbers.
- Poems, songs and speeches for study or rehearsal.
- Contracts and terms where clauses are referred to by line.
- Lists of references or steps that need a quick numbered format.
Step by step
- Paste the text into the input box.
- Pick the style and the starting number.
- Tick or untick skip empty lines.
- Copy the numbered result with one click.
Tips
- If you need to remove numbers later, use a Find and Replace tool with a pattern, or keep the original text.
- For code, prefer a tab or
:so the code stays aligned. - Very long text is fine; the work happens in your browser and nothing is sent anywhere.



