How to replace text online
This text replacer changes every match at once, so you never have to edit the same word by hand again.
Paste your text
Paste or type it into the Your text box. There is no limit on length and nothing is uploaded.
Type what to find
Enter the word, phrase or pattern you want to replace. Every match lights up in your text.
Type the replacement
Enter the new text, or leave it empty to delete every match. The result updates as you type.
Copy the result
Use Copy to put the new text on your clipboard, or Download to save it as a .txt file.
Find and replace text options
Leave them all unticked for a simple search that ignores capital letters. Tick one when you need more control.
Only finds text with exactly the same capital letters.
cat finds cat but not Cat or CAT
Skips matches that are part of a longer word.
cat finds cat but not category
Searches with a pattern, so one rule can match many different words.
\d+ finds every number, like 7 or 2026
Replace text examples
Copy the Find and Replace values into the tool above to try each one.
Swap "Last, First" into "First Last"
Regex^([^,\n]+),\s*(.+)$$2 $1Lovelace, Ada Hopper, Grace
Ada Lovelace Grace Hopper
Turn a list into one comma-separated line
Regex\n, apples pears plums
apples, pears, plums
Remove a word everywhere
Whole wordvery (empty)A very, very good day
A very, good day
Reformat dates from 2026-11-19 to 19/11/2026
Regex(\d{4})-(\d{2})-(\d{2})$3/$2/$1Due 2026-11-19, paid 2026-12-01
Due 19/11/2026, paid 01/12/2026
Regex quick reference
Tick Regex to use these patterns. ^ and $ match the start and end of every line.
In Find
.- Any single character except a line break
\d \w \s- A digit, a word character (letter, digit, _), a space or tab
\D \W \S- The opposite of each of the above
[abc] [^abc]- One of a, b or c / anything except those
a* a+ a?- Zero or more, one or more, zero or one
a{3} a{2,5}- Exactly 3, or between 2 and 5
^ $- Start and end of a line
\b- A word boundary
(abc)- Capture a group to reuse as $1
(?<name>abc)- Capture a named group to reuse as $<name>
a|b- Either a or b
\. \( \\- A literal dot, bracket or backslash
In Replace with
$1 … $99- Text captured by group 1 to 99
$<name>- Text captured by a named group
$&- The whole match
$$- A literal dollar sign
\n \t- A line break / a tab
A text replacer that stays out of your way
Instant
Results appear as you type, even for very long text.
Private
Your text never leaves your browser. Nothing is stored.
Free, no sign-up
No account, no limits and nothing to install.
Works everywhere
Use it on any phone, tablet or computer.
Frequently asked questions
How do I replace a word everywhere in my text?
Paste your text into the box above, type the word in Find and its replacement in Replace with. Every match is replaced instantly and the result appears on the right, ready to copy. Tick Whole word so that replacing "cat" leaves "category" alone.
How do I delete a word or phrase?
Type it in Find and leave Replace with empty. Every match is removed from the result.
Is the search case sensitive?
Not by default, so "apple" also finds "Apple" and "APPLE". Tick Match case to find only the exact capitalisation you typed.
How do I replace line breaks?
Tick Regex and type \n in Find. For example, replacing \n with ", " joins every line into one comma-separated list. You can also put \n in Replace with to start a new line.
What does the Regex option do?
It lets you search with a regular expression, a pattern that can match many different pieces of text at once. Brackets capture part of a match, which you can reuse in the replacement as $1, $2 and so on. The regex quick reference above lists the most useful patterns.
Is my text uploaded anywhere?
No. The replacing happens in your browser, on your device. Your text is never sent to a server.
How much text can it handle?
Several megabytes. The work runs in the background so the page stays responsive, and a regex that takes too long is stopped automatically.
Last updated