Skip to content
T
Tools.Town
Free Online Tools for Everyone
5 replaced

Find and Replace

100% Free

Find and replace across a block of text — plain or full regex with back-references, case toggle, multiline mode.

Real-time
Client-Side
Regex Mode
Output 0 matches replaced
Output appears here…

Embed This Tool

Easy to Embed

Add Find and Replace to your website or blog in seconds.

  • Responsive design
  • Lightweight & fast
  • No backend required
  • Always up-to-date
<iframe
  src="https://tools.town/embed/find-and-replace/"
  width="100%"
  height="600"
  style="border:none; border-radius:12px;"
  loading="lazy"
  title="Find and Replace">
</iframe>

Share This Tool

Share Instantly

Share Find and Replace with anyone — no login required.

  • Shareable link
  • No login required
  • Works on any device
  • No account needed

Share via

Advertisement

How to Use

  1. 1 Paste your text into the input
  2. 2 Type what to find and what to replace with
  3. 3 Toggle Plain or Regex mode (Plain escapes special chars literally)
  4. 4 Optionally toggle case-sensitivity and (regex only) multiline
  5. 5 Match count and output update instantly

Features

  • Plain mode escapes regex specials literally
  • Regex mode supports back-references ($1, $2, $&)
  • Case-sensitive / case-insensitive toggle
  • Multiline mode for ^ and $ to match line boundaries
  • Match count surfaced for quick verification
  • 100% client-side

Why it Matters

Browser textarea has no native find/replace. Devs reach for VS Code or sed; non-devs reach for Word. This tool is the middle ground — open the page, paste text, replace, copy out. Regex mode handles the cases the simple Find dialog can't (e.g. swapping 'Last, First' to 'First Last' across a list).

★★★★★

Use Cases

Bulk Rename

Swap a function/variable name across pasted code

Text Cleanup

Replace smart quotes with straight quotes for Markdown

Pattern Extraction

Use regex back-references to reformat structured text

Frequently Asked Questions

How do I use back-references?
In Regex mode, $1 refers to the first capture group, $2 to the second, etc. Example: find `(\w+) (\w+)` and replace with `$2, $1` swaps any two-word pair.
What's the difference between Plain and Regex?
Plain treats every character literally — `.` matches a dot, not 'any char'. Regex treats your input as a JS regular expression with full pattern syntax.
Why doesn't `^` match line starts?
By default `^` matches only the very start of the string. Toggle 'Multiline' to make `^`/`$` match each line's boundaries.

Related Tools You Might Like

Browse more free tools