256 Tools

Find and Replace

0 match(es) replaced

Related external sites

Some links are affiliate links.

Related tools

Replace text in bulk — every occurrence at once. Use plain text or full regular expressions, ignore case, match whole words only, and see how many replacements were made. Everything runs in your browser; your text is never uploaded.

How to use

  1. Paste your text into the box.
  2. Enter what to find and what to replace it with.
  3. Toggle regex, ignore case or whole word, then copy the result.

How it works

In plain mode the search text is matched literally and the replacement is inserted as-is. In regex mode your pattern is used directly, so you can match flexible patterns and reference captured groups in the replacement with $1, $2 and $&. Whole-word matching wraps the pattern in word boundaries so it does not match inside longer words.

Every occurrence of foo is replaced with bar.foobar

Features

Plain or regex

Match literal text or use full regular expressions.

Ignore case

Match regardless of upper or lower case.

Whole word

Match only complete words, not parts of longer words.

Match count

See how many replacements were made.

Backreferences

Use $1, $2 and $& in the replacement to reuse captured groups.

When to use it

Bulk rename

Swap a term everywhere in a list or document at once.

Edit code or config

Replace identifiers or values across a snippet without an editor.

Consistent wording

Standardize terminology across a draft or article.

Clean data

Fix delimiters or stray characters in pasted data with regex.

Notes

  • In regex mode you can use $1, $2 and $& in the replacement.
  • Whole-word matching uses word boundaries (\b).
  • An invalid regular expression shows an error instead of replacing.
  • Everything runs on your device; nothing is uploaded.

FAQ

Can I use regular expressions?
Yes. Turn on Regex to use full JavaScript regular expressions, including character classes, quantifiers and groups.
What does $1 do?
In regex mode, $1, $2 and so on insert the text captured by the matching groups in your pattern; $& inserts the whole match.
What is whole-word matching?
It only replaces complete words. For example, replacing cat will change cat but not the cat inside category.
Can I undo a replacement?
Your original text stays in the input box, so you can adjust and re-run. The result is shown separately for you to copy.
Is my text sent to a server?
No. All find and replace happens locally in your browser.

We use cookies for ads and analytics.