Number Lines
Add line numbers to your text with custom formatting options. Free and easy to use.
Input Text
Numbered Output
Why use our Number Lines Tool?
Custom Start Number
Begin numbering at any integer — 0, 1, 100, or any offset you need.
Flexible Separator
Use periods, parentheses, colons, or any custom separator after the number.
Skip Empty Lines
Optionally number only non-empty lines while preserving blank line positions.
What is a Line Numbering Tool?
A line numbering tool prepends sequential numbers to each line in a text block. Developers use it for code snippets, documentation, and diff references. Writers use it for scripts, legal documents, and ordered lists that need explicit line numbers.
Our free online number lines tool lets you set the starting number, choose a custom separator, and optionally skip empty lines. Paste your text, apply numbering, and copy or download the result instantly in your browser.
Numbering Options
- Start number:Set any starting integer — default is 1 but 0 or custom offsets work.
- Custom separator:Use . , ), :, -, or any string between the number and line text.
- All lines:Number every line including blank ones.
- Non-empty only:Number only lines with content; blank lines stay unnumbered.
- Live statistics:Track characters, words, and line counts for input and output.
- Copy & download:Export numbered text to clipboard or a plain .txt file.
Common Use Cases
Code Documentation
Add line numbers to code snippets for tutorials and technical docs.
Script Formatting
Number dialogue lines in screenplays and stage scripts.
Legal Documents
Add line numbers to contracts and filings for reference.
Bug Reports
Number log excerpts so reviewers can reference specific lines.
Exam Questions
Number test questions and answer choices sequentially.
Meeting Agendas
Add numbered items to agenda lists for easy reference.
How to Number Lines
Paste Your Text
Enter text with one item per line into the input area.
Set Start Number & Separator
Choose the starting number and separator string (default: 1 and '. ').
Choose Numbering Mode
Number all lines or only non-empty lines.
Copy or Download
Copy the numbered text or download it as a plain text file.
Benefits of Line Numbering
Precise References
Let readers cite specific lines in documents and code.
Custom Formatting
Match any numbering style with flexible separators.
Skip Blanks Option
Keep paragraph spacing while numbering only content lines.
Any Start Offset
Begin at 0, 1, or any number for continued sequences.
Private Processing
Your documents never leave your browser.
Completely Free
Number unlimited lines with no signup or usage caps.
Line Numbering Tips
- •One item per line: Each line gets its own number — use newlines to separate items.
- •Custom separators: Try ') ' for '1) item' or ': ' for '1: item' formatting.
- •Continue sequences: Set start number to continue numbering from a previous block.
- •Non-empty preserves blanks: Blank lines stay in place but receive no number.
- •Pair with add prefix/suffix: Add numbering then wrap lines in HTML or markdown tags.
- •Remove numbers later: Use find-and-replace to strip numbers if you need the original back.
Number Your Lines Now
Whether you are documenting code, formatting scripts, or preparing legal text, our free number lines tool adds sequential numbering with custom separators instantly in your browser.
Scroll up, paste your text, set your options, and apply. No registration required, completely free, and your text stays 100% private on Quick Note.
Related tools
Frequently Asked Questions
How do I number lines in text?
Paste your text with one item per line, set the start number and separator, then click Number All Lines or Number Non-Empty Only.
Can I start numbering from 0 or another number?
Yes. Set any starting integer in the start number field — 0, 1, 100, or any value you need.
What separators can I use?
Any string works — default is '. ' but you can use ') ', ': ', '- ', or custom text.
What is the non-empty lines option?
This mode numbers only lines with content. Blank lines are preserved in their original positions without numbers.
Does numbering change the line content?
No. Only a number and separator are prepended — the original text on each line stays the same.
Is my text uploaded to a server?
No. All processing happens entirely in your browser. Your text is never sent to any server.
Can I download the numbered text?
Yes. Click Download to save the numbered text as a plain .txt file.
Is the number lines tool free?
Yes. It is completely free to use with no registration, downloads, or hidden fees.