Add Prefix and Suffix - Append or Prepend Text to Lines

Add custom text to the beginning or end of each line in your text

Result:

💡 Tip: Enter one item per line in the text area. Use prefix and suffix to quickly format lists into HTML, add numbering, or wrap code elements. All processing happens locally in your browser.

How to Use This Tool

1

Enter Your Text

Paste or type your list into the text area, with each item on its own line.

2

Set Prefix and Suffix

Enter the text you want to add before (prefix) or after (suffix) each line in the input fields.

3

Apply and Copy

Click Add Prefix, Add Suffix, or Add Both. The transformed text appears instantly for copying.

Use Cases

HTML Lists

Add <li> prefix and </li> suffix to create HTML list items

Numbered Lists

Add sequential numbers or bullet points as prefixes

Code Formatting

Add quotes, brackets, or semicolons to lines of code

Data Formatting

Add delimiters or wrapper text around data entries