Updated
Using Add line numbers
Number each line with a starting value and a separator. Blank lines keep their place.
A worked example
The add line numbers changes "a\nb" becomes "1. a\n2. b".
Before you use the result
Line endings become standard newlines. A final newline is an empty final line.
Cite this page
ToolOctopus. “Add line numbers.” Updated 2026-09-19. https://tooloctopus.com/add-line-numbers.
Add an access date if your instructions require one.
Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. Licence and source code.
