DuckyTools
Home Text Find and Replace

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

  1. Paste the text you want to run through find and replace.
  2. Set find, replace with and ignore case and the remaining options.

The 4 settings

SettingWhat it doesDefault
FindFor example: text to findDucky
Replace withFor example: replacementDuckyTools
Ignore caseOn or off. Off by default.Off
Regular expressionOn or off. Off by default.Off

Under the hood

Runs onplain JavaScript — runs the whole thing
ControlsFind, 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.