How-to guide
How to Find and Replace Text Online (Free Tool Guide)
To find and replace text online, paste your text into the Find and Replace Text tool on hellagape.com, type the string you want to find, type its replacement, and copy the result: the tool will "replace every occurrence of a string, with optional case sensitivity and regex," updates instantly as you type, and runs entirely in your browser with no signup and nothing sent anywhere. This guide walks through the steps, hand-checked examples for plain, case-sensitive, and regex replacement, and the mistakes that corrupt documents.
How to find and replace text (step by step)
- Open the Find and Replace Text tool. No account or install is needed.
- Paste or type your text into the Your text box.
- Type the exact word, phrase, or pattern in Find — for example,
red. - Type the new text in Replace with — for example,
blue. Leave it empty to delete every match instead. - Read the result. It updates instantly as you type — there is no button to press. Check the output before copying it back into your document; closing the tab clears everything, since nothing is stored or transmitted.
That is the whole workflow for plain replacement. The two options below handle the cases where plain replacement is not enough.
Worked examples (hand-checked)
Example 1 — plain replacement (every occurrence):
- Text:
red car, red bus, red bike - Find:
red· Replace with:blue - Result:
blue car, blue bus, blue bike— 3 replacements, all occurrences changed.
Example 2 — delete matches: same text, Find red (with trailing space), Replace with empty → car, bus, bike. Deleting is just replacing with nothing — useful for stripping repeated labels or markers.
Example 3 — case-sensitive matching: turn on Case sensitive so capitalisation must match exactly.
- Text:
Cat cat CAT - Find:
cat· Replace with:dog· Case sensitive ON - Result:
Cat dog CAT— only the exact lowercasecatchanged;CatandCATwere left alone. With case sensitivity off, all three would match.
Example 4 — regular expression (pattern matching): turn on Regular expression when you need a pattern, not a fixed string. \d+ means "one or more digits":
- Text:
Order 12, item 345, code 7 - Find:
\d+· Replace with:#· Regular expression ON - Result:
Order #, item #, code #— all three numbers replaced in one pass. Plain mode could never do this, because the three numbers are all different strings.
Try them yourself: paste each example into the tool and compare. If a regex result surprises you, simplify the pattern first — regex is powerful precisely because a small pattern can match more than you intended.
Plain text vs regex, in plain words
Plain mode treats your Find text literally: a dot matches a dot, a dollar sign matches a dollar sign. Regex mode treats it as a pattern language: \d is any digit, \w any letter/digit/underscore, \s any whitespace, . any character except a line break. Start in plain mode; switch to regex only when the thing you want to replace varies (numbers, dates, repeated patterns with different middles).
Tips and common mistakes
- Replacing inside bigger words. Plain find matches substrings: replacing
catalso hits thecatinsidecatalogandcategory. If that is not what you want, include surrounding spaces in both Find and Replace with (e.g.,cat→dog), and check the result carefully. - Case surprises. If half your matches are capitalised differently, decide first whether Case sensitive should be on or off — Example 3 shows how the same search gives different results.
- Regex overreach. A greedy pattern can swallow half a line. Test on a short sample before running it over a full document.
- Order matters for chained edits. If you run two replacements in sequence, the second search sees the output of the first. Do the most specific replacement first.
- Keep the original. The tool works on a copy in your browser; your source file is untouched until you paste the result back. Keep that safety — paste into a duplicate first for important documents.
Related hellagape text tools
Cleaning text usually takes more than one pass: pair this with the Word Counter to verify lengths after edits, Remove Duplicate Lines for repeated entries, Sort Lines for ordering, and the URL Slug Generator when edited titles become URLs.
Frequently asked questions
How do I replace text online for free? Paste your text into the Find and Replace Text tool, enter what to find and what should replace it, and copy the instant result. It is free with no account, and runs in your browser so nothing is uploaded.
How do I delete every occurrence of a word? Put the word in Find and leave Replace with empty. Every match is removed. Include a trailing space in Find (e.g., word ) if you want to avoid leaving double spaces behind.
What does case sensitive mean? With Case sensitive on, cat, Cat, and CAT are three different strings and only exact matches are replaced. With it off, one search catches every capitalisation.
What is a regular expression in find and replace? A pattern instead of a fixed string: \d+ matches any run of digits, so one search can replace every number in a document even though each number is different. Turn on Regular expression to use patterns; leave it off for literal text.
Is my text uploaded when I use this tool? No. The tool runs in your browser using JavaScript; your input is processed on your own device and is never uploaded, logged, or shared. Closing the tab clears it.
Can I use the output commercially? Yes. You own the input and the output, with no licence fee or attribution requirement — though you remain responsible for the rights attached to material you process.
Does it work on mobile? Yes. The interface is responsive with touch-friendly controls; very large texts are limited only by your phone browser's memory.
This guide describes the live tool page as read on 2026-11-26. Features not observed on that page (bulk rules, file upload, capture groups) are not claimed for this tool.
Try it now
Find and Replace Text
Replace every occurrence of a string, with optional case sensitivity and regex.
Keep reading