HandyBench

Add Prefix / Suffix to Lines

Add text to the start and end of every line.

How to use the Add Prefix / Suffix to Lines

  1. 1 Paste your list, one item per line.
  2. 2 Type the prefix to add at the start and the suffix to add at the end of each line.
  3. 3 Choose whether to skip blank lines, then copy the result.

Examples

  • Wrapping each value in quotes and adding a trailing comma for code.
  • Turning a list into HTML <li> items.

Frequently asked questions

Can I use it to build a SQL "IN" list or array?

Yes. Set the prefix to a single quote and the suffix to ',' (quote-comma) to turn a plain list into quoted, comma-separated values.

Does it touch empty lines?

By default blank lines are left untouched. Turn off "Skip empty lines" if you want the prefix and suffix added to them too.