About the Find and Replace tool
Changing a name, price, date or phrase everywhere in a long text by hand is slow and it is easy to miss one. This find and replace tool highlights every match in your text, tells you how many there are and replaces them all at once, or only the first one if you prefer. It works on any text you paste, from emails and articles to CSV data and code.
For simple jobs, type the word to find and its replacement. Turn on Case sensitive to match capitalisation exactly, or Whole words only so that “cat” does not match “category”. For advanced jobs, switch on Regular expression to use patterns such as \d+ for numbers, with $1 and $2 in the replacement to reuse captured groups. Zero-length patterns work too: ^ and $ match the start and end of every line, so replacing ^ with “- ” turns each line into a bullet point. If the pattern is invalid, the tool shows the error instead of breaking.
The result preview updates as you type. Click “Apply replacement” to write the change into the text box so you can run several replacements in a row, then copy or download the result. Your text is processed only in your browser.
How to use Find and Replace
- Paste your text into the “Text” box, or click “Sample” to try it.
- Type what to look for in “Find” and the new text in “Replace with” (leave it empty to delete matches).
- Set the options: Regular expression, Case sensitive, Whole words only, and Replace all or Replace first only.
- Check the highlighted matches and the match count, then review the Result preview.
- Click “Apply replacement” to update your text, then “Copy” or “.txt” to save it.
Features
Live match highlighting
Every match is highlighted in your text with a running count.
Regular expression support
Use JavaScript regex patterns, $1-style group references and zero-length anchors such as ^ and $ to add text at line starts or ends.
Case and whole-word options
Match exact capitalisation and avoid partial-word matches.
Replace all or first
Change every occurrence or only the first one.
Chain multiple edits
Apply a replacement to the text and immediately run another.
When to use it
- Update a product name or price throughout a long description.
- Replace a client’s name in a reused proposal or contract template.
- Reformat dates or phone numbers in bulk with a regex pattern.
- Delete tracking parameters or unwanted words from a list of URLs.
- Change commas to tabs or semicolons in CSV data.
Frequently asked questions
How do I use regular expressions?
Turn on “Regular expression” and type a pattern like \d{4} in Find. In Replace with, use $1, $2 and so on to insert captured groups. Patterns follow JavaScript syntax, and ^ and $ match the start and end of each line.
How do I add text to the start or end of every line?
Turn on “Regular expression”, type ^ in Find (or $ for the end of each line) and your prefix or suffix in Replace with. Each line start is counted as a match and marked with a thin yellow bar in the highlighted view.
What does “Whole words only” do?
It only matches the search term when it stands alone as a word, so searching for “art” will not match “start” or “artist”.
Can I delete every occurrence of a word?
Yes. Leave “Replace with” empty and click “Apply replacement”.
Is a “$” in my replacement treated specially?
Only in regular expression mode, where $1 refers to a group. In plain text mode, the replacement is inserted exactly as typed.
Is there an undo?
Yes. The Result preview lets you check a change before applying it, and the “Undo” button restores the text as it was before each applied replacement.