Add Line Numbers
Add line numbers to any text. Customize the starting number, separator, and padding for numbered lists and code.
About This Free Online Add Line Numbers
Our free online line numbering tool adds numbers to each line of your text. Customize the starting number, choose a separator (dot, colon, parenthesis, or custom), and set padding width for aligned numbers. Perfect for referencing lines in code, creating numbered lists, preparing documents for review, or formatting data for export.
Features of Our Add Line Numbers
- Adds line numbers to every line of text
- Customizable starting number (default 1)
- Multiple separator options: dot, colon, parenthesis, custom
- Padding control for aligned numbering
- Instant results as you type or paste
- Copy numbered text to clipboard
- 100% private — browser-only processing
How to Use the Add Line Numbers
Using this tool is simple and requires no signup or registration. Follow these steps:
- Paste or type your text into the input area — each line will be numbered.
- Set the starting number, separator style, and padding as desired.
- View the numbered output instantly below.
- Click Copy to save the numbered text to your clipboard.
Frequently Asked Questions About Add Line Numbers
What is padding?
Padding adds leading zeros to line numbers so they align vertically. For example, with padding of 3, numbers display as 001, 002, ..., 010 instead of 1, 2, ..., 10. This keeps columns aligned for a clean appearance.
Can I use a custom separator?
Yes. Choose from dot (1.), colon (1:), parenthesis (1)), or enter any custom separator like " | " or " > ".
Does this work with empty lines?
Yes. Every line in your text is numbered, including empty lines. If you want to skip empty lines, use the Remove Empty Lines tool first.
Why Choose Text Toolbox?
Text Toolbox provides free, private, and instant online text tools. Unlike other text utility websites that require signup accounts or send your data to servers, all our tools process your text entirely in your browser. This means your content never leaves your device — we cannot see it, store it, or share it. Our tools are fast, lightweight, and work on any device with a modern web browser.