tool hub Tool Hub

Text Replacer

Text Replacer — runs in your browser. Inputs are not stored.

Runs in your browser No sign-up Free to use


Find/replace text

Enter values, then press Calculate.

How to use

  1. Paste sentences, code, or a log into Original text.
  2. Enter Find and Replace with. An empty replace-with deletes matching spans.
  3. Turn on Use regular expression if you need pattern substitution. Off compares the string as-is.
  4. Press Replace to fill the result box plus replacement count and result character count.
  5. An invalid regex shows an error in the result box. Reset clears every field and the checkbox.
  6. The original stays; only the result changes. For chained replaces, paste the result back into original.

Key concepts

Find and replace is for changing the same fragment in a document, log, or code in one pass. Plain mode splits on the find string and joins with the replace string, substituting every non-overlapping match. It is case-sensitive and treats regex metacharacters as ordinary characters, so it is safer when changing paths that contain dots or parentheses. An empty find leaves the original and count 0.

Regex mode attaches only the global flag g to JavaScript RegExp. There is no checkbox for dot-matches-newline (s) or ignore-case (i); put character classes or [\s\S] in the pattern yourself if needed. In replace-with you can refer to captures as $1. Invalid patterns show as an error in the result box, and input is not sent to a server.

Example

Original apple, apple pie, find apple, replace pear → count 2, result pear, pear pie. Turn regex on, find \d+, leave replace empty, and all digits drop and the character count shrinks. Check count and result length so you did not change more than intended.

Related: List sorter · Case converter · Character counter

Frequently asked questions

Does find and replace change every match?

Yes. Both plain and regex modes find globally then replace all. There is no first-only option, so always check the count.

How do newlines work in regex find and replace?

You can put a real newline in Find or use <code>\n</code> in the pattern. Plain mode compares the typed characters as-is and does not interpret metacharacters.

What if Find is empty?

Replacement count 0 and the original is the result. Empty patterns are blocked so they cannot insert infinitely between characters.

Can I replace case-insensitively?

There is no dedicated checkbox. Use something like <code>[Aa]</code> in regex, or unify case with the case converter first then replace.

What if I see a regex error message?

Parentheses or brackets may be unclosed, or an escape may be invalid. The result box shows the browser RegExp error as-is.

Is find-and-replace content saved on a server?

No. Original, find, and result are all handled only in this tab and are not uploaded.

Text Replacer cover image
Your input is not sent to the server and disappears when you close the page.

Last reviewed: 2026-09-04