Line Formatting Tools

Remove Suffix from Lines

Delete a repeated suffix from the end of each line.

PrivateYour text is processed on your device and never uploaded.
Input
Result
0 chars · 0 words · 0 lines

Trailing markers at the end of every line are just as awkward to strip by hand as leading ones.

Remove Suffix from Lines deletes a suffix string from the end of each line that has it.

How to use Remove Suffix from Lines

  1. Paste the lines whose endings you want trimmed into the input box.
  2. Type the suffix to remove, and Remove Suffix from Lines deletes it from the end of matching lines.
  3. Copy the suffix-free lines, or download them as a .txt file.

Use cases

Good to know

Remove Suffix from Lines checks each line and, if it ends with the exact suffix you enter, removes that suffix. Lines that do not end with it are left unchanged, and the match is exact including any spaces.

Frequently asked questions

Is the suffix match exact?

Yes. A line must end with the exact text you enter, spaces included, for the suffix to be removed.

Does it affect lines that lack the suffix?

No. Only lines ending with the suffix are changed; the others are left as they are.

How is this different from removing a prefix?

This removes matching text from the end of each line, whereas a prefix removal targets the start.

Related Line Formatting Tools