Web Analytics

 Remove Lines Ending with Certain Text

Use this free online tool to remove lines that end with specific text. Enter a word, phrase, or suffix, paste or upload your text, and remove every matching line. Choose case-sensitive or case-insensitive matching, then copy or download the result. Your text is processed locally in your browser.

⚙️ Filter options

Remove Lines Ending with Certain Text

Use this online tool to remove every line in your text that ends with a word, phrase, or other suffix you specify. It is useful for filtering logs, lists, exported data, and code without affecting lines that contain the same text earlier in the line.


⭐ What Does This Tool Do?

  • Checks the end of each line for your chosen text
  • Removes lines that end with that text and keeps the others
  • Offers case-sensitive and case-insensitive matching
  • Lets you paste text or open a plain text file, then copy or download the result

⚙️ How to Remove Lines by Suffix

  1. Enter the exact text that the unwanted lines end with.
  2. Paste your content or open a .txt file.
  3. Choose case-sensitive matching if uppercase and lowercase should be treated differently.
  4. Select Remove Lines to see the filtered text.

🔎 Example: Remove Lines Ending with a Word

Ending text: .tmp

Input:

report.csv
backup.tmp
notes.txt
cache.tmp

Output:

report.csv
notes.txt

⚠️ Ends With, Not Contains

The tool only removes a line when the selected text is at the very end of that line. For example, the suffix .tmp does not remove backup.tmp (old), because the line ends with (old).


⭐ Useful for Text Files, Logs, and Lists

Remove lines by suffix to filter file extensions, discard rows with a known ending label, clean lists, or remove selected trailing markers. Matching is literal text, not a regular expression. The original order of the remaining lines is preserved.


🔒 Private Browser Processing

Text filtering happens locally in your browser. The content you paste or load is not uploaded to a server.


This tool is also known as

  • remove lines ending with a word
  • delete lines ending in text
  • filter lines by ending text
  • remove rows with a specific suffix
  • delete text lines by suffix

Frequently Asked Questions

Enter the ending text, paste or open your text, and select Remove Lines. The tool removes lines whose final characters match the text you entered.

No. A line is removed only when it ends with the chosen text. Text appearing earlier in a line is left untouched.

Yes. Enter a word, phrase, file extension, symbol, or other literal text to use as the ending suffix.

Matching is case-insensitive by default. Turn on Case-sensitive match to distinguish uppercase and lowercase characters.

Yes. Enter an extension such as .tmp or .bak to remove lines whose final characters match that extension.

No. The ending text is treated literally, so characters such as a period or asterisk are not interpreted as regular-expression operators.

Yes. Open a plain .txt file using the file input, then enter an ending text and remove the matching lines.

Use Copy to place the result on your clipboard or Download .txt to save it as a text file.

Yes. Lines that do not end with the selected text remain in their original order.

No. The tool processes pasted and loaded text in your browser, and does not upload it to a server.

Our text tools