How to add or remove prefix and suffix
- Choose a mode — Add to prepend/append text to every line, or Remove to strip matching text from the start or end of lines.
- Enter your prefix and/or suffix in the toolbar fields. You can fill one or both — they are applied simultaneously.
- Paste your text. Changes appear instantly. Toggle Skip blank lines to leave empty lines untouched.
- Copy the output using the copy button at the top of the output panel.
Common uses
Convert plain lines into a markdown list
Add "- " as a prefix to turn a plain list into a valid markdown bullet list in one click.
Add quotes around every line
Add '"' as both prefix and suffix to wrap every line in double quotes — handy for SQL IN clauses or JSON arrays.
Strip list markers
Remove "- " or "• " prefix to clean up bullet lists copied from documents into plain text.
Add line terminators
Add ";" as a suffix to turn a block of SQL column names into valid statements, or add "," for JSON values.
Wrap lines in HTML tags
Add "<li>" as prefix and "</li>" as suffix to convert a plain list into HTML list items.
Remove file extensions
In Remove mode, add ".txt" or ".csv" as suffix to strip file extensions from a list of filenames.
Add vs. Remove mode
Add mode always modifies every non-blank line, regardless of what it already contains. The prefix or suffix is appended unconditionally — useful for bulk-applying a consistent format.
Remove mode only modifies lines that actually start with the given prefix or end with the given suffix. Lines that don't match pass through untouched. The Unchanged stat in the counter shows you exactly how many lines were not affected — useful for spotting inconsistencies in your data.
Related tools: Remove Empty Lines to clean up blank lines first, Alphabetical Sorter to sort your list after editing, or Line Counter to verify line counts.