Find and Replace
100% FreeFind and replace across a block of text — plain or full regex with back-references, case toggle, multiline mode.
Output appears here…Embed This Tool
Easy to EmbedAdd 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> Advertisement
How to Use
- 1 Paste your text into the input
- 2 Type what to find and what to replace with
- 3 Toggle Plain or Regex mode (Plain escapes special chars literally)
- 4 Optionally toggle case-sensitivity and (regex only) multiline
- 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?
What's the difference between Plain and Regex?
Why doesn't `^` match line starts?
Related Tools You Might Like
Character Counter
Real-time character, word, line, sentence count plus Twitter / SMS / meta-description limit warnings. Grapheme-aware (emoji counts as 1).
Duplicate Line Remover
Strip duplicate lines from any list, preserving the first occurrence and original order. Case + whitespace toggles, optional alpha sort.
Remove Extra Spaces
Whitespace cleanup with surgical control — collapse spaces, trim lines, collapse newlines, remove blank lines, or strip ALL whitespace.
Text to Slug
Convert any title to a URL-safe slug — handles diacritics (café → cafe), ligatures (ß → ss), &/+ expansion, configurable separator, smart truncation.
Text Sorter
Sort lines five ways — alphabetical, natural (item2 < item10), length, numeric, random shuffle. Reverse, case toggles, blank-line handling.