Find and Replace Text
Swap text across your whole document, with optional regex.
Find and Replace is a free online tool that swap text across your whole document, with optional regex. It runs entirely in your web browser using plain JavaScript, so files are processed on your own device and never uploaded to a server. There is no sign-up, no file size limit imposed by the site, no watermark and no paid tier.
- Price
- Free — no account, no quota, no watermark
- Category
- Text
- Where it runs
- In your browser, on your device
- Files uploaded
- None
- Technology
- plain JavaScript
- Settings
- 4
- Works offline
- Yes, after the first visit
About Find and Replace
Find and Replace is one of 57 text tools on DuckyTools, and like all of them it runs entirely inside this page. Swap text across your whole document, with optional regex.
How to use it
- Paste the text you want to run through find and replace.
- Set find, replace with and ignore case and the remaining options.
The 4 settings
| Setting | What it does | Default |
|---|---|---|
| Find | For example: text to find | Ducky |
| Replace with | For example: replacement | DuckyTools |
| Ignore case | On or off. Off by default. | Off |
| Regular expression | On or off. Off by default. | Off |
Under the hood
| Runs on | plain JavaScript — runs the whole thing |
| Controls | Find, Replace with, Ignore case, Regular expression |
Questions
How do I replace across multiple lines?
It already does — every match in the whole text is replaced at once, regardless of line breaks. There is no "replace next" step.
What can I do with the regex option?
Pattern matching: \d+ finds any run of digits, ^\s+ finds leading whitespace, and $1 in the replacement inserts the first captured group. With regex off, your search text is matched literally, symbols and all.
Can I undo a replacement?
Your original text is untouched in the input box — the result is generated separately. Clear the find field and the output returns to the original.