Delete blank lines in a file using Notepad++

To delete blank lines in a text file or programming language file, you can use the Notepad++ Text Editor for a quick and efficient solution.

Note: You need to download a plugin called TextFX for Notepad++.

Features of this Plugin:

  • Text sorting
  • Text rewrap
  • Column Lineup
  • Fill Text Down
  • Interactive Brace Matching
  • Quote handling
  • Character case alternation
  • Insert counter text down
  • Text to code conversion
  • Ascii Chart
  • Leading whitespace repair
  • Autoclose HTML & braces
  • Numeric Conversion
  • URI & HTML encoding
  • HTML to text conversion
  • Submit text to W3C

Plugin Homepage: http://textfx.no-ip.com/textfx/

To download the plugin, go to Menu -> Plugins -> Plugin Manager -> Show Plugin Manager. Under the Available tab, look for TextFX, check the checkbox next to it, and install it. After installation, Notepad++ will restart, and you should see TextFX in the Menu Options.

Steps to delete blank lines
  1. Open the file using Notepad++.
  2. Select the text from which you want to remove the blank lines (select all if you want to remove blank lines from the entire file).
  3. Go to Menu -> TextFX -> TextFX Edit -> Delete Blank Lines.
  4. All blank lines will be removed!
Delete-blank-lines-notepad++
Delete-blank-lines-notepad++

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!