Find and Replace

Find and replace text online with case, whole-word and regex options.

  • No sign-up
  • Files stay local. Nothing is sent to our servers.
  • Nothing uploaded
  • Free forever

Drop text files here

.txt, .csv, .tsv, .xlsx, .xls, .html, .xml, .json, .log · local only · up to 1000 MB total · Excel up to 256 MB

Find and Replace is an online text find and replace tool that swaps every occurrence of a word, phrase or pattern for a replacement of your choice. Instead of scrolling through a long document hunting for each match by hand, you type what to find, type what to replace it with, and the entire body of text is rewritten in one pass.

It is built for writers cleaning up drafts, developers editing code and config snippets, data wranglers fixing exported records, and anyone who needs to make the same change in dozens or hundreds of places. With case-insensitive matching, whole-word boundaries and full regular-expression support, it handles both simple swaps and advanced, rule-based transformations with ease.

Everything runs locally in your web browser using JavaScript. Your text is never uploaded, queued or stored on a server, so even confidential documents, private notes and proprietary code stay entirely on your own device. You get the speed and power of a desktop editor's search-and-replace without installing anything at all.

Features of Find and Replace

  • Replaces every match of your search term across the whole document in a single pass, not just the first one found.
  • Offers a case-insensitive option so matches are found regardless of upper or lower case spelling differences.
  • Includes a whole-word mode that ignores matches sitting inside longer words, preventing accidental partial replacements.
  • Supports full JavaScript regular expressions for advanced pattern matching when you need more than a literal search.
  • Lets regex replacements reference captured groups with dollar-sign placeholders such as $1 and $2 for reordering text.
  • Counts exactly how many replacements were made so you can confirm the change affected the number of places expected.
  • Validates your regular expression and shows a clear error message instead of failing silently on an invalid pattern.
  • Runs entirely offline in your browser with no sign-up, no upload and no limit on the size of the text you process.

How to use Find and Replace

  1. Paste or type the text you want to edit into the input box, or upload a plain .txt file to load its contents.
  2. Type the word, phrase or pattern you want to locate into the find field at the top of the options.
  3. Type the text you want to substitute in its place into the replace field directly below the find field.
  4. Toggle case-insensitive, whole-word or regex mode depending on how strict or flexible you need the matching to be.
  5. Read the replacement count in the statistics to confirm the tool changed exactly as many matches as you intended.
  6. Copy the rewritten text to your clipboard or download it as a text file when the result looks correct.

Benefits of Find and Replace

  • Writers fix a repeated misspelling, rename a character or update a product name everywhere in seconds instead of manually.
  • Developers rename variables, update endpoints or swap config values across a pasted snippet without opening an editor.
  • Marketers update links, dates or campaign names consistently throughout long pieces of copy before publishing.
  • Data teams normalise values, strip prefixes or reformat fields in exported lists using literal or regex replacements.
  • Students and researchers standardise terminology across notes and drafts so the same term is used everywhere.
  • Anyone editing sensitive text benefits because the find and replace happens locally and nothing is ever uploaded.

The whole-word option is the difference between a safe edit and an embarrassing one. Replacing the literal string cat without it would also change words like category, scatter and vacation. With whole-word matching enabled, only the standalone word is replaced, which makes bulk edits on natural language far safer when your search term happens to appear inside other words.

Regular expression mode unlocks transformations that a literal search cannot do, such as collapsing multiple spaces, swapping date formats, or wrapping every matched term in markup. You can capture parts of each match in parentheses and reuse them in the replacement with $1, $2 and so on, which is ideal for reordering names, reformatting phone numbers or restructuring lines of data.

All processing happens inside your browser, so your text is never transmitted or logged, making the tool safe for confidential drafts and proprietary code. Because regular expressions are powerful, an overly broad pattern can change more than you expect, so check the replacement count and preview the output before saving, and keep a copy of the original if the edit is important.

Questions about Find and Replace

Does it replace every match or just the first one?
It replaces every occurrence in the entire document in a single pass, not only the first match. The statistics show the exact number of replacements made, so you can confirm the tool changed as many places as you expected before copying the result.
What does whole-word matching do?
Whole-word mode only replaces your search term when it stands alone, ignoring matches inside longer words. For example, replacing the word art will not touch start or party. This prevents accidental partial replacements when editing natural language text.
Can I use regular expressions?
Yes. Enable the regex option to treat your find field as a JavaScript regular expression, unlocking advanced pattern matching. You can also reference captured groups in the replacement using dollar-sign placeholders such as $1 and $2 to reorder or restructure matched text.
What happens if my regular expression is invalid?
The tool validates the pattern before running and shows a clear error message describing the problem instead of producing broken output. Fix the pattern, and the replacement runs again. When regex mode is off, your find text is treated as a plain literal string.
Is my text uploaded anywhere?
No. All matching and replacing happens locally in your browser using JavaScript, so your text never leaves your device. That makes the tool safe for confidential documents, private notes and proprietary source code you would not want sent to a server.
Is the matching case-sensitive by default?
Yes, matching respects case unless you enable the case-insensitive option. With it switched on, the tool finds your term regardless of capitalisation, so a search for hello will match Hello and HELLO too, which is useful when capitalisation in the source is inconsistent.
How your data is handled: This tool runs entirely in your browser. Nothing is uploaded or stored on our servers.

More cleanup tools to try

Guides and related topics for Find and Replace