Skip to main content
100% private — runs in your browser

Find & Replace

Search and replace text with regular expression support.

Your text

0 matches found

How to use Find & Replace

  1. Paste your text

    Put the content you want to edit into the editor.

  2. Enter the search and replacement

    Type what to find and what to replace it with. Enable regular expressions for advanced patterns.

  3. Review the matches

    The live count and preview show exactly what will change before you apply it.

  4. Apply and copy

    Apply the replacement, then copy the result or restore the original.

Frequently asked questions

Can I use regular expressions?

Yes. Enable the regular expression switch to use the full pattern syntax, including capture groups and flags.

How do I reference capture groups in the replacement?

Use $1, $2 and so on for numbered groups, or $<name> for named groups.

What happens if my pattern is invalid?

The error is reported inline with an explanation, and the preview is not updated, so a broken pattern can never damage your text.

Can I undo a replacement?

Yes. The original text is kept until you clear the editor, and a restore button brings it back immediately.

Is the text sent to a server?

No. Searching and replacing are performed locally in your browser.

About Find & Replace

The Find & Replace tool searches your text and swaps every occurrence, using either plain text or a full regular expression. It highlights the matches live, reports how many were found, and supports case sensitivity, whole-word matching and capture-group references.

Plain text versus regular expressions

Plain replacement is literal: every character you type in the search box is matched exactly, which is what you want for the majority of edits. Regular expression mode interprets the pattern with the full power of the expression engine, letting you match patterns such as a digit sequence, an email address, an ISO date, or repeated whitespace. The pattern is compiled in your browser, and a helpful error message appears immediately if the expression is malformed, so you never have to guess why nothing matched. Capture groups are supported in the replacement string using the $1, $2 convention, and named groups work with $<name>.

Options that change what matches

Case sensitivity is off by default, so "Error" and "error" are treated as the same thing, which is usually what you want. Whole-word matching stops "cat" from matching inside "category". Regular expressions have their own flags: the "g" flag is always implied, while "i" for case-insensitive matching and "m" for multiline anchors are exposed as checkboxes. The dot-all flag lets "." match newlines, which matters for multiline documents. The tool also shows a live count of matches and previews the first few replacements so you can confirm the pattern is right before committing.

Undo and preview

Replacements can be destructive, so the workflow is preview-first. The preview area shows the result of the replacement on a sample of the text, and the apply step is a single click that can be undone with the restore button, which returns the original text. That matters especially with regular expressions, where an overly broad pattern such as .* can collapse an entire document in one pass. Everything runs locally, so it is safe to use on confidential drafts, client emails or internal documentation.

Use Find & Replace on your site

This tool runs free and private in the browser. Paste it anywhere — blog posts, documentation, team wikis — and your visitors will use it without leaving your site. The embed includes a small "Made with The Tools Today" credit link.

Open the tool page →

Your privacy, your choice

We use cookies to understand how the site is used and to show relevant ads. Every tool on this site runs entirely in your browser, so the files and text you process are never uploaded. Read our privacy policy.