Find and Replace
Find and replace text in bulk. Whole word, match case, regular expressions with $1 groups, and many pairs at once.
How it works
Type what to find and what to replace it with, and the result updates as you type. Choose "Match case" and "Whole word" to be exact. Turn on "Use regular expression" for patterns, and then you can use $1, $2 (the text in brackets) and $& (the whole match) in the replacement.
To run several replacements in one go, use the box for many pairs: write one pair per line as find=>replace. The pairs are applied from top to bottom.
Worked example
Find (\d{2})/(\d{2})/(\d{4}) and replace with $3-$2-$1 (regex on) turns 25/12/2026 into 2026-12-25. Pairs "colour=>color" and "favour=>favor" in the pairs box fix British spellings in one go.
Good to know
- Regex special characters (. * + ? ( ) [ ] { } ^ $ | \) need a backslash in regex mode. Leave regex off to search for them literally.
- Whole word stops "cat" matching inside "category".
- The count shows how many replacements were made, so you can sanity check before copying.
Common questions
- How do I replace a new line?
- Turn on regex and find \n. Replace with a space or leave empty.
- How do I use $1?
- In regex mode wrap part of the pattern in brackets, then $1 is the first bracketed part.
- Why did nothing change?
- Check "Match case" and spacing. The count under the result tells you how many matches were found.
- Is it safe for large text?
- Yes. Everything is done in your browser.
More in Text.
Write a money amount in words for cheques and invoices, like "Rupees One Lakh Only".
OPEN →Bold Text GeneratorMake bold text you can paste into Instagram, WhatsApp, X and LinkedIn, and get the WhatsApp markup that works without special letters.
OPEN →Bubble Text GeneratorPut every letter and number inside a circle, a square or brackets, in white or black bubbles.
OPEN →