Find and Replace Text in Notepad in Windows 10 - Windows 10 Help Forums (2025)

    Find and Replace Text in Notepad in Windows 10 - Windows 10 Help Forums (1)

    How to Find and Replace Text in Notepad in Windows 10
    Published by Shawn BrinkCategory:
    12 May 2021


    How to Find and Replace Text in Notepad in Windows 10

    Notepad is a simple text editor included in Windows and a basic text-editing program which enables computer users to create documents.

    You can search to find text in Notepad, and search to find and replace text in Notepad.

    Starting with Windows 10 build 17713, Microsoft made significant improvements to the find/replace experience in Notepad. Microsoft added the option to do wrap-around find/replace to the find dialog and Notepad will now remember previously entered values and the state of checkboxes and automatically populate them the next time you open the find dialog. Additionally, when you have text selected and open the find dialog it will automatically populate the search field with the selected text.

    This tutorial will show you how to find and replace text within a document in Notepad in Windows 10.

    Contents


    • Option One: To Find Text in Notepad
    • Option Two: To Replace Text in Notepad

    OPTION ONE

    To Find Text in Notepad


    1 While in Notepad, perform one of the following actions you want to search and find text: (see screenshots below)

    • Press the Ctrl + F keys.
    • Select (highlight) text you want to search and find, and press the Ctrl+F keys.
    • Click/tap on Edit on the menu bar, and click/tap on Find.

    2 Type what you want to find in the Find what field if it doesn't already have what you want.

    3 Check or uncheck the Match case box for what you want.

    4 Check or uncheck the Wrap around box for what you want.

    Wrap around is only available starting with Windows 10 build 17713.


    5 Select (dot) Up or Down for the Direction where the cursor is at within the text you want to find from.

    6 When you are ready to starting finding the text entered in step 2, perform one of the following actions you want:

    • Click/tap on the Find Next button.
    • Press the F3 key. If the Find dialog is currently open, then you will need to click/tap on the Find Next button at least once first.
    • Click/tap on Edit on the menu bar, and click/tap on Find Next. This option will not work if the Find dialog is currently open.

    7 Repeat step 6 to find all instances of the text entered in step 2, and/or click/tap on OK when it cannot find any other instances.

    Find and Replace Text in Notepad in Windows 10 - Windows 10 Help Forums (2) Find and Replace Text in Notepad in Windows 10 - Windows 10 Help Forums (3)

    OPTION TWO

    To Replace Text in Notepad


    1 While in Notepad, perform one of the following actions you want to search and find text to replace: (see screenshots below)

    • Press the Ctrl + H keys.
    • Select (highlight) text you want to search and find, and press the Ctrl + H keys.
    • Click/tap on Edit on the menu bar, and click/tap on Replace.

    2 Type what you want to find in the Find what field if it doesn't already have what you want.

    3 Type what you want to replace text with from step 2 in the Replace with field.

    4 Check or uncheck the Match case box for what you want.

    5 Check or uncheck the Wrap around box for what you want.

    Wrap around is only available starting with Windows 10 build 17713.


    6 When you are ready to start to find text entered in step 2, perform one of the following actions you want:

    • Click/tap on the Find Next button.
    • Press the F3 key. If the Replace dialog is currently open, then you will need to click/tap on the Find Next button at least once first.

    7 If you want to replace this specific text found with text entered in step 3, click/tap on the Replace button.

    You can click/tap on the Replace All button instead if you want to go ahead and automatically replace all found text from step 2 with text entered in step 3.


    8 Repeat step 6 and step 7 to find and replace all instances of text you want, and/or click/tap on OK when it cannot find any other instances.

    Find and Replace Text in Notepad in Windows 10 - Windows 10 Help Forums (4) Find and Replace Text in Notepad in Windows 10 - Windows 10 Help Forums (5)

    That's it,
    Shawn Brink

    Related Tutorials


    • How to Install and Uninstall Notepad in Windows 10
    • How to Enable or Disable Extended Line Endings in Notepad in Windows 10
    • How to Reset Default Open Position and Size of Notepad in Windows 10
    • How to Search with Bing from Notepad in Windows 10
    • How to Change Zoom Level of Text in Notepad in Windows 10




  1. Jeff S

    Posts : 5

    Windows 10 Professional

    New#1


    Hello Shawn -

    New member here Find and Replace Text in Notepad in Windows 10 - Windows 10 Help Forums (7)

    I read this post for the first time today

    For a year or more now I have noticed that when I go to "Find" in Notepad, it annoyingly will sometimes be on Direction "Up" instead of "Down" and in that whole year I have never gotten used to having to check that when my searches are not returning the expected results. I always figured that something had changed in Microsoft to make it start doing that, but I never could find where. Your post provides the first answer I've ever had for that. It's a "Feature" now. Oh, how I hate new "features" sometimes . . .

    I used Find in Notepad for over 10 years, where it is always "Down" and if I WANT "Up" I know where to go to get it!

    I have learned that I can delete registry keys and make it revert back to default, and I may have even found the key to edit to make it be "Down" on the next use.

    But I fear that because of this new "feature" functionality, that as soon as I finish a Find in the "up" direction, it's going to remember that and default back to "up" the next time, defeating the purpose of making the registry setting.

    Can you share any wisdom with me?

    Thank you for ANYTHING you can tell me!

    My Computer

    Quote

  2. New#2


    Jeff S said:

    Hello Shawn -

    New member here Find and Replace Text in Notepad in Windows 10 - Windows 10 Help Forums (10)

    I read this post for the first time today

    For a year or more now I have noticed that when I go to "Find" in Notepad, it annoyingly will sometimes be on Direction "Up" instead of "Down" and in that whole year I have never gotten used to having to check that when my searches are not returning the expected results. I always figured that something had changed in Microsoft to make it start doing that, but I never could find where. Your post provides the first answer I've ever had for that. It's a "Feature" now. Oh, how I hate new "features" sometimes . . .

    I used Find in Notepad for over 10 years, where it is always "Down" and if I WANT "Up" I know where to go to get it!

    I have learned that I can delete registry keys and make it revert back to default, and I may have even found the key to edit to make it be "Down" on the next use.

    But I fear that because of this new "feature" functionality, that as soon as I finish a Find in the "up" direction, it's going to remember that and default back to "up" the next time, defeating the purpose of making the registry setting.

    Can you share any wisdom with me?

    Thank you for ANYTHING you can tell me!

    Hello Jeff, and welcome to Ten Forums. Find and Replace Text in Notepad in Windows 10 - Windows 10 Help Forums (11)

    I'm not aware of a way to force "Up" or "Down" by default.

    My Computers

    Quote

  3. Berton

    Posts : 14,887

    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint

    New#3


    Current choices for Find in Notepad:
    Find and Replace Text in Notepad in Windows 10 - Windows 10 Help Forums (14)

    My Computers

    Quote

  4. Jeff S

    Posts : 5

    Windows 10 Professional

    New#4


    Brink said:

    Hello Jeff, and welcome to Ten Forums. Find and Replace Text in Notepad in Windows 10 - Windows 10 Help Forums (17)

    I'm not aware of a way to force "Up" or "Down" by default.

    Crap.

    And I'm betting that if there were a way, you would know it!

    Thank you Shawn for writing me back Find and Replace Text in Notepad in Windows 10 - Windows 10 Help Forums (18)

  5. Bree

    Posts : 35,104

    10 Home x64 (22H2) (10 Pro on 2nd pc)

    New#5


    One problem occurs when you want to find or 'replace with' the Tab character, something you may want to do to change a tab separated variable (.tsv) file into a comma separated variable (.csv) one (or vice versa). You cannot type a Tab into either of the boxes.

    Finding tabs is easy, you just select a tab before searching. Whatever you have selected is automatically entered in the 'Find what' box.....

    Find and Replace Text in Notepad in Windows 10 - Windows 10 Help Forums (21)

    Replacing with a tab can be more of a problem. The solution is to type a tab in Notepad, select and cut it, then paste it into the 'replace with' box.

    Find and Replace Text in Notepad in Windows 10 - Windows 10 Help Forums (22)

    My Computers

    Quote

  6. Try3

    Posts : 17,105

    Windows 10 Home x64 Version 22H2 Build 19045.5965

    New#6


    Jeff S said:

    For a year or more now I have noticed that when I go to "Find" in Notepad, it annoyingly will sometimes be on Direction "Up" instead of "Down" .. I always figured that something had changed in Microsoft to make it start doing that, but I never could find where. … But I fear that because of this new "feature" functionality, that as soon as I finish a Find in the "up" direction, it's going to remember that and default back to "up" the next time, defeating the purpose of making the registry setting.

    I have only ever seen Notepad start with Find/Replace set to Up if I had set it that way the last time I used it.

    Searching Down remains its default behaviour i.e. its behaviour unless it gets changed manually by the user.

    The "to edit to make it be "Down" on the next use" is
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Notepad
    Value

    Name fReverse
    Data 0 [by default, Find Down]
    Data 1 [Find Up]

    - This Registry key is rewritten every time Notepad closes so whatever state Find was in at last use will always be written to the Registry.
    - The Value fReverse is created the first time Find is set to Up manually. Before that, it does not exist.

    Denis

    My Computer

    Quote

  7. Try3

    Posts : 17,105

    Windows 10 Home x64 Version 22H2 Build 19045.5965

    New#7


    Bree said:

    One problem occurs when you want to find or 'replace with' the Tab character ...

    What an excellent little trick.

    Thanks,
    Denis

    My Computer

    Quote

  8. Jeff S

    Posts : 5

    Windows 10 Professional

    New#8


    Try3 said:

    I have only ever seen Notepad start with Find/Replace set to Up if I had set it that way the last time I used it.

    Searching Down remains its default behaviour i.e. its behaviour unless it gets changed manually by the user.

    Correct. And whenever I did a Find that I used Up on the last Find, then the next time I open the Find it is defaulting to Up. In other words, it is defaulting to Up if that was how I last used it.

    THAT is what's driving me NUTS!

    When go to do a Find I expect it to be in the Down position each time I open it, and breaks my train of thought when it doens't behave like I expect, and I have to stop what I'm doing and go reset it to Down. if I need Up I know where to get it! This comes from having used it that way for many many years (I said over 10 years, it's probably been over 20 years). I hate the change, and not being given a choice!

    Try3 said:

    The "to edit to make it be "Down" on the next use" is
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Notepad
    Value

    Name fReverse
    Data 0 [by default, Find Down]
    Data 1 [Find Up]

    - This Registry key is rewritten every time Notepad closes so whatever state Find was in at last use will always be written to the Registry.
    - The Value fReverse is created the first time Find is set to Up manually. Before that, it does not exist.

    Denis

    Thank you for giving me the correct key and settings. I suspected, but did not know for sure, and I appreciate your help there.

    Two things:

    #1, if I set the key that way, but then the next time I do a Find if it was in the Up direction, won't it re-write (or re-set) the registry key? Do you know a way to make that key be read-only, so it can't be changed?

    #2, if I do NOT close Notepad, but the last Find I did was Up, then the next time I open Find it is defaulting to Up even though I have not closed the Notepad. Is there any way I can make it stop doing that?

    My wife insists that this is an unimportant issue, and that all of the world will just adjust their workflow to use it the new way. But it's like Chinese water torture to me. I use Find in a very large Notepad file all day every day, and while I have had to get used to this extra step in my thought process, it STILL bugs the be-jeebers out of me EVERY TIME I have to do it . . . .

    Thank you again for acknowleding me and taking time to help me with this.

    My Computer

    Quote

  9. Try3

    Posts : 17,105

    Windows 10 Home x64 Version 22H2 Build 19045.5965

    New#9


    Jeff,

    #1 Yes. No.
    #2 No.

    I know Notepad in Windows XP & in Windows 10 Version 1709 always started with Find set to Down every time you used Find even during the same Notepad session & even if you had set it to Up the last time you used it.
    - I don't know when the change in behaviour took place.
    - You can extract the Notepad.exe from one of your old [Ver 1709 or earlier] system images and use that in your current version if the thing matters to you that much.

    By the way, I do not understand why you are doing so much work in Notepad. It is very limited in capability. Even the other built-in component [WordPad at "%ProgramFiles%\Windows NT\Accessories\wordpad.exe"] is more capable than Notepad and even the free versions of other word processors are.

    Denis

    Last edited by Try3; 16 May 2021 at 09:16.

    My Computer

    Quote

Find and Replace Text in Notepad in Windows 10 - Windows 10 Help Forums (2025)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Otha Schamberger

Last Updated:

Views: 6813

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Otha Schamberger

Birthday: 1999-08-15

Address: Suite 490 606 Hammes Ferry, Carterhaven, IL 62290

Phone: +8557035444877

Job: Forward IT Agent

Hobby: Fishing, Flying, Jewelry making, Digital arts, Sand art, Parkour, tabletop games

Introduction: My name is Otha Schamberger, I am a vast, good, healthy, cheerful, energetic, gorgeous, magnificent person who loves writing and wants to share my knowledge and understanding with you.