How to add a prefix and suffix to each line
- Paste your lines into Input.
- Type the text to add at the start (Prefix) and end (Suffix) of each line.
- Copy the result.
Common uses
- Quote a list of values for a SQL
IN (…)clause or a code array. - Add bullets like
-or•to turn lines into a list. - Build URLs or file paths by adding a shared beginning and ending, such as
https://example.com/and.html. - Wrap lines in HTML tags such as
<li>and</li>.
Tips
- Mind the last line. When you add a comma after every line for a list or array, the final line ends with a comma too. Many languages accept it; for SQL, delete the last one by hand.
- Spaces count. A prefix of “- “ (a dash and a space) gives a clean bullet list; without the space the dash sticks to the text.
- Combine with other line tools. Remove duplicate lines or sort the list first, then add the prefix and suffix, so the finished list is clean.