Home / Free software / Notepad++

Developer · Free & open source

Notepad++

Edit plain text and source code with tabs, syntax highlighting and search tools in a free Windows editor.

Desktop platforms: Windows. Check the publisher for current OS versions and hardware requirements.

What can you do with Notepad++?

Edit plain text and source code with tabs, syntax highlighting and search tools in a free Windows editor.

  • Edit code and plain-text files in tabs
  • Search and replace across open documents
  • Use syntax highlighting for many file types

How to install Notepad++

  1. Open the official publisher page using the button on this page.
  2. Choose the installer that matches your operating system and processor where the publisher offers more than one option.
  3. Review the current requirements and complete the publisher's normal installation steps. Avoid third-party download mirrors.
  4. Launch the application and test a small, non-critical file before starting important work.

Remove trailing spaces without changing indentation

Suppose a plain text export has extra spaces after item names. A global replacement of spaces would also damage names like Desk lamp and remove indentation. Target only spaces and tabs at the end of a line.

  1. Open a copy of the file. Press Ctrl + H to open Replace. Select Regular expression and turn on Wrap around to include the whole active document.
  2. Set Find what to [ \t]+$ and leave Replace with empty. The brackets match a space or tab; $ restricts the match to the end of a line.
  3. Use Find Next and inspect a match first. Then use Replace All in the current document and save the cleaned copy. Avoid the option that replaces matches in all open documents.

Example: ··Desk·lamp·· becomes ··Desk·lamp. The dots represent spaces for illustration. The leading indentation and space inside the name stay intact.

When to stop or choose another tool

  • Nothing matches: Check that Regular expression is selected. This pattern removes ordinary spaces and tabs; it does not remove nonbreaking spaces.
  • Blank lines remain: The pattern removes trailing characters, not line breaks. A line containing only spaces becomes an empty line.
  • Whitespace carries meaning: Skip blanket cleanup for fixed-width exports, Markdown hard breaks, or multiline strings where trailing spaces are deliberate. If your actual problem is invalid JSON, use the JSON troubleshooting guide instead.

Reference: Notepad++ manual: search and replace.

Before you choose

Notepad++ is a Windows text editor, not a word processor. It does not provide page layout like an office suite, and installers should come only from its official website.

GetFree4U does not host, bundle or modify installers. Keep original files and review the result before replacing anything important.

Download questions

Does this page download a file directly?

No. The download button opens the official publisher website so you can select the current installer.

Which release should I choose?

Choose the stable release offered for your system unless you have a specific reason to test a preview build. Check compatibility on the official page.

USE IN YOUR BROWSER

Useful online tools

Finish a quick task without installing another application.