remove prefix suffix
you can entry to open tools search modal
Input Lines
Result
Tool Options

Remove Prefix and Suffix from Each Line - Line Prefix Suffix Remover

What is a line prefix suffix remover?

A line prefix suffix remover tool deletes specific text from the beginning and end of each line in a multi-line string. It helps clean up formatted lists, remove quotes, or strip tags from code or data.

How to use this remover tool

  • Paste your text with one item per line.
  • Enter the prefix you want to remove from the start of each line.
  • Enter the suffix you want to remove from the end of each line.
  • Copy or download the cleaned output.

Why use this tool?

  • Remove bullets, numbering, or quotes from lists.
  • Strip tags from HTML or XML snippets.
  • Clean up data exports for processing.
  • Revert changes made by a prefix/suffix adder.

Examples

Example 1: Remove bullets

- apple
- banana
- cherry

Output (prefix to remove: ’- ’)

apple
banana
cherry

Example 2: Remove quotes

"alpha"
"bravo"

Output (prefix to remove: '"', suffix to remove: '"')

alpha
bravo

Example 3: Remove HTML tags

<li>item1</li>
<li>item2</li>

Output (prefix to remove: '<li>', suffix to remove: '</li>')

item1
item2

FAQ

Q: What if a line doesn’t have the prefix/suffix?

The line remains unchanged. The tool only removes exact matches.

Q: Can I remove only a prefix or only a suffix?

Yes. Just leave the other field empty.

Q: Is this tool private?

Yes. Everything runs locally in your browser.