Find and Replace

Find and replace text patterns.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Type the text to find and what to replace it with, paste your text, and press Run. Every match is replaced at once.

How to use

1
Step 1
Paste your text into Input.
2
Step 2
Enter the text to find and the replacement.
3
Step 3
Press Run and copy the result.

How it works

The search is literal, so characters like. * ( and ? are matched as typed rather than as regular-expression symbols. Matching is case-sensitive and finds text inside words as well. An empty Replace field deletes the matches. The replacement is literal too, so $ and & have no special meaning.

Worked example

Replacing cat with dog

Input
The cat sat. Cat naps. concat
Output
The dog sat. Cat naps. condog
Walkthrough
Lowercase cat is replaced everywhere it appears, including inside concat. Capital Cat is a different string and is left alone.

Limitations

  • Case-sensitive, with no match-case or whole-word switch.
  • No regular expressions.
  • Always replaces every match; there is no replace-one mode.
  • Needs a non-empty Find value.

Questions

How do I replace all occurrences of a word?
Enter the word in Find, the new word in Replace with, paste your text and press Run.
Is it case-sensitive?
Yes. cat and Cat are different.
Can I use regex?
No. The search is literal text.
Why did it change part of another word?
Matches inside words are replaced too. There is no whole-word option.

Features

  • Literal search
  • Replaces all matches
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Regular Expressions in 100 Seconds

    Fireship

    Fast regex refresher for text extraction patterns.

    Watch on YouTube
  • Learn JSON - Full Crash Course

    freeCodeCamp.org

    Structured text formats often sit next to plain-text tools.

    Watch on YouTube
  • String

    MDN

    JS string methods that mirror case, trim, and split tools.

  • UTF-8 and BOM

    W3C

    Encoding gotchas when cleaning pasted text.