Add Prefix or Suffix to Text
Add text before (prefix) and/or after (suffix) each line. Perfect for formatting lists, preparing data, or batch text processing.
Input Text
Output Text
Removes spaces from the start and end of each line.
Example:
" hello " → "hello"
Example:
" hello " → "hello"
Replaces multiple consecutive spaces with a single space.
Example:
"hello world" → "hello world"
Example:
"hello world" → "hello world"
Examples
- Add quotes: Set prefix to " and suffix to "
- Create HTML list: Set prefix to <li> and suffix to </li>
- Add line numbers: Set prefix to a number and a dot (e.g., "1. ")
- Comment code: Set prefix to // for JavaScript or # for Python
- Create CSV: Add commas or other delimiters before/after values