How do I replace text across an entire document at once?
The classic "find and replace" feature you know from text editors, but in your browser, nothing to install.
Type what to find and what to replace it with, the tool swaps every occurrence in a second. With optional regex (regular expression) support for advanced patterns (like "all numbers" or "every email address").
Match count updates live, output preview right next to it.
How to use it
- Paste your text in the input field.
- In "Find" type the text to replace, in "Replace with": the new text.
- Options: Regex (advanced patterns), Ignore case, Replace all matches (on by default), Multiline mode.
- On the right you see the output + match count in the top-right corner.
- With regex enabled, expand the cheatsheet at the bottom for syntax tips.
When this is useful
Typical document-wide replacements:
- Text cleanup: strip all phone numbers (regex \d{9}), redacted names, or HTML tags.
- Code editing: rename a variable across a whole file. Or convert single quotes to double quotes.
- CSV editing: change the separator from comma to semicolon in one click.
- Email obfuscation before publishing: swap "@" for "[at]" so bots don't scrape addresses.
- Markdown ↔ HTML migration: regex that turns `bold` into `<strong>bold</strong>`.
- Date format conversion: regex `\d{4}-\d{2}-\d{2}` to DD/MM/YYYY format.
- Removing sensitive data: regex matching national IDs, credit card numbers, replaced with "XXX".
- Extracting links from text: find all URLs via regex.
To clean up extra whitespace instead of replacing specific text, try the whitespace cleaner.