Find & Replace

How to use

Finds every match of a word, phrase or regular expression in your text and replaces it with something else, showing how many replacements were made. Great for quick bulk edits without opening a code editor.

Text UtilitiesLocal only
2 matches
When to use this
  • Bulk-swapping an old product name or terminology throughout a long document
  • Using a regex with capture groups to reformat repeated patterns in a config or log file
  • Refactoring a repeated string across pasted code before committing it back to a file
  • Cleaning up inconsistent terminology across marketing copy in one pass

Free and private. Everything runs on your own device, with no account and no uploads.

Editing a large document or refactoring repeated strings across a config file often means the same replacement needs to happen dozens of times. This tool lets you find and replace text using either a plain string match or a full regular expression pattern, so developers can do pattern-based bulk edits and writers can quickly swap terminology throughout a document.

Yes, when regex mode is enabled you can reference capture groups (like $1) in the replacement field, similar to most code editors.

Plain string matching is case-sensitive by default; use a regex with the case-insensitive flag if you need to ignore case.

The tool shows an error message rather than crashing, so you can fix the pattern before applying it.

By default it replaces every match in the text; regex global behavior is applied automatically.

No, matching and replacing run entirely in your browser using JavaScript regex.

How it works
  1. 1

    Paste your source text

    Add the document or code block you want to edit.

  2. 2

    Enter find and replace values

    Type the text or regex pattern to find, and what to replace it with.

  3. 3

    Toggle regex mode if needed

    Enable regex matching for pattern-based replacements with capture groups.

  4. 4

    Run replace

    Apply the replacement and review the updated text.

  5. 5

    Copy the updated text

    Copy the final result back into your file.

Pro tips
  • ·Test your regex in the dedicated Regex Tester first if the pattern is complex, this tool applies it but does not visualize matches.
  • ·Reference capture groups like $1 in the replacement field to preserve parts of the matched text.
  • ·Remember plain-text search is case-sensitive by default; switch to regex mode with the "i" flag if you need case-insensitive matching.