How to Find and Replace Text Online (Free, Regex)
Fixing the same word a hundred times by hand is the kind of busywork computers were built to kill. Whether you are correcting a misspelled name, swapping a term across a document, or reformatting data, find and replace does it in one click. This guide shows you how to find and replace text with the free Find and Replace tool, including match-case and full regular-expression support and a live count of how many replacements were made. It runs in your browser, so your text stays private.
What find and replace does
Find and replace scans your text for every instance of a search term and swaps it for a replacement, all at once. Instead of hunting through paragraphs, you describe what to find and what to put in its place, and the tool updates the entire document.
The Find and Replace tool supports two power features. Match case makes the search respect capitalization, so Cat and cat are treated as different. Regular expressions (regex) let you match patterns rather than fixed text, such as any number, any email, or text between two markers, which unlocks complex edits that plain search cannot do.
How to use the Find and Replace tool
Follow these steps:
- Open the Find and Replace tool and paste your text.
- Type the word or phrase to find in the Find box.
- Type what it should become in the Replace box (leave it empty to delete the matches).
- Optionally turn on match case to respect capitalization.
- Optionally turn on regex to match patterns instead of exact text.
- Apply the replacement. The result and a live count of replacements appear instantly.
- Click Copy to use the edited text.
Before and after: an example
Imagine a draft that uses the wrong product name throughout:
| Find | Replace | Result |
|---|---|---|
| Acme | Apex | Every Acme becomes Apex |
Paste a paragraph that mentions Acme five times, type Acme in Find and Apex in Replace, and the tool reports 5 replacements and shows the corrected text. For a regex example, searching for the pattern matching multiple spaces and replacing it with a single space cleans up uneven spacing across the whole document in one pass.
Common uses for find and replace
Bulk replacement saves time everywhere:
- Renaming: swap a person, product, or brand name across a document.
- Formatting: convert commas to new lines, collapse extra spaces, or standardize punctuation.
- Data cleanup: strip prefixes, fix delimiters, or normalize inconsistent text.
- Code and config: rename a variable or path throughout a file.
- Removing text: delete unwanted phrases by replacing them with nothing.
Pair it with Sort Text Lines to reorganize after editing, or Remove Duplicate Lines to tidy lists.
Tips and common mistakes
Replace carefully:
- Watch for partial matches. Searching for cat also matches category and concatenate. Use regex word boundaries, or include surrounding spaces, to target whole words.
- Use match case to avoid surprises. Without it, replacing US could also catch the us in business.
- Test regex before trusting it. Patterns are powerful but easy to overreach. Check the replacement count to confirm it matched what you expected.
- Empty replace deletes. Leaving the Replace box blank removes every match, which is great for stripping text but easy to do by accident.
- Keep the original. Copy your source text somewhere before a big regex replace, in case you need to redo it.
Your text stays in your browser
The Find and Replace tool runs entirely in your browser. Your document is never uploaded to a server and nothing is stored, so confidential drafts, internal data, and private code stay on your own device. There is no account and no tracking of what you paste. When you have finished editing, explore the other free text tools or the full text category for sorting, counting, and cleaning that all work the same private way.
Try the tool from this guide
Find and Replace Text
Bulk find & replace, with regex.
Open Find and Replace TextFrequently asked questions
Is the find and replace tool free?
Yes. It is completely free with no sign-up and no limits. Paste your text and replace as much as you like.
Is my text private?
Yes. All find-and-replace work happens locally in your browser. Your text is never uploaded or stored, so it stays on your device.
Does it support regular expressions?
Yes. Turn on the regex option to match patterns such as numbers, emails, or repeated spaces, which lets you do far more than plain text replacement.
How do I replace whole words only?
Use regex with word boundaries, or include the surrounding spaces in your search term, so that searching for cat does not also change category or concatenate.
How do I delete text instead of replacing it?
Type the text to remove in the Find box and leave the Replace box empty. Every match is then deleted.
Share this article
Send it to a teammate or save the link for later.
