How to find and replace
- Paste your text into the top box.
- Type the word or phrase to find and what to replace it with. Leave “Replace with” empty to delete every match.
- The result and the number of replacements update as you type.
- Copy the result, download it, or click Use result as new text to run another replacement on top of it.
By default the search ignores upper and lower case — “apple” also finds “Apple” and “APPLE”. Tick Match case to find only the exact spelling, and Whole words only so that “cat” doesn't change “category”.
Using regular expressions
With Regular expression ticked, the Find box is a JavaScript regex pattern and the replacement can refer to what was matched:
| Task | Find | Replace with |
|---|---|---|
| Swap “Last, First” to “First Last” | (\w+), (\w+) | $2 $1 |
| US date to ISO (MM/DD/YYYY → YYYY-MM-DD) | (\d{2})/(\d{2})/(\d{4}) | $3-$1-$2 |
| Collapse repeated spaces | {2,} | a single space |
| Delete trailing spaces on every line | [ \t]+$ | (empty) |
| Add a prefix to every line | ^ | - |
| Wrap numbers in brackets | \d+ | [$&] |
$1, $2… insert numbered groups, \n and \t insert a line break and a tab, $<name> a named group, $& the whole match and $$ a literal dollar sign. ^ and $ match at the start and end of every line. Without regex mode, these characters are treated literally, so replacing with “$5” really inserts “$5”. To experiment with a pattern in more detail, use the regex tester.
Safe with large and private text
The replacement runs in a background worker inside your browser. That has two benefits: a long document doesn't freeze the page while you type, and a badly written regular expression that would take forever (catastrophic backtracking) is stopped after a couple of seconds instead of crashing the tab.
Because nothing is uploaded, you can use it on contracts, customer lists, logs and code that you wouldn't paste into an unknown website.
Frequently asked questions
How do I replace text with a line break or tab?
Tick Regular expression and type \n (new line) or \t (tab) in the Replace box. For example, find “, ” and replace with \n to put each comma-separated item on its own line. To type a literal backslash, use \\.
Can I delete every occurrence of a word?
Yes. Leave “Replace with” empty. Tick “Whole words only” so that parts of longer words aren’t removed.
Is my text uploaded?
No. Find and replace runs entirely in your browser; your text never leaves your device.
Does it support accents and other languages?
Yes. Case-insensitive matching follows Unicode rules, so “É” matches “é”. Note that “whole words only” uses JavaScript word boundaries, which work reliably for English and other Latin-alphabet text.