Find and Replace
Find and replace text patterns.
About this tool
Type the text to find and what to replace it with, paste your text, and press Run. Every match is replaced at once.
How to use
How it works
The search is literal, so characters like. * ( and ? are matched as typed rather than as regular-expression symbols. Matching is case-sensitive and finds text inside words as well. An empty Replace field deletes the matches. The replacement is literal too, so $ and & have no special meaning.
Worked example
Replacing cat with dog
- Input
- The cat sat. Cat naps. concat
- Output
- The dog sat. Cat naps. condog
- Walkthrough
- Lowercase cat is replaced everywhere it appears, including inside concat. Capital Cat is a different string and is left alone.
Limitations
- Case-sensitive, with no match-case or whole-word switch.
- No regular expressions.
- Always replaces every match; there is no replace-one mode.
- Needs a non-empty Find value.
Questions
How do I replace all occurrences of a word?
Is it case-sensitive?
Can I use regex?
Why did it change part of another word?
Features
- Literal search
- Replaces all matches
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Regular Expressions in 100 Seconds
Fireship
Fast regex refresher for text extraction patterns.
Watch on YouTubeLearn JSON - Full Crash Course
freeCodeCamp.org
Structured text formats often sit next to plain-text tools.
Watch on YouTube
- String
MDN
JS string methods that mirror case, trim, and split tools.
- UTF-8 and BOM
W3C
Encoding gotchas when cleaning pasted text.