Add line numbers

Paste text and every line gets a number. Pick the start value and separator, such as "1. " or "001 | ".

Examples

SeparatorPaddingResult
". "off1. Preheat the oven
") "off1) Preheat the oven
" | "on (10+ lines)01 | Preheat the oven
"\t"off1    Preheat the oven

Zero padding uses as many digits as the last line number needs, so 100 lines are numbered 001–100 and stay aligned.

Frequently asked questions

Can I start from 0?
Yes, set "Start at" to 0 or any other whole number.
How do I remove line numbers?
Use Find and replace with regular expressions: find ^\d+[.)]?\s* and replace with nothing.