Add the same text to the start or end of every line
Turn a pasted list into bullet items, quoted CSV values, or commented-out code in one pass.
Tools used in this guide
The job
You have a plain list — names, URLs, values — and the next step needs the same decoration on every line: a `- ` bullet, surrounding quotes, a `//` comment marker, a trailing comma. Repeating it by hand is where typos creep in.
How to do it
Paste the lines, type the prefix and/or suffix, and run it. Leave "skip blank lines" on so empty rows stay empty.
- Bullets: prefix `- `, no suffix.
- Quoted list items: prefix `"`, suffix `"`, then use a comma-joining tool if you also need `,` between items.
- Commenting out: prefix `//` or `#` depending on the language.
Worked example
Input `apple`, `banana`, `cherry` with prefix `"` and suffix `"`, produces `"apple"`, `"banana"`, `"cherry"`. The counter shows how many lines were changed so you can confirm blank lines were skipped.
Limits
The affix is added verbatim — include a trailing space yourself if you want `- item` rather than `-item`. It works on every line the same way; for adding running numbers, use the line numbers tool. Input up to 200,000 characters and 50,000 lines.