Find and replace
Find and replace words or patterns in any text, and see how many changes were made. Match case, whole words, or use regular expressions.
Your files stay on your device. Nothing is uploaded.
Step 1: Type or paste your text
Step 2: Options
Step 3: Copy or download
How to find and replace text
-
Paste your text
Paste the text into the first box.
-
Type what to find and the replacement
Leave the replacement empty to delete what you find. Choose match case, whole words only, or regular expression.
-
Copy the result
The result and the number of replacements update as you type. Copy it or download a .txt file.
About this tool
Whole words only
Replacing "cat" changes "category" too. With Whole words only, only the word cat on its own is changed. It works for every alphabet, including Urdu and Arabic.
Regular expressions
Tick Regular expression for patterns: \d+ matches numbers, \s+ runs of spaces. Use $1, $2 in the replacement for groups: find (\d+)-(\d+)-(\d+) and replace with $3/$2/$1 to turn 2026-11-29 into 29/11/2026.
Handy everyday fixes
Turn commas into line breaks, remove double spaces, change a product name everywhere, or delete a word in a long document.
Privacy
This tool runs in your browser, on your own device. Your files and text are not uploaded to our server and we cannot see them. When you close or reload this tab, they are cleared, along with the results.
Frequently asked questions
How do I put a line break in the replacement?
Tick Regular expression and use \n in the find box to match line breaks. To add breaks, find ", " and replace with a line break you paste into the box.
What if my regular expression is wrong?
The page says what is wrong instead of changing anything.
Is my text uploaded?
No. The text stays in your browser and is never sent anywhere.
Is capital letters matching on by default?
No. Finding "apple" also finds "Apple" unless you tick Match capital letters.
Related tools
- Dedupe Remove duplicate lines Delete repeated lines from a list, keeping the first copy.
- A › Z Sort lines Sort lines alphabetically, by number, by length or shuffle them.
- Diff Text compare Compare two texts and see what was added or removed.
- Aa › AA Case converter Change text to upper, lower, title or sentence case.
- Words Word counter Count words, characters and sentences as you type.
- %20 URL encode and decode Percent-encode text for URLs, or decode it back.
- Characters Character counter Count characters with and without spaces.
- HTML › MD HTML to Markdown Turn HTML into clean Markdown as you type.