Find and Replace Text
Find and replace words, phrases or patterns in any text. Match case, whole words and regex are supported, and you can run several replacements in a row.
- 100% free
- No sign-up
- Runs in your browser
175 characters · 30 words · 4 lines
Rules run from top to bottom. Match counts after the first rule are counted on the text the earlier rules produce.
Highlighting matches for Rule 1. Click another rule to see its matches.
Bulk edits without a text editor
Find and replace is the quickest way to update a template, fix a repeated typo or rename a product across a long document. This tool works on any text you paste, on any device, without installing an editor, and shows every match before you change anything.
Useful patterns
- Fill in a template: find
{name}and replace it with a name, then add rules for other placeholders. - Swap a discount code or link in every saved reply when an offer changes.
- Reformat dates with regex: find
(\d{2})/(\d{2})/(\d{4})and replace with$3-$2-$1to turn 31/05/2026 into 2026-05-31. - Remove things: leave Replace empty to delete every match, for example
[ \t]+$with Regex on to strip spaces at the end of every line.
Regex notes
Patterns use JavaScript syntax with the Unicode flag, so \p{L} matches any letter in any language. ^ and $ match at the start and end of each line, and \n matches a line break, so you can join or split lines. Patterns that match nothing (such as x* between letters) are skipped.
How it works
How to use it
- Step 1
Paste your text
Paste the text you want to edit. It stays in your browser the whole time.
- Step 2
Add find and replace rules
Type what to find and what to put instead. Turn on match case, whole word or regex if you need them, and add more rules to run in order.
- Step 3
Replace and copy
Step through matches one by one or replace them all at once, undo if needed, then copy or download the result.
FAQs
Frequently asked questions
Answers to common questions about the Find and Replace Text.
Match case only finds text with the same capital letters, so Sale doesn't match sale. Whole word only finds the text when it isn't part of a longer word, so cat matches cat but not catalog or concat. Both can be combined, and both work with regex too.
Tick Regex and type a JavaScript regular expression in the Find box, without slashes. For example \d+ finds numbers, ^[ \t]+ finds spaces at the start of each line and https?://\S+ finds links. In the Replace box, $1, $2 insert capture groups, $<name> inserts a named group, $& inserts the whole match and \n inserts a line break. If the pattern isn't valid, the tool explains what's wrong instead of failing.
Yes. Add a rule for each replacement. Rules run from top to bottom, and each one works on the result of the previous one, so you can build up a clean-up routine, such as fixing names, then dates, then spacing, and run it with one click.
Click a rule to make it active. Its matches are highlighted in the Matches view, and the current one is marked. Use Previous and Next to move between them, and Replace this to change only the current match. Replace all runs every rule on the whole text.
Yes. Every Replace this and Replace all can be undone, up to the last 20 steps. The result preview always shows what Replace all would produce before you apply it.
Text of several megabytes works. Up to 200,000 matches are counted per rule, and the highlighted view shows a window of matches around the current one so the page stays fast. Replace all always changes every match.
No. Finding and replacing runs in your browser. Nothing is sent to a server or saved.
More free tools
Try another tool
- CheckerTone CheckerCheck how formal, positive and confident your writing sounds, sentence by sentence.Use for free
- ComparisonText Similarity CheckerCompare two texts, see a similarity score and highlight the passages they share.Use for free
- SummarizerText SummarizerPull the most important sentences out of an article, email or report.Use for free
- ConverterCase ConverterChange text to uppercase, lowercase, title case, sentence case and more.Use for free
- CounterWord CounterCount words, sentences and paragraphs, with reading time and keyword density.Use for free
- ComparisonDiff CheckerCompare two versions of text and see every word that was added or removed.Use for free
Templates that send themselves
Hypello sends your DM templates automatically when someone comments a keyword, replies to a story or messages you. Start free with 1,000 DMs a month.