Find and replace
Replace literal text or regular-expression matches throughout pasted text.
Bookmark this page
Keep this page handy for next time.
- On a computer
- Press Ctrl + D, or Command + D on a Mac.
- On a phone or tablet
- Open your browser's menu or Share menu and look for Add Bookmark, Bookmark or Add to favourites.
A bookmark saves the page link. Save any tool results separately.
How to use this tool
- Enter the text to find and its replacement.
- Literal mode treats punctuation as ordinary text. Regex mode supports replacement captures such as $1.
- Run to replace every match.
Things to know
- Processing happens on your device. Check the result before replacing your original data.
- Each text input accepts up to 5 MiB. Output is limited to 25 MiB and combined text settings to 1 MiB.
- Line-based modes accept up to 100,000 lines, including a trailing empty line.
- Output is limited to 25 MiB of UTF-8 text. Shorten the input, separators or replacement settings if it exceeds the limit.
- Find patterns are limited to 10,000 characters and replacement to 1,000,000 matches. Regex mode supports JavaScript dollar substitutions; literal mode preserves dollar signs.
You might also need
More in text & listsUnicode inspector and normalisation
Reveal code points, invisible characters and Unicode normalisation differences.
Prefix and suffix editor
Add or remove literal prefixes and suffixes on every line.
List comparer
Find shared, missing and combined items across two lists.
Pangram and letter-set solver
Find words made from a set of letters, with an optional required letter and a filter for words using the whole set.
Rhyming dictionary
Find words with matching sounds from the final stressed vowel, including alternate recorded pronunciations.
Word finder
Find words by known letter positions, length, starting letters, ending letters and excluded letters.
Text diff
Compare two texts and produce a readable unified line diff.
Bold, small and styled text generator
Make copyable bold, small, circled, strikethrough or upside-down text using Unicode characters.
Text repeater
Repeat text a chosen number of times, with line breaks, spaces or your own separator.