Build your AI Agent and let it work for your business 24/7 →

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

Rule 12 matches
Rule 22 matches

Rules run from top to bottom. Match counts after the first rule are counted on the text the earlier rules produce.

Match 1 of 2
Hi {name}, thanks for commenting on our post! Here is your discount code: SPRING10. The code SPRING10 works until 31/05/2026. Reply to this message with any questions, {name}.

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-$1 to 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

  1. Step 1

    Paste your text

    Paste the text you want to edit. It stays in your browser the whole time.

  2. 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.

  3. 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

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.