Find and replace text
Change a word, name or phrase everywhere in a piece of text in one go. Paste your text, type what to find and what to put in its place, and see the result straight away with a count of the changes. Add more find-and-replace pairs to make several changes at once, and use whole-word matching or regular expressions for more control. It works with Hindi and other languages too.
How to use the find and replace text
- Paste your text in the top box.
- Type what to find and what to replace it with. Leave the replacement empty to delete it.
- Click Add another to make more changes at the same time.
- Tick Match capital letters, Whole words only or Regular expressions if you need them.
- Copy or download the result.
How it works
Every match of your search is replaced at once, and the count shows how many changes were made. Pairs are applied from top to bottom, so a later pair works on the text that the earlier ones have already changed.
- Match capital letters: "Apple" won't match "apple".
- Whole words only: "cat" won't match inside "category". This works for any language's letters, not only English.
- Regular expressions: use patterns such as
\d+for any number or^for the start of a line. In the replacement,$1puts back the first captured group, and\nadds a new line.
Regular expression examples:
| Find | Replace | Does |
|---|---|---|
\s{2,} | (a space) | Turns runs of spaces into one |
(\w+)@(\w+) | $1 at $2 | Rewrites email-style text |
^ | - | Adds a dash to the start of every line |
To test patterns in more detail, try the regex tester.
Example
Text: "The cat sat on the category mat. Cat food."
Find cat, replace with dog:
- Normal: "The dog sat on the dogegory mat. dog food." (3 changes)
- With Whole words only: "The dog sat on the category mat. dog food." (2 changes)
- With Whole words and Match capital letters: "The dog sat on the category mat. Cat food." (1 change)
Frequently asked questions
How do I replace a word everywhere in my text?
Paste the text, type the word in Find and the new word in Replace with. Every match is changed at once, and the tool shows how many changes it made.
How do I delete a word from my text?
Type the word in Find and leave Replace with empty. Every match is removed.
Can I make several replacements at once?
Yes. Click Add another find and replace for each extra pair. They are applied in order from top to bottom.
Does it work with Hindi?
Yes. Find and replace works with any language, and whole-word matching understands Hindi and other scripts.
Last updated: 29 October 2026