How to remove duplicate lines in Notepad++

This tutorial will show you step by step how to remove duplicate lines in Notepad++.

You can delete identical lines from a text file (TXT) or remove duplicate lines from other files, such as HTML and XML files.

Notepad++ is a free text and source code editor for Windows 10 and 11.

You can download Notepad++ for free from the maker's website


1. Click on Edit located in the top menu of Notepad++.

2. In the drop-down menu, you move your mouse cursor (pointer) to Line Operations.

3. Click on Remove Duplicate Lines.

Remove duplicate lines in Notepad++

Edit > Line Operations > Remove Duplicate Lines.

That's it! The duplicate lines are now removed.



Notepad++ auto complete HTML tags (auto close HTML tags)