Add Line Numbers
Add line numbers to any text or code online. Free online line number generator — customize format and starting number.
Three steps to get started
Paste your text
Paste any multi-line text — a list, code snippet, or document.
Numbers added
Each line gets a sequential number prepended in your chosen format.
Copy or download
Click Copy or download the numbered text as a .txt file.
Add line numbers to any text instantly
Line numbers are useful in many contexts: referencing specific lines in code reviews, creating numbered lists from plain text, adding sequence numbers to data rows before importing, or making documents easier to discuss and annotate.
Common use cases:
- Adding numbers to a list of items for reference
- Numbering code lines for documentation or screenshots
- Creating numbered step lists from bullet points
- Adding row numbers to CSV or TSV data
- Preparing text for discussion where line references matter
Three format options: standard "1. " (period), "1) " (parenthesis), and zero-padded "01" for lists that need consistent column alignment. All processing happens in your browser — private and instant.