Find and replace any word, phrase, or pattern in your text — supports plain text and optional regular expressions.
This Find and Replace tool works entirely in your browser — nothing is uploaded to any server. Paste your text, type what you want to find and what to replace it with, then click Replace All. The result counter tells you exactly how many substitutions were made. The output is editable, so you can review and tweak the result before copying or downloading.
Unlike a basic text editor's Find and Replace, this tool gives you three additional options in the same interface: case sensitive matching, whole-word matching, and full regular expression support. That makes it useful for everything from fixing a typo across a long document to more complex pattern-based substitutions without needing to open a code editor.
Case sensitive — When unchecked (the default), "apple" matches "Apple", "APPLE", and "apple". When checked, only an exact case match is replaced. Use this when you want to change a specific capitalisation while leaving other forms intact — for example, replacing "REST" without touching "rest".
Use regular expression — Treats the Find field as a regex pattern instead of literal text. This unlocks powerful matching: \d+ matches any run of digits, \s+ matches any whitespace, \b is a word boundary, and (word1|word2) matches either word. The Replace field supports back-references like $1 to reuse captured groups. Disable this if your search term contains special regex characters like ., *, or () that you want treated as plain text.
Whole words only — Adds word-boundary matching so that "cat" won't match inside "concatenate" or "scatter". This works without enabling regex — it is applied automatically using word boundaries. Use it when you want to replace a short common word without accidentally catching it mid-word.
Fix a repeated typo. If you have pasted a long document and noticed "recieve" throughout, drop it in the Find field and type "receive" in Replace, then click Replace All to fix every instance at once.
Rename a variable or term. When a project name changes partway through writing, use Find and Replace to swap the old name for the new one across the whole document in one step.
Remove a word or phrase. Leave the Replace field empty to delete every match — useful for stripping filler words, removing a repeated tag from exported data, or cleaning up unwanted formatting characters.
Reformat data with regex. For example, if you have dates in DD/MM/YYYY format and need YYYY-MM-DD, enable regex, enter (\d{2})/(\d{2})/(\d{4}) in Find and $3-$2-$1 in Replace. The captured groups are reordered in the output.
Clean exported CSV or TSV data. Copy data from a spreadsheet, paste it here, and use Find and Replace to standardise formatting — replacing tab characters, fixing decimal separators, or swapping currency symbols.
Paste your text into the top box, type the word or phrase you're looking for in the Find field, and type what should take its place in the Replace with field. Click Replace All and every match is swapped at once, with a count of how many changes were made.
Turn on the options only when you need them: Case sensitive to protect a specific capitalisation, Whole words only to avoid matching inside longer words, and Use regular expression for pattern-based edits. The output stays editable, so you can review the result and tweak it before you copy or download.
Fixing a typo: paste your draft, put teh in Find and the in Replace, then Replace All. Turn on Whole words only so it doesn't touch a word that happens to contain those letters.
Renaming a term: to change every Project Apollo to Project Artemis, type the old name in Find and the new one in Replace. The counter confirms how many spots changed so you know nothing was missed.
Reformatting with regex: enable Use regular expression, put (\d{2})/(\d{2})/(\d{4}) in Find and $3-$2-$1 in Replace, and a date like 07/03/2024 becomes 2024-03-07 — the captured pieces are reordered in the output.
Leaving regex on for plain text. If your search term has characters like a dot, star, or brackets and regex is enabled, they're read as pattern symbols, not literal text. Turn regex off for ordinary find-and-replace, or escape those characters with a backslash.
Replacing without Whole words only. Searching for a short word like cat without word matching will also change it inside concatenate and scatter. Switch on Whole words only when you're replacing a common short word.
Not checking the replacement count. The status line tells you how many changes were made. If it says zero, your Find text didn't match — check for a stray space, a capital letter, or the wrong option before assuming the tool failed.
Editing important data without a backup. Replace All changes every match at once. When you're working on data you can't easily recreate, keep the original so a wrong pattern is a quick paste-back rather than lost work.
Test a specific match first. For a tricky pattern, try it on a short sample before running it on the whole document. It's easier to spot a mistake in a few lines than in a wall of text.
Start narrow, then widen. Begin with Case sensitive and Whole words only, then relax the options if you're not catching enough. That order protects you from over-replacing on the first pass.
Review the output before copying. The result box is editable for a reason — glance through it, especially near the changes, so an unexpected match doesn't slip into your final text.
Keep regex patterns simple. Several small, clear replacements are easier to get right than one giant pattern. If a regex is getting hard to read, split the job into steps.
Does it replace all matches or just the first one?
Clicking Replace All replaces every match in one go. The status bar shows you how many replacements were made. There is no "Replace next" mode — if you need to review matches one by one, check each occurrence manually in the output before copying.
My regex isn't matching — what's wrong?
Check that the Use regular expression checkbox is ticked. Also verify that any special characters you want to match literally are escaped with a backslash — for example, to match a literal dot, use \. not . (which matches any character). If your pattern includes brackets or pipes for grouping, make sure they're balanced.
Can I use this to delete text instead of replacing it?
Yes. Leave the Replace with field empty and click Replace All. Every match will be removed from the output.
Is there a character limit?
No hard limit. The tool runs in your browser and can handle large documents, though very large pastes (hundreds of thousands of characters) may take a moment with complex regex patterns.
Is my text private?
Completely. Nothing is uploaded or transmitted — all processing happens in JavaScript in your browser. You can use this tool with confidential documents without any concern.
Can I undo a replacement?
There's no undo button, but your original text isn't lost until you overwrite it. Keep a copy before a big replace, or paste the source back in and try again — the output box is editable so you can also fix a single spot by hand.
Does it work across multiple lines?
Yes. Plain find-and-replace works line by line automatically. With regex, most patterns match within a line; to match across line breaks you'd use patterns that include newline characters, which advanced users can add in the Find field.
What's the difference between Whole words only and regex word boundaries?
Whole words only applies boundary matching for you without any pattern syntax — just tick the box. Regex word boundaries (\b) do the same thing but inside a pattern, which is useful when you're already writing a regex and want boundary control on part of it.
Can I replace tabs, line breaks, or invisible characters?
Yes, with regex enabled. Use \t for a tab and \s for any whitespace in the Find field. This is handy for cleaning up data pasted from spreadsheets, where stray tabs and spaces often cause problems.
Does it work on mobile?
Yes. It's a single page that runs in any modern browser, so find-and-replace works the same on a phone or tablet as on a desktop.