Find and Replace Text Free

Searches your text for a string or pattern and replaces or deletes every match. Supports regular expressions.

When using a regular expression, you can use backreferences like $1 in the replacement text.

About this tool

You can turn on case-sensitive matching, and use a regular expression instead of a plain string.

With a regular expression, the replacement text can reference the matched groups with $1, $2 and so on.

This tool runs entirely in your browser. Nothing you enter is sent to our server.

When to use it

Useful for cleaning up pasted text, updating a placeholder across a document, or rewriting a pattern of text — such as turning a heading into a link — in one pass.

Deleting text instead of replacing it

Leave the replacement field empty to delete every match instead of replacing it.

FAQ

Is the search case-sensitive?
Turn on "Case sensitive" to match uppercase and lowercase exactly. Leave it off and the search ignores case.
What happens if my regular expression is invalid?
An error message is shown and no replacement is made until the pattern is valid.