How to use it
- Paste your list, one item per line.
- Type the prefix (start of line) and the suffix (end of line).
- Choose whether to skip empty lines.
- Copy or download the result.
How it works
Whatever you type in Prefix is added to the start of each line, and whatever you type in Suffix is added to the end. Either can be empty. Spaces count, so - (dash and space) gives a neat bullet.
With Skip empty lines on (the default), blank lines stay blank instead of getting a lonely prefix and suffix.
| Prefix | Suffix | Line | Result |
|---|---|---|---|
- | apple | - apple | |
' | ', | apple | 'apple', |
" | " | apple | "apple" |
<li> | </li> | apple | <li>apple</li> |
> | apple | > apple | |
https://example.com/ | apple | https://example.com/apple |
Everything runs in your browser, and the result can be copied or downloaded as a text file.
Ready-made recipes
SQL IN list. Prefix ', suffix ', turns a column of IDs into values you can paste into WHERE id IN ( … ). Remove the comma after the last value by hand.
JSON or JavaScript array. Prefix ", suffix ", gives quoted, comma-separated strings for an array.
Markdown or plain-text bullets. Prefix - or * . For numbered items, use add line numbers instead.
HTML list items or table cells. Prefix <li> and suffix </li>, or <td> and </td>.
Email or chat quotes. Prefix > marks every line as quoted text.
URLs from slugs or IDs. Prefix https://example.com/products/ turns a list of product slugs into full links.
Hashtags. Prefix # turns a word list into hashtags (make sure the words have no spaces; the slug generator can help).
Turning a list into one line
Adding a comma suffix still leaves one item per line. If you need everything on a single line, like apple, pear, plum, use the comma separator tool instead: it joins a list with any separator, can wrap items in quotes, and can add and before the last item.
Combining the two works well: add a prefix here (for example a currency symbol or a label), then join the lines with the comma separator.
Cleaning up first
Prefixes and suffixes are added to the line exactly as it is. If your lines have trailing spaces, the suffix appears after those spaces, which can break SQL or code. Run the list through remove extra spaces first to trim each line. To remove duplicate items before you wrap them, use remove duplicate lines.
To change something in the middle of each line rather than at its ends, use find and replace; with a regular expression such as ^ and $ you can also insert text at the very start or end of the whole text.
Spreadsheet alternative
In Excel or Google Sheets you could build the same thing with a formula such as ="'"&A1&"'," and fill it down. Pasting the column here is usually faster for a one-off job, and you don't need to clean up helper columns afterwards. Copy the column, paste it, add the prefix and suffix, copy the result back.
Frequently asked questions
How do I add a comma to the end of every line?
Leave Prefix empty, type a comma in Suffix, and copy the result.
How do I put quotes around each line?
Type a quote mark in both Prefix and Suffix: " and " for double quotes, or ' and ' for single quotes.
Are empty lines changed?
Not by default. “Skip empty lines” leaves blank lines untouched; turn it off to add the prefix and suffix to them too.
Can I add text only at the start of each line?
Yes. Fill in Prefix and leave Suffix empty.
Is my list uploaded?
No. The text is processed in your browser.
Last updated: November 12, 2026