Add Line Numbers to Your Text
Add sequential line numbers to each line in your input text. Perfect for code snippets, logs, transcripts, or documentation.
How It Works
Paste your text, customize your numbering options, and click "Number Lines" to get your formatted result.
Frequently Asked Questions
Can I control how the numbers are formatted?
Yes! You can choose how many digits are padded (e.g., 01, 001) and select from common delimiters like colon, dot, dash, or tab.
How does line number padding work?
You can choose a minimum padding (e.g., 2 for 01
, 3 for 001
). However, if
your input has thousands of lines, the tool will automatically increase the padding to fit the
highest line number. For example, even if you choose 2-digit padding, 1000 lines will be numbered as
0001
through 1000
to maintain alignment.
Are empty lines numbered?
Yes, every line gets a number, even if it's empty. You can trim or remove those lines beforehand with our other tools.
Does this upload my text?
Nope. Your text stays in your browser—nothing is uploaded.
What’s this good for?
This is helpful for numbering lists, code snippets, logs, and any document where you want to clearly reference line numbers.