What is a find and replace tool?
Find and replace searches a text for a word, phrase or pattern and swaps every occurrence for something else. Writers use it to change a character's name throughout a manuscript, switch British to American spelling, or update a product name; developers use it to rename variables or reformat data.
This version works on pasted text without opening a word processor. It shows how many replacements were made, can match exact capitals or ignore them, can restrict matches to whole words, and supports full regular expressions with capture groups for structured changes such as reformatting dates or phone numbers.
How to use the Find and Replace Text
1.Paste your text
Anything from a paragraph to a long document or a block of code.
2.Enter what to find and its replacement
Leave the replacement empty to delete every match. Type \n for a line break.
3.Fine-tune the match
Choose Match case or Whole words, or switch on regular expressions for patterns.
Example: British to American spelling
Finding colour and replacing it with color, case ignored, capitals kept:
- Input
- The colour of the sky changes colour at sunset. Colour is spelled color in US English.
- Replacements
- 3
- Sentence start
- Colour → Color
- Regex example
- 2026-11-13 → 13/11/2026 with $3/$2/$1
All three spellings change and the capital at the start of the second sentence is kept.
Replacements that keep their capitals
With Keep each match's capitals on, a replacement follows the case of the word it replaces: "Colour" at the start of a sentence becomes "Color", and "COLOUR" becomes "COLOR". Switch it off to insert the replacement exactly as typed.
Whole words only stops "cat" from also matching "category". In regular expression mode the find box is a JavaScript pattern, and the replacement can use $1, $2 for captured groups and $& for the whole match, which makes it easy to reorder dates or wrap values.
Frequently asked questions
How do I delete a word everywhere?
Type it in Find and leave Replace with empty. Every match is removed.
Can I replace with a new line?
Yes. Type \n in the Replace with box for a line break and \t for a tab.
How do I swap the parts of a date?
Turn on regular expressions, find (\d{4})-(\d{2})-(\d{2}) and replace with $3/$2/$1.
Why are there no replacements?
Check Match case and Whole words only, which narrow the search, and with regex on make sure special characters like . and ( are escaped.
Related tools
Text Cleaner
Remove extra spaces, blank lines, invisible characters and curly quotes.
Regex Tester
Test JavaScript regular expressions with live highlighting, groups and replace.
Case Converter
UPPER, lower, Title, Sentence, camelCase, snake_case and more.
Word Counter
Words, characters, sentences, paragraphs and reading time.
Character Counter
Characters against X, Instagram, SMS and SEO limits.
Remove Duplicate Lines
Delete repeated lines from a list and keep the first of each.
More Utilities tools
Dates & time
Percent & price
Unit converters
Text tools
Generators
Share & collaborate
Maths
- Ratio calculator
- Average calculator
- Weighted average calculator
- Standard deviation calculator
- Percentile calculator
- Fraction calculator
- GCD and LCM calculator
- Prime number checker
- Quadratic equation solver
- Golden ratio calculator
- Roman numeral converter
- Number to words
- Number base converter
- Scientific calculator
- Factorial calculator
- Exponent calculator
- Logarithm calculator
- Modulo calculator