Remove Suffix from Lines
Delete a repeated suffix from the end of each line.
Remove Suffix from Lines is a browser-based text tool on TextToolsBase. Delete a repeated suffix from the end of each line. To use it, paste or type your text and view the result directly in your browser — no signup and nothing to install.
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
- Paste the lines whose endings you want trimmed into the input box.
- Type the suffix to remove, and Remove Suffix from Lines deletes it from the end of matching lines.
- Copy the suffix-free lines, or download them as a .txt file.
Use cases
- Removing a trailing comma from each value.
- Stripping a repeated ending tag from every line.
- Deleting a unit appended to each measurement.
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.