Add Prefix and Suffix

Add the same text to the start and/or end of every line. Quote a list, add bullets, wrap values in HTML tags or build SQL and code snippets.

Options

Processed in your browser. Nothing you type is uploaded.

How it works

Each line becomes prefix + original line + suffix. Nothing else changes: spaces inside lines and line order are preserved. By default empty lines are left alone, so you don’t get stray quotes or commas on blank lines.

Rules this tool follows

  • Prefix and suffix are inserted exactly as typed, including spaces.
  • To also remove whitespace from the lines themselves, run Trim Lines first.
  • Each field accepts up to 500 characters.

Example

Input

apple
banana

cherry

Output

'apple',
'banana',

'cherry',

Common uses

  • Turning a list into quoted, comma-separated values for code or SQL: 'value',
  • Wrapping lines in HTML: prefix <li>, suffix </li>.
  • Adding bullets, checkboxes (“- [ ] ”) or comment markers (“# ”).

Limitations and notes

  • The last line also gets the suffix; remove a trailing comma manually if your syntax does not allow it.
  • Special characters are not escaped. If a value contains quotes, check the result before using it as code.

All text cleaners