How to use
Set the prefix and suffix
Choose Add or Remove and what to Apply to, then type the prefix and suffix, or click a template such as SQL ('value'), or HTML <li>. Either field can stay empty.
Paste your lines
Paste your list into Your lines, or press Try sample to load three product slugs with a blank line. The Result pane updates as you type.
Handle blanks and copy
Leave Skip empty lines ticked to pass blank lines through, and tick Trim if items have stray spaces. Add {n} for numbering, then press Copy or Download .txt.
Why Add Prefix and Suffix to Each Line
- Adds text to the start and end of every line, word or separated item.
- Templates for quotes, SQL values, HTML list items, Markdown and URLs.
- {n} inserts a running number from any start value.
- Remove mode strips a prefix or suffix, and blank rows can stay blank.
Examples: URLs, SQL values and quoted CSV
Each row shows the prefix and suffix used and what the sample line red-running-shoes becomes. Click the matching template to fill both fields at once, or type them yourself if no template fits. The {n} examples assume it is the first line. For lists that end up in code, check the last line: most SQL and JSON formats do not accept a comma after the final value.
| Goal | Prefix | Suffix | Result for red-running-shoes |
|---|---|---|---|
| Full URL | https://example.com/products/ | / | https://example.com/products/red-running-shoes/ |
| SQL VALUES row | (' | '), | ('red-running-shoes'), |
| SQL IN list item | ' | ', | 'red-running-shoes', |
| Quoted CSV value | " | ", | "red-running-shoes", |
| HTML list item | <li> | </li> | <li>red-running-shoes</li> |
| Markdown checklist | - [ ] | (none) | - [ ] red-running-shoes |
| Numbered list | {n}. | (none) | 1. red-running-shoes |
| Numbered file name | img-{n}- | .jpg | img-1-red-running-shoes.jpg |