▤ TEXT TOOLS Updated July 25, 2026

Add Line Numbers to Text

Number a list or code block without touching a spreadsheet.

Lines
Start at
Separator
Pad with zeros
Skip blank lines
Numbered lines
Ad space · belowTool · horizontal

How it works

Each non-blank line receives the next number in sequence, optionally zero-padded to the width of the largest number so everything stays aligned in monospaced output.

Frequently asked questions

Can I start from zero?

Yes. Set the start value to 0 or any other number, including negatives.

Will it renumber an existing list?

It prefixes new numbers; remove old ones first with the find-and-replace tool.

Comments

Comments aren't enabled yet. When you're ready, this is where a service like Giscus, Disqus, or a custom form would go — the slot is already reserved on every tool page.