Remove Prefix/Suffix

Remove a string from the start and/or the end of every line when it is present.

  • Runs in your browser
  • Free to use
ctrl + enter

About this tool

This tool strips a known prefix and/or suffix from each line: protocol from URLs, a common path, a trailing slash or extension. Lines that do not carry the string stay as they are, and the number of removals is reported.

For positional trimming regardless of content, use Remove First/Last N Characters.


How to use it — quick steps

  1. 01

    Enter the lines

    Type or paste the lines in the field above, one item per line. Use Ctrl + V to paste from the clipboard.

  2. 02

    Press "Remove prefix/suffix"

    Press "Remove prefix/suffix" or Ctrl + Enter. The result appears instantly below the form.

  3. 03

    Read the result

    It appears in the dark panel under the form instantly. Every block has [copy] and other actions.


Key features of this tool

  • Nothing leaves your browser

    The processing is plain JavaScript that runs on your device: the text you paste is never uploaded to our servers or to anyone else.

  • Instant results

    Results appear the moment you press the button, even for long inputs, and every block has copy and download actions.

  • Works everywhere

    No installation, no account and no limits: the tool works on desktop and mobile, in any modern browser, as often as you like.


Frequently asked questions

What if a line does not start with the prefix?

It is left unchanged; only matching prefixes and suffixes are removed, once per line.

Is matching case-sensitive?

Yes.

Are my files or data uploaded?

No. The tool is plain JavaScript that runs in your browser; the files or data you provide here are never uploaded to our servers.


Popular tools


From APIVoid, the team behind IPVoid

Enhance your threat detection capabilities

APIVoid provides threat intelligence APIs to automate security workflows, with simple pricing and a 30-day free trial to start, no card required.

What you get with APIVoid

  • IP reputation and blacklist checks
  • Domain and URL reputation scoring
  • DNS lookups and propagation
  • SSL certificate and TLS details
  • Website screenshots and page info
  • Email address verification
  • 30+ cybersecurity APIs
30-day free trial