Literal or regular expression
Default literal mode treats the search term as plain text, so punctuation is matched exactly. Switch to regex for patterns, capture groups and $1 / $& replacement references.
Search and replace text with literal strings or regular expressions, live.
Loading tool…
The tool is loading its code on your device. This happens once and is cached for later visits.
Processed entirely on your device
Overview
Find and replace text online using literal strings or regular expressions. Match whole words, choose case sensitivity, and see how many replacements were made.
Find and replace is the workhorse of text editing: renaming a term across a document, fixing a repeated typo, reformatting a column of data, removing a stray character that appears a hundred times. Doing it by hand is slow and error-prone; doing it with a live count in front of you is fast and safe.
By default the search term is treated as plain text. Every character — including regex specials like ., *, ? and ( — is matched literally, so searching for “a.b” finds “a.b” and not “axb”. This is what you want most of the time and it means you never have to think about escaping.
Two refinements apply in literal mode:
Case sensitivity. Off by default, so “The” and “the” both match. Turn it on when the difference matters.
Whole word. Replacing “cat” with “dog” would otherwise turn “category” into “dogegory”. Whole-word matching constrains the hit to complete words.
Switching to regular expressions unlocks pattern matching. \d+ finds every run of digits, \s+ finds whitespace, ^\w finds the first letter of each word. Capturing groups let you rearrange what you match:
An invalid pattern — an unbalanced bracket, a stray quantifier — raises a clear message rather than silently returning your text unchanged, so a broken expression is obvious immediately.
The replacement count is the safety net. Before you copy the result, you can see whether a change hit three times or three hundred. That number is the difference between a confident edit and an unpleasant surprise, and it is why a browser tool that shows it live beats a blind global replace in a text editor.
Step by step
Paste the text you want to edit into the input pane.
Type what to find and what to replace it with.
Choose literal or regex mode, and set case sensitivity or whole-word matching.
Read the result and the replacement count, then copy or download it.
Why use it
What this tool is good for, and what it deliberately does not try to do.
Default literal mode treats the search term as plain text, so punctuation is matched exactly. Switch to regex for patterns, capture groups and $1 / $& replacement references.
Match complete words only so replacing “cat” does not touch “category”, and choose whether “The” and “the” are treated as the same.
Every match is replaced as you type and the number of replacements is shown, so you can confirm the scope of a change before you commit to it.
An invalid pattern surfaces a clear message in the tool rather than silently doing nothing, which saves the guesswork when a bracket or quantifier is wrong.
Questions
Short, honest answers about quality, limits and privacy.