Line Prefix & Numbering
Add a prefix, suffix or line numbers to every line.
How to use
- 1 Paste your lines into the box.
- 2 Enter a prefix and/or suffix to wrap each line.
- 3 Turn on numbering and pick a start value and padding if you want.
- 4 Copy the reformatted output.
About Line Prefix & Numbering
Line Prefix & Numbering wraps every line of your text with the prefix and suffix you choose, and can prepend sequential line numbers in front.
Add a "- " prefix to turn a plain list into Markdown bullets, wrap each line in quotes and a trailing comma to build a code array, or number a set of steps automatically.
The line numbers start wherever you like — handy when you are continuing a list — and can be zero-padded so they all share the same width and stay neatly aligned in a monospace view.
These small reformatting jobs come up constantly: quoting values for SQL, prefixing log lines, building config from a pasted list, or numbering instructions for a README.
Doing it by hand is slow and easy to get wrong on line fifty; a one-off script is overkill.
This tool applies the same transformation to every line in one pass and shows the result live, so you can tweak the prefix, suffix, start number or padding and watch the output reshape immediately.
Everything runs in your browser, so nothing you paste is uploaded, and you can copy the finished block straight back into your editor.
FAQ
Can I start numbering from a value other than 1?
Yes — set any start value, which is useful when continuing a list that began elsewhere.
What does zero-padding do?
It pads each number with leading zeros to a common width so 1, 2 … 10 align as 01, 02 … 10.