Free Online Find and Replace Text
Paste text, type what to find and what to replace it with, and the changed text appears instantly. Turn on regex for pattern-based changes.
Replacing one word with another across a long text is one of those jobs that is trivial in principle and fiddly in practice. You may need to change a client name throughout a proposal, correct a product name that was misspelled in twenty places, swap a placeholder like [DATE] for a real date, or switch American spellings to British ones. Developers and analysts also use pattern matching to reformat codes, remove unwanted prefixes or reorder pieces of a line without opening a full code editor.
Paste your text into the Input box and fill in the options above it. Find is the text to look for and Replace with is what should go in its place; leave Replace with empty to delete the matches. Use regex is a dropdown set to No or Yes, and Case sensitive is also No or Yes. The Result panel updates as you type, and a small line underneath tells you either that replacements were applied or that no changes were made. Use the copy button to take the finished text. Your original stays in the input box.
Every match is replaced, not just the first, and matching ignores case unless you change that option. In plain mode your search text is treated literally, so dots and brackets mean exactly what they look like. Remember that substrings count: searching for cat in the line cat concatenate will also change the middle of concatenate. In regex mode, wrap the word in boundary markers such as backslash b to match whole words only. An invalid pattern shows the message Invalid regular expression. Dollar signs in the replacement have special meaning, so $1 inserts a captured group and $& inserts the match.
With the starting sample, cat bat rat, searching for at and replacing with og returns cog bog rog. For a regex example, enter 12-34 as the input, set Use regex to Yes, put (\d+)-(\d+) in Find and $2/$1 in Replace with. The result is 34/12, because the two number groups swap places. Without the regex option, the same Find text would be looked up literally and nothing would change, so the status line would say that no changes were made. Always scan the output before you copy it.
Key Highlights:
- Free to use, no signup
- Instant results
- Processed in your browser
- Works on mobile and desktop

