Find and Replace

Find and replace text online with whole-word and regex support — free and instant.

Options

About

About the Find and Replace

Finds every occurrence of a word or pattern in your text and replaces it, with optional whole-word and regex matching.

Writers use it to swap a name or term throughout a whole document in one pass, while developers use the regex option for pattern-based cleanup of code or data. Among Toolapt's collection of free text tools, this one included, there's no account to set up and no restriction on repeat use.

Choose what to view about this tool

Guide

Using the Find and Replace

  1. 1

    Step 1

    Paste your text into the Input box.

  2. 2

    Step 2

    Type what to find and what to replace it with.

  3. 3

    Step 3

    Turn on "Match case

  4. 4

    Step 4

    Whole words only" or "Treat Find as a regular expression" as needed.

  5. 5

    Step 5

    Click Replace to see the result, then Copy it or Clear to start over.

  • Replaces every match by default, or just the first one if you turn off "Replace every match"
  • Optional case-sensitive matching so "Cat" and "cat" are treated differently
  • Optional whole-word matching so "cat" doesn't also match inside "category"
  • Optional regular-expression mode for pattern-based find and replace
  • Shows a clear message if the search term isn't found or the regular expression is invalid
  • Works entirely in your browser — no installs and no sign-up
  • Free to use, with no limit on how many times you run it

Writers and editors

Writers and editors use Find and Replace for swapping a name, term or spelling throughout an entire document in one pass.

Developers

Developers use Find and Replace's regular-expression mode for pattern-based cleanup of code snippets, logs or data exports.

Data entry teams

Data entry teams use Find and Replace for correcting a consistent typo or formatting issue across pasted spreadsheet data.

Students

Students use Find and Replace for updating repeated terms in an essay or report without retyping them individually.

Examples

Find and Replace examples

3 worked examples

01

Simple swap

Find "cat", replace with "dog" in "The cat sat with another cat." to get "The dog sat with another dog.", with 2 matches replaced.

02

Whole words only

With Whole words only turned on, find "cat", replace with "dog" in "The cat sat in the category." to get "The dog sat in the category." — only 1 match replaced, since "category" isn't a whole-word match.

03

Regex mode

With regex mode on, find \d+, replace with "#" in "Order 12 shipped, Order 45 delivered." to get "Order # shipped, Order # delivered.", with 2 numeric matches replaced.

FAQ

Frequently asked questions

Quick answers to common questions about the Find and Replace.

What does Find and Replace do?

It searches your text for a word or pattern and replaces every match (or just the first one) with replacement text you choose.

Is Find and Replace free to use?

Yes. It's free, with no sign-up, no watermark and no limit on how many times you use it.

Is my text safe when I use this tool?

Yes. Your text is processed entirely on your own device — nothing is sent to a server.

What does "Whole words only" do?

It only matches the search term when it appears as a complete word, so searching for "cat" won't also match the "cat" inside "category".

What does "Treat Find as a regular expression" do?

It lets you use regular-expression syntax in the Find field for pattern-based matching instead of a plain literal search term.

What happens if my regular expression is invalid?

The tool shows a message telling you the expression couldn't be parsed, so you can fix it before trying again.

Can I replace only the first match instead of all of them?

Yes. Turn off "Replace every match" to replace only the first occurrence.

Does Find and Replace have any limitations?

It's built for everyday text; extremely long input or very complex regular expressions may take a moment longer to process.

Still have a question? Contact us

Report a problem

Find and Replace

What went wrong?
    or paste a screenshot