How to remove Extra Spaces in Notepad++

If the text in your file has more than one space between words and you want to remove them then you can try to make use of the Find and Replace option in Notepad++

Step by Step

  1. Open the file in Notepad++ (or copy the text in a tab)
  2. Now press the keys: Control + H to open replace window.
  3. Add in Find what: \s
  4. Add a single space in Replace with:
  5. Make sure that Search Mode is Regular Expression.
  6. Click on Replace All
Replace extra spaces with single space example Notepad++

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail:

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap