Find and Replace
Replace text across a whole document in your browser. Plain search or regular expressions, with a live count of how many matches were changed.
Enter something to find.
How to use the Find and Replace
- Paste your text. Drop in the document you want to change.
- Set the search. Enter what to find and what to replace it with.
- Check the count. The match count tells you whether the pattern did what you meant.
Frequently asked questions
- Is my text sent to a server?
- No. The replacement runs entirely in your browser, so it is safe to paste content you would not upload anywhere, including logs and production data.
- What regular expression syntax is supported?
- JavaScript regular expressions, which cover character classes, quantifiers, groups, lookahead and lookbehind. Capture groups can be referenced in the replacement as $1, $2 and so on.
- Why does my regular expression match nothing?
- The most common causes are an unescaped special character such as a dot or a bracket, and case sensitivity being left on. Turning case sensitivity off is usually the fastest way to find out which.
- Can I replace across line breaks?
- Yes, with a regular expression. Plain search treats the text as one string already, and in regex mode the dot does not cross newlines unless you use a class such as square-bracket backslash-s backslash-S.
Related tools
- Text Tools
Text Line Sorter
Sort lines alphabetically or by length, reverse them, and strip duplicates or blank lines — all at once, in your browser.
- Text Tools
Word & Character Counter
Count words, characters, sentences and paragraphs as you type. Includes reading time, and your text never leaves your browser.
- Text Tools
Case Converter
Convert text between upper case, lower case, title case, sentence case, camelCase, snake_case and kebab-case, all at once.
- Text Tools
Lorem Ipsum Generator
Generate placeholder text in paragraphs, sentences or words. Classic lorem ipsum, ready to paste into a mockup or a layout.
- Text Tools
Slug Generator
Turn any title into a clean URL slug. Strips accents and punctuation, optionally drops stop words, and joins the rest with hyphens.
- Developer Tools
Base64 Encoder & Decoder
Encode text to Base64 and decode it back, right in your browser. Handles Unicode correctly and never sends your data anywhere.
Last updated