Find and Replace Online

Find and replace text online with case, whole-word and regular-expression options. Free.

50 free uses every 24 hoursUnlimited with Pro →

Private by design — your data stays on your deviceEverything runs right here in your browser. What you type is not sent to our server and is not stored.
  • Runs in your browser
  • Not stored
  • No sign-up

This tool lets you find and replace online: paste your text, enter the word or phrase you want to change, and swap it everywhere at once. It suits writers, students, developers and anyone who has to fix the same thing many times. You can ignore case, match whole words only, or use regular expressions for more advanced searches.

How to find and replace text in your document

  1. Paste your text into the input area.
  2. Enter the word or phrase to find, then enter what it should be replaced with.
  3. Choose your options: case, whole words, or regular expression.
  4. Check the count of replacements to confirm the change did what you expected.
  5. Copy the result and paste it back where you need it.
How to use the Find and Replace on OneHubTools: 5 steps with a real screenshot of the tool
How to use the Find and Replace, step by step.

This tool pairs well with the Remove Extra Spaces. If you do this kind of job often, the Regex Tester and the Text Compare (Diff Checker) can save you time too.

Your text is handled in your browser, so nothing is uploaded. The tool is free to use.

What is a find and replace tool good for?

Anyone who edits text runs into repetitive fixes. Here are some real situations where this saves time:

  • Renaming things. A product, company or character name changes, and it appears forty times in your draft.
  • Fixing a spelling. You spelled a client's name wrong all the way through an email or report.
  • Cleaning pasted text. Swap odd characters or repeated phrases for something tidy.
  • Updating code or config text. Change a variable name, a path or a label in a snippet.
  • Editing lists. Replace a separator, such as a dash, with a comma or another symbol.
  • Adjusting wording. Replace a term across a long article to keep the style consistent.
Result from the Find and Replace on OneHubTools
What the Find and Replace gives you.

How do I delete a word with find and replace?

Enter the word in the find field and leave the "Replace with" field empty. Every match is removed from your text.

Watch the spaces around it. If you remove "very" from "a very good result," you may end up with two spaces between the neighbouring words. Include the trailing space in your search to avoid that, or run a second pass to tidy the gap.

Which option should you use: case, whole word or regex?

The three options solve different problems. Use the simplest one that does the job.

OptionUse it whenExample
Case-insensitive searchYou want every version of a word, however it is capitalisedFinds "Color," "color" and "COLOR"
Whole wordsThe search term might sit inside longer words"cat" will not change "category"
Regular expressionYou need to match a pattern, not a fixed wordFind runs of digits or extra spaces

Tips for better results

  • Turn on whole words for short terms. Searching for "art" without it will also change "start," "party" and "particular."
  • Read the replacement count. If you expected five changes and see fifty, undo your settings and check the search term.
  • Keep the original. Save a copy of your text before a big replacement, so you can start over if needed.
  • Replace in small steps. Several simple replacements are easier to check than one clever one.
  • Test regex on a short sample. Paste a few lines first and confirm the pattern matches only what you meant.
  • Mind capitalisation in the replacement. If you ignore case when searching, the replacement text is inserted exactly as you type it. A match at the start of a sentence will not adjust itself.

Using regex find and replace for patterns

Regular expressions are for cases where the text you want to change is not always the same. A pattern like \d+ matches any run of digits, and \s{2,} matches two or more spaces in a row. Replace that second pattern with a single space and you have cleaned up messy spacing in one step.

Regex has its own rules. Characters such as a full stop, question mark, asterisk and brackets have special meanings. If you want to search for one literally, put a backslash in front of it. If you do not need a pattern, leave the regular expression option off and search for plain text.

Common problems and quick fixes

Nothing was replaced

Check the spelling in the find field and look for stray spaces. If the whole-word option is on, the term must stand alone. If case matters in your settings, "Apple" will not match "apple."

Too many things changed

Your search term is probably part of other words. Turn on whole words, or make the search longer, for example "the cat" instead of "cat."

The regex does not match

Look for unescaped special characters. Try a simpler pattern first, confirm it works, then add detail one piece at a time.

Line breaks or spacing look wrong

Deleting a word leaves its surrounding spaces behind. Search for the word together with one neighbouring space, or follow up with a second replacement that turns double spaces into single ones.

Why use a browser-based tool instead of a word processor?

Most editors have a replace feature, but it only works inside that program. This page works with plain text from anywhere: an email, a spreadsheet cell, a code snippet or a chat message. You paste it, change it and copy it back, with no account and nothing to install.

Why use find and replace online?

Find and replace online is handy when you do not have Word open, or when the text sits in an email, a list or code. Paste it, change every match at once, and copy the result back.

Limits and specs

PriceFree
Free use50 uses every 24 hours — shared with 178 other tools in the “Basic tools” group
Where it runsIn your browser
Sign-upNot needed
Muhammad Shahwaiz Gillani
Maintained and reviewed by Muhammad Shahwaiz GillaniSoftware engineer and founder of OneHubTools · Last reviewed

How we checked it: We tested it in Chrome with sample text and checked the output by hand.

Sources

According to MDN Web Docs, the File API lets web pages read files you choose on your own device without uploading them, and all major browsers have supported it for more than 10 years.

Spotted a mistake or the tool did not work for you? Tell us and we will fix it.

Rate this tool

Ratings come only from signed-in users, so every rating is verified.

Only signed-in users can rate tools, so every rating shows a ✔ Verified badge.Sign in to rate

Frequently asked questions

How do I find and replace text online?

Paste your text into the tool, enter the word or phrase to find, and type the replacement. Then copy the updated text.

Can I delete a word instead of replacing it?

Yes, leave the "Replace with" field empty. Every match of the word you entered is removed from the text.

Is the search case-sensitive?

You can choose. The tool supports case-insensitive search, so "Hello" and "hello" can both be found in one pass.

How do I replace only whole words?

Turn on the whole-word option. The tool will then ignore matches inside longer words, so searching for "cat" leaves "category" alone.

Does this tool support regular expressions?

Yes, it supports regular expressions for advanced searches. Use them to match patterns such as numbers or repeated spaces, and test on a short sample first.

Is my text uploaded or stored anywhere?

No, your text is processed in your browser and is not uploaded. The tool is free to use.

Related tools

All text tools →