Remove all Empty Lines Notepad++

27 April, 2019

What?

If you have thousands or maybe just hundreds of empty lines in a text document you have, you may want to know how to remove all of the empty lines without having to manually do it.

To be clear I have used this in Notepad++, I am not sure if it would work anywhere else. If you have thousands of empty lines and your current notepad program doesn’t have this feature, it is worth it to download Notepad++. To be fair Notepad++ is a great notepad program and I use it as my main one.

How?

  1. Press Ctrl+H To Replace

  2. Select Extended from SearchMode

  3. Put \r\n\r\n in Find What

  4. Put \r\n in ReplaceWith

  5. Click on Replace All