Find and replace
Replace exact text without regular expressions.
Your result will appear here.
Enter your input, then run the tool.How to use the find and replace
Change a name, fix a repeated mistake or swap a term throughout a document without opening an editor.
Paste the text, type what to find and what to replace it with, and run the tool. Every match is replaced at once.
- Paste your text into the Input box.
- Type the exact text to look for in the Find box.
- Type the new text in Replace with (may be blank). Leave it empty to delete every match.
- Press Run tool, then use Copy result or download the text.
Good to know
- Matches are exact and case-sensitive; Hello does not match hello.
- All occurrences are replaced. Leaving the replacement empty deletes the matches.
- Regular expressions and wildcards are not supported; the find text is taken literally.
- Up to 500,000 characters of text.
- Your text stays in your browser and is never uploaded.
Examples
- To turn a list into one line, press Enter in the Find box (a line break) and type “, ” in Replace with: “line one”, “line two” and “line three” become “line one, line two, line three”.
- Finding colour and replacing it with color in “Colour colour COLOUR” gives “Colour color COLOUR”: only the exact lower-case match changes.
If something goes wrong
“Enter text to find.”
The Find box is empty. Type the word or phrase to replace.
Nothing changed.
No exact match was found. Check capital letters and look for a stray space or line break in the Find box, which accepts several lines.
I want to put each item on its own line.
Replace with is a single-line box, so it cannot insert line breaks. It can turn line breaks into commas, but not the reverse.
Questions
Can I replace only the first match?
No. The tool replaces every occurrence.
How do I match whole words only?
Include the spaces around the word in both fields, for example “ cat ” to “ dog ”.
Can I use patterns like \d+?
No. Use the regex tester to experiment with patterns; this tool uses plain text.
Next steps: Regex tester · Text difference checker · Case converter
