Line Numbering
Free online tool to add or remove line numbers from text. Customize number format, starting number, and separator. Supports prefix and suffix.
About Line Numbering Tool
Add or remove line numbers from your text with this simple tool. Perfect for code snippets, poetry, legal documents, or any text that needs line references.
Customize the numbering format with options for starting number, separator characters, prefix/suffix text, and whether to skip empty lines. The tool preserves your original text formatting while adding or removing line numbers.
How to add line numbers?
1. Paste or type your text in the input box
2. Select 'Add Line Numbers' mode
3. Customize options (starting number, separator, etc.)
4. Click 'Process' to add numbers
5. Copy the numbered text from the output
How to remove line numbers?
Paste text with line numbers in the input box, select 'Remove Line Numbers' mode, and click 'Process'. The tool will automatically detect and remove common numbering formats like '1. ', '1) ', '1: ', etc.
What are Prefix and Suffix?
Prefix is text added before the line number (e.g., 'Line '), and Suffix is text added after the number (e.g., ':'). Example with prefix 'L' and suffix ':' → 'L1: Your text here'
What does 'Skip Empty Lines' do?
When enabled, empty lines won't be numbered and won't increment the counter. This is useful for code or poetry where blank lines are formatting elements.
Can I customize the separator?
Yes! You can use any separator like '. ', ') ', ': ', ' - ', or custom text. The default is '. ' (period and space).