Add prefix and suffix to lines
This tool adds the same text to the start and end of every line, and can number the lines too. People use it to make bullet lists, wrap values in quotes, build simple code lines or number steps.
- Runs in your browser
- Free, no account needed
- Copy or download the result
Result
The short answer
To prefix or suffix lines, add the same text before and after the content of each line, and optionally a running number. With the default prefix of "- " you get a bullet list, and blank lines can be skipped so they stay blank and unnumbered.
Worked exampleThe sample list of apples, bananas, a blank line and cherries with the prefix "- " becomes "- apples", "- bananas", a blank line and "- cherries".
Example
apples bananas cherries
- apples - bananas - cherries
How to use the add prefix and suffix to lines
- Paste your lines into the One item per line box.
- Type a Prefix and a Suffix, or leave either blank.
- Choose a Numbering style, a Start number and whether to skip blank lines.
- The result updates as you type. Press Copy result.
How it works
Each line becomes number, then prefix, then the line, then suffix. The prefix and suffix are used exactly as typed, including spaces.
Numbering can look like 1., 1), [1] or a plain 1, and can start at any whole number, including 0 or a negative number.
With Skip blank lines on, blank lines stay blank and do not use up a number.
You need a prefix, a suffix or a numbering style. Prefix and suffix are limited to 1,000 characters each.
Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.
Questions and answers
How do I add quotes around every line?
Type a quote mark in both Prefix and Suffix. Add a comma after the closing quote in Suffix if you need a list for code.
Can I number lines starting from a number other than 1?
Yes. Pick a Numbering style and enter any whole number in Start number.
How do I make a bullet list from lines?
Put a dash and a space, or another bullet character, in Prefix. The list updates as you type.
Last updated November 1, 2026. Maintained by SnowRock. How our tools work
All 220 SnowRock tools