Find and replace text
Every occurrence at once, counted, without leaving the page.
- replaced
- 0
Output
Paste or type above to see the result here.
Your files stay on your device
This tool runs entirely in your browser. What you paste is processed on your device and is never sent to a server, so it is safe to use with tokens, keys and unpublished text.
How it works
- Paste the text.
- Type what to find and what to put in its place. The result and the number of replacements update as you type.
- Turn on whole words to stop “cat” matching inside “catalogue”, or ignore case to catch Cat and CAT as well.
- Turn on regular expressions for patterns — then $1, $2 in the replacement stand for the groups you captured.
- Copy the result, or download it as a text file.
Frequently asked questions
- Is my text uploaded?
- No. It is replaced in this page, as you type. Paste a contract or an export from an internal system without thinking twice.
- Does the search treat dots and brackets specially?
- Not unless you ask it to. A plain search is plain text, so searching for a.b finds “a.b” and not “axb”. Tick the regular expression box when you want . [ ] ( ) + * ? to mean what they mean in a pattern.
- How do I use groups in the replacement?
- With regular expressions on, put brackets round the parts you want to keep and refer to them as $1, $2 and so on. Turning 2026-09-17 into 17/09/2026 is (\d{4})-(\d{2})-(\d{2}) replaced with $3/$2/$1.
- Can I delete something instead of replacing it?
- Leave the replacement empty. Every match is removed, and the count tells you how many there were — which is the quickest way to check a pattern matched what you meant before you rely on it.
- What does “whole words only” count as a word?
- A run of letters, digits and underscores, with a boundary on each side. It works as expected for English and for most European languages; for Japanese and Chinese, which are written without spaces, there are no word boundaries to find, so leave it off.
Related tools
• Case Converter Switch between UPPER, lower, Title, Sentence, camel, Pascal, snake and kebab case in one click. • Remove Duplicate Lines Paste a list and keep only the first occurrence of each line, in the order you pasted it. • Sort Lines Put a list in alphabetical, natural, length or random order without leaving the page. • Word Counter Live word, character, sentence and paragraph counts for essays, posts, ads and anything with a length limit.