Add line numbers to text

Line numbers

How to add line numbers to text?

Do you have a large array of items that you want to number, but you don't have time and nerves to do it manually? If so We can help you with that.

This tool can easily number lines from your text, just copy & paste your items to the left textarea and see the result on the right side.

How to change format of line numbers?

Line number tool can be customized for your needs. Once you pasted your text, you are free to change any settings located above textareas on the fly. The result will be recreated each time you change some settings or left textarea where your original text lies. Let's look on some customastion that are possible.

On the top of Add line numbers to text box, bellow the heading you can find settings that are possible to change, We tried to figure out the default convention for you, but you are free to customize any settings.

Changing line number position

You can easily change number position by clicking on first setting "Number position". There are two possible options, one to draw line number before the line start (on the left side of line), or on the end of the line (on right side).

Changing starting number

You are free to customize starting number by changing value of "Starting number" input, if you need to start from zero simply change value from default 1 to 0. If you need to set specific offset, for example start from 200, just change the desired starting value.

Adding something before number

If you want to add some custom characters before the number (no matter if is in start or the end of line), you can fill in "Add before number" input. For example, if you want to add three dashes in front of line number, just add --- followed by space to the input. This will generate desired output "--- 1. Lorem ipsum dolor a si met".

Adding something after number

If you are not okay with dot after the line number, you are free to customize this value in "Add after number" box, you can simply change dot for something else, or not include any character after line number.

Not count empty lines

If your input contains empty lines, without values, which you don't want to count you can turn on this checkbox. Checkbox is turned on by default, because many people need this use case. But if you want to include empty lines number you are free to turn off this setting.

If you need to remove empty lines from your text we have tools for that. try our empty lines remover tool.

Removing space between line number and line

By default, we add empty space "1. lorem" between 1. and "lorem" line, you can turn this off by clicking on "Space between number and text" checkbox.

Working with line number results

Once you do your converstion to line numbers you can simply click on "Copy result" button located bellow right textarea. this will copy your result to clipboard, making it easy to drop them where you need to.

Word and lines counter

Not sure how many lines and words are used? Try our word counter tool for counting it.

Did this tool help you?

We did this tool available to anyone for free. If we helped you don't forget to spread it to the world.

Share onFacebookShare onTwitterShare onLinkedin