toolbin_

Add a Prefix and Suffix to Each Line Online

Add a prefix and/or suffix to each line of a text, right in your browser.

🔒 100% client-side — no data sent

This tool automatically adds a prefix and/or suffix to the start and end of every line in your text. Perfect for preparing lists, code, or SQL queries without opening an advanced editor. Everything runs 100% in your browser: no data is ever sent to a server.

What is it for?

  • Wrap each line in quotes to build a list of strings
  • Append a comma to each line for an array or SQL query
  • Prefix lines with a dash to generate a Markdown list
  • Turn a word list into HTML tags using a prefix and suffix

FAQ

How do I add text to the beginning of each line?

Paste your text into the field, enter the desired string in the prefix box, and the result is applied instantly to every line.

Can I add a prefix and a suffix at the same time?

Yes, fill in both fields and each line will be wrapped with the prefix at the start and the suffix at the end at once.

Are empty lines modified?

By default the tool processes every line of the text; you can remove empty lines beforehand if you don't want the prefix or suffix applied to them.