Find and Replace

Run one or more find and replace rules on text in your browser. Use plain text for simple changes or regular expressions when you need capture groups and pattern matching.

Runs in your browser. Your data is not uploaded.
Updated

Your text

Rules

Find & replace

Match preview

RuleMatches

Preview counts update as you edit the rules. Rules run top to bottom.

Result

Result will appear here
  1. Paste text, upload a file, or load a URL
  2. Add find and replace rules
  3. Apply rules, then copy or download

How to use the Find and Replace

  1. Paste or type the source text.
  2. Add one or more find and replace rules. Choose plain text or regex for each rule.
  3. Set options such as Match case or Whole word if you need them.
  4. Preview the matches, apply the rules, then copy or download the result.

How it works

Plain-text rules look for the exact text you enter. Regex rules use the browser's regular expression engine, so you can match patterns and reuse captured parts in the replacement with values such as $1 and $2.

Rules run in order from top to bottom. That matters, because one rule can change the text that the next rule sees. A preview highlights what each rule will match before the output is rewritten. Empty-string patterns are refused, because they would match everywhere and create unusable results.

Examples

  • Plain text: find colour and replace with color.
  • Regex: find (\w+),(\w+) and replace with $2 $1 to turn Doe,Jane into Jane Doe.
  • Whole-word replace changes cat in The cat slept but leaves catalog alone.

Limitations

  • Regex syntax follows the browser's JavaScript regex engine, so features from other regex flavors may not work here.
  • Rules are applied to plain text only. HTML is treated as text, not rendered markup.
  • Very broad regexes can still produce huge results, so patterns that match empty strings are blocked.
  • Inputs up to 10 MB are supported, with worker processing for large text.

Frequently asked questions

Can I use regular expressions?

Yes. Switch a rule to regex mode, then use normal JavaScript-style regular expressions and capture groups like $1 in the replacement.

What does whole word mean?

Whole word limits the match to standalone words, so replacing cat will not also change catalog.

Why did my second rule give a different result than I expected?

Rules run one after another. If the first rule changes the text, the second rule works on that changed version, not the original.

Is there a preview before the change is applied?

Yes. The page highlights matches first so you can check the rule before you keep the output.

Often used together with the Find and Replace.

  • Whitespace Remover

    Cleans text by trimming, collapsing, joining, or removing whitespace.

  • Regex TesterDeveloper Tools

    Highlights regex matches live, lists capture groups and offsets, and previews replacements.