Text

Prefix / Suffix Line Wrapper

Input

Set prefix/suffix and wrap each line in the text block.

Prefix
+
Suffix

Each line becomes: prefix + line + suffix.

Result

Frequently Asked Questions

What is a prefix/suffix line wrapper used for?
It adds a fixed string before (prefix) and/or after (suffix) every line. Common uses: wrapping SQL values ('value1', 'value2'), adding HTML tags around lines (<li>item</li>), prefixing log entries with timestamps, or building command-line argument lists.
Does it modify blank lines?
By default, blank lines are also wrapped. Enable 'skip blank lines' to leave them unchanged. This is useful when your input has paragraph breaks that should not receive the wrapping treatment.
Can I add quotes around each line?
Yes. Set prefix to ' and suffix to ', or prefix to " and suffix to ". Combined with a comma suffix, this quickly turns a plain list into a JavaScript/Python string array: 'apple', 'banana', 'cherry'.