Is it possible to view the word count for a selected text in Notepad++?

I'm been able to view the current number of selected characters and lines in the bottom status bar.

Status Bar word count

I'm able to view the total number of words in my document by opening View → Summary.

Word Summary

Unfortunately, neither option lets me view the word count for my currently selected text.


This can be achieved with the TextFX plugin for Notepad++.

  1. Install the plugin by clicking Plugins -> Plugin Manager -> Show Plugin Manager
  2. Check TextFX Characters in the list of available plugins and click Install (Notepad++ will need to restart to finish the installation)
  3. After installation finishes, you can view the word count for the selected text by going to the TextFX menu, selecting TextFX Tools and finally Word Count:

TextFX Screenshot

  • 1
    You don't need TextFX for this :) – DavidPostill Jul 6 '17 at 20:10
  • 7
    It seems that TextFX is not there anymore. – skan May 13 '18 at 19:54

In Notepad++ you can get the words count in two ways

  1. In menu, View => summary
  2. In status bar, Double click on the length: <some_number>, line : <some_number> then you can see words count in a pop up windows

enter image description here

  • 2
    This shows the word count of the whole document. He asked for the word count of the selected text – Mo Prog Jun 22 '18 at 17:39
  • 1
    @MoProg : kindly see the last line of the dialog. it shows how many chars are selected – Sasikumar Murugesan Jul 6 '18 at 3:04
  • 3
    But as you say, it is the number of chars, not the number of words. He is asking for the number of words in the selected text. – Mo Prog Jul 6 '18 at 7:27

Is it possible to view the word count for a selected text?

  • Menu "Search" > "Mark".

  • Set "Find what" to \<\w+\>.

  • Enable "In selection".

  • Click "Mark All".

  • The bottom of the dialog will update with "Mark: n matches.

  • Click "Clear all marks" to remove the marks.


enter image description here

  • 2
    Even better, there is a specific count button now – Baldrickk Apr 6 '18 at 11:12
  • 1. Search mode: Regular expression, 2. \< and \> are not required – MarianD Aug 25 '19 at 12:51
  • @MarianD {shrug} my answer works. If you have a better answer please write your own answer. – DavidPostill Aug 25 '19 at 12:56
  • @David, I didn't want to offend you, you answer is nice, I upvoted it before I wrote my comment. IMHO the setting of Search mode is important enough to be explicitly stated in your answer. – MarianD Aug 25 '19 at 13:07

Fastest solution (2 seconds) is:

  1. mark the word or expression you want to count it occurence in your document by double klick 2.go to menue search -> incremental search you will see right next to the search box the amount of matches Screenshot


  1. mark the word
  2. Ctrl + Alt +I
  • 2
    OP asks for counting all the words within a selection, not a secific word.You are counting the number of occurrences of a single word. – Toto Mar 8 at 17:16

Do a simple Find and Replace with the exact same phrase. The Find dialog box will tell how many replacements there would be.

  • I don’t understand what you mean. Can you explain a little more clearly? … … … … … … … … Please do not respond in comments; edit your answer to make it clearer and more complete. – Scott Mar 30 '19 at 23:39

If you click on a word in your document, then bring up the Find dialogue, there is a button right there on that dialogue labeled Count.

  • 1
    OP asks for counting all the words within a selection, not a secific word.You are counting the number occurrences of one word. – Toto Aug 24 '19 at 9:32

Have you tried the TextFX plugin? You can download it from SourceForge: https://sourceforge.net/projects/npp-plugins/files/TextFX/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.