Free Text Editing Tool
Find & Replace Tool
Regex, wildcard, whole-word, and case-sensitive search with live match highlighting and instant replace preview — fully private, runs in your browser.
About This Tool
What Is Find & Replace?
Instant text search
Find and replace is a core text editing function that locates specific words, phrases, or patterns within a block of text and substitutes them with new content in one pass. No installs, no accounts, no text sent to any server.
Literal and pattern matching
Search for exact strings, use regular expressions for complex pattern matching, or use wildcards (* ?) for flexible glob-style searches. Three modes cover every text editing workflow from simple word swaps to deep structural transformations.
Live highlighting and preview
Every match is highlighted in the input panel as you type. The output panel shows a real-time preview of the replaced text so you can verify the result before committing. Navigate matches one by one with Prev and Next.
How It Works
How Find & Replace Works
Step 1 — Paste your text
Upload a TXT file or paste any text into the input panel. The tool accepts plain text of any length — articles, code, CSV exports, configuration files, log entries, and scripts.
Step 2 — Enter your search query
Type the word, phrase, or pattern you want to find in the sidebar. Choose your search mode, set match options like case sensitivity and whole-word matching, then watch matches highlight instantly.
Step 3 — Replace and download
Enter a replacement string and click Replace All to transform every match at once, or use Replace Current to step through matches individually. Copy the result or download it as a TXT file.
Regex Guide
Regular Expression Search Explained
What is a regex?
A regular expression is a sequence of characters that defines a search pattern. Instead of matching a fixed string, a regex can match entire classes of text — digits, words, whitespace, URLs, email addresses — using syntax like \d+, \w+, and [a-z].
Common patterns
Use \d+ to match numbers, \b\w+\b for whole words, ^ for line start, $ for line end, .+ for any non-empty line, and \s+ for whitespace. Combine with quantifiers *, +, and ?.
Capture groups
Wrap parts of your pattern in parentheses: (\w+)\s(\w+) captures two words. Reference them in Replace with $1 and $2 — perfect for rearranging names, reformatting dates, and transforming structured data.
Examples
Common Find & Replace Examples
Acme Corp
Stackaris Inc
\d+
[NUMBER]
(\w+),\s*(\w+)
$2 $1
Use Cases
Text Cleanup and Editing Use Cases
Content editors
Swap brand names, correct repeated misspellings, update outdated terminology, and reformat dates or phone numbers throughout a document in a single pass.
Developers
Rename variables, update import paths, replace API endpoints, strip debug statements, convert camelCase to snake_case with capture groups, and clean configuration files.
Data analysts
Normalise delimiters in CSV exports, strip currency symbols, replace null placeholders, standardise date formats, and prepare text datasets for import into spreadsheets or databases.
SEO professionals
Update outdated keyword phrases across meta descriptions, swap old anchor text, correct URL slugs in bulk-exported content, and standardise heading capitalisation.
Writers and editors
Replace British spellings with American variants, update character names mid-draft, strip repeated filler phrases, and clean up pasted content from multiple sources.
System administrators
Edit configuration files and shell scripts, replace IP addresses and hostnames, clean log entries, normalise environment variable names, and bulk-update cron job paths.
FAQs
Find & replace questions
Does this tool send my text to a server?
No. Every search, highlight, and replacement runs entirely in your browser using JavaScript. Your text never leaves the page and nothing is stored on any remote server.
How do I use Regular Expression (Regex) mode?
Select "Regular Expression" in the Search Mode options, then type a valid JavaScript regex in the Find field — for example \d+ to match all numbers, or \b\w{5,}\b for words five or more characters long. The Replace field supports capture group references like $1 and $2.
What does Wildcard mode do?
Wildcard mode lets you use * to match any sequence of characters and ? to match a single character. For example, color* matches "color", "colored", and "coloring".
What does Preserve Case do during replacement?
When Preserve Case is enabled, the tool matches the capitalisation style of each matched word and applies it to the replacement. ALL CAPS originals produce uppercase replacements; Title Case originals produce title-cased replacements.
Can I step through matches one at a time?
Yes. Use the Previous and Next buttons to navigate between matches. The current match is highlighted in orange. Click Replace Current Match to replace only that match and automatically advance to the next one.
How does the Undo function work?
Every Replace and Replace All operation saves the previous text state to an undo stack (up to 50 levels). Click Undo Last Replace to restore the text to exactly how it was before the last operation.
What are Quick Patterns?
Quick Patterns are preset regex patterns for common targets — Numbers, URLs, Email Addresses, Empty Lines, Duplicate Lines, and Special Characters. Enabling one loads the corresponding pattern into the Find field in Regex mode so you can immediately search and replace that content type.
Is there a text size limit?
There is no enforced size limit. All processing happens in the browser, so practical limits depend on your device's memory. Most modern computers handle hundreds of thousands of characters without noticeable slowdown.