Find & Replace

Bulk-replace text with plain or regex patterns, see the match count, and copy the result — all locally in your browser.

Enter find text to start

When do you need bulk find and replace online?

What this tool does

This find and replace tool searches an entire text block for a pattern and substitutes every match with your replacement string. Toggle regex mode for pattern-based rewrites, enable case sensitivity when capitalization matters, and watch the live match count in the status bar before you commit. Results appear in a separate output panel so your original input stays intact until you copy the transformed text.

Why you need it

Spreadsheet exports, log dumps, and generated code often contain hundreds of repeated tokens — stale domain names, wrong indentation markers, or outdated API paths. Fixing them one by one in an editor is tedious; a bulk replace finishes in one click. Regex mode unlocks pattern-based transforms like normalizing phone numbers, swapping date formats, or renaming camelCase variables across a snippet.

Not every task warrants opening an IDE or scripting environment. A browser-based tool handles quick cleanup during a support ticket, a content migration, or a pair-programming session where you need results immediately. Because processing is client-side, customer data and internal identifiers in your text never leave your machine.

How to use it

  1. Paste your source text into the Input textarea, or click Load sample to try a demo.
  2. Enter the search string in Find and the replacement in Replace with.
  3. Enable Regex for pattern matching and Case sensitive when letter casing must match exactly.
  4. Click Replace all, verify the match count in the status bar, then Copy result from the output panel.

Practical examples

  • Domain migration: Replace every old-cdn.example.com with cdn.example.com across a CSS export in one pass.
  • Log cleanup: Use regex \d{4}-\d{2}-\d{2} to strip ISO dates from log lines before sharing them externally.
  • Variable rename: Replace userId with accountId across a pasted TypeScript interface snippet.
  • Email redaction: Regex-replace email addresses with [REDACTED] using a capture-group pattern before posting debug output to Slack.

How it works

In plain-text mode, the tool escapes special regex characters in your find string and performs a global search with either case-sensitive or case-insensitive matching. When regex mode is on, your pattern is compiled as a JavaScript regular expression with the global flag, so every occurrence is replaced in a single pass. Capture groups referenced as $1, $2, and so on in the replace field let you rearrange matched segments — for example, swapping the order of first and last name.

The status bar updates live as you type, showing a preview match count before you click Replace all. Invalid regex patterns produce an immediate error without modifying your input. The original textarea is never overwritten; output goes to the read-only panel so you can compare before and after or run the Diff Checker on both versions.

Common mistakes

  • Forgetting the global nature: Replace all changes every match. There is no single-match mode — review the count before copying if you only wanted the first occurrence.
  • Regex metacharacters in plain mode: Characters like ., *, and ( are literal in plain mode but special in regex mode. Toggle appropriately.
  • Wrong capture group syntax: JavaScript uses $1 in the replace string, not \1 (which works in some other languages and tools).
  • Replacing without a backup: Although input is preserved, always copy the output to a safe location before overwriting source files on disk.

FAQ

Does regex mode support capture groups?

Yes. Use $1, $2 and so on in the replace field when Regex is enabled.

Does it replace all matches at once?

Yes. Click Replace all to apply the replacement to every match in the input. The status bar shows how many matches were found.

What happens with an invalid regex?

The status bar shows a short error and no replacement is applied until the pattern is fixed.

Can I do a case-insensitive search?

Yes. Uncheck Case sensitive to match regardless of letter casing.

Is my text uploaded?

No. Find and replace runs entirely in your browser.

Related tools