Find and Replace Text Online
Replace every match in pasted text — case-sensitive toggle, instant match count, nothing leaves your browser.
Why use this tool
01Free online find-and-replace for plain text. Paste any multiline content, set a find string and a replacement, toggle case sensitivity, and copy the result. Shows the exact number of matches replaced. Runs entirely in your browser — no upload, no signup.
Paste text into the input, type what to find and what to replace it with, and the tool rewrites every occurrence in one pass. The output area updates the moment you type — there's no submit button, no round-trip, and no per-character throttle.
Toggle Case Sensitive when capitalization matters — useful for variable names in pasted code, environment-key cleanup (DATABASE_URL vs database_url), or anonymizing PII in logs without affecting unrelated lowercase words. The match counter tells you exactly how many replacements happened so you can verify the edit before copying.
Everything runs locally in your browser using a plain string replacement. Your text — secrets in logs, draft contracts, customer records, internal docs — never touches a server, never gets cached, and never gets logged. Safe to paste content you wouldn't paste into a remote SaaS find-and-replace.
This tool intentionally stays plain-text only. If you need regular expressions, multi-rule chains, or a side-by-side diff view, use our Text Diff Checker alongside it, or chain it with Trim Whitespace and Remove Duplicate Lines for a full cleanup pipeline.
How to use
02Quick checks before you copy
03Confirm the input is the format you intended.
Scan the result before using it in a document, URL, config, or message.
Copy only the output you need.
Use Cases
Paste a function or config block and rename a variable in one shot — Case Sensitive ensures you don't touch unrelated lowercase words. Faster than launching an IDE for a quick rename in a Slack thread or doc.
Remove user emails, customer IDs, or API keys before pasting a log into a ticket. Run find-and-replace once per sensitive value with Case Sensitive on, verify the match count drops to zero, then paste safely.
Swap inconsistent column values — "N/A" to empty, full state names to two-letter codes, smart quotes to straight quotes — across thousands of rows in one pass before importing the data.
When migrating docs between platforms (Notion → Markdown, Confluence → GitHub Wiki), use find-and-replace to swap link prefixes, brand names, or version numbers in bulk before exporting.
Replace real company names, project codenames, or person names with placeholders before pasting an internal example into a public forum, Stack Overflow, or a bug report.
Tips & Tricks
- 01Match count is your verification receipt
Before copying the output, glance at the match number. Zero matches usually means a typo or wrong case — not a missing target. Hundreds of matches in a short text usually means your find string is too short and is hitting substrings.
- 02Case Sensitive is on by default for code
Case Sensitive should be ON whenever you're working with code, env keys, or filenames. Turn it OFF for prose where capitalization at the start of sentences should also match (e.g., replacing "colour" with "color" in body text).
- 03Find an exact substring, not a regex pattern
This tool matches plain strings only — no \b word boundaries, no .* wildcards. To find "foo" but not "foobar", make your find string "foo " (with a trailing space) or include surrounding context characters.
- 04Chain edits in a deliberate order
When making multiple replacements, do them one at a time and check the match count after each. Doing them out of order can corrupt earlier edits — for example, replacing "old" with "new" first then "new" with "latest" turns every original "old" into "latest".
FAQ
04Does it replace all matches at once?
Yes. Every occurrence of the find string in the input is replaced in a single pass. The output area is regenerated live as you type, and the match counter shows exactly how many replacements happened — your verification receipt before copying.
Does it support regular expressions?
No. This tool matches plain strings only — no \b boundaries, no .* wildcards, no capture groups. If you need regex, paste your source into a code editor (VS Code, Sublime, JetBrains) which all support regex find-and-replace, or use a regex-aware online tool. We deliberately keep this one fast and predictable.
What does Case Sensitive actually do?
When Case Sensitive is OFF, the find string "Cat" matches Cat, cat, CAT, and CaT. When ON, "Cat" only matches the exact sequence Cat — useful for code, environment variable keys, file paths, and any context where capitalization carries meaning. The replacement string is inserted verbatim regardless of the toggle.
Can I use it on multiline content like CSV or pasted code?
Yes. Line breaks are preserved and the tool searches across the entire pasted content as one string. CSV rows, multi-line code, prose paragraphs, and log dumps all work. Empty lines and trailing whitespace are kept exactly as you pasted them.
Is my text uploaded or stored anywhere?
No. Everything runs locally in your browser using JavaScript's built-in string replacement. No server call, no analytics on your content, no logs. You can paste secrets, PII, or draft contracts safely — when you close the tab, the text is gone.
Can I undo a replacement?
There is no undo button — the output is recomputed from your current input and find/replace fields. To "undo", swap the find and replace values and run again. As a habit, keep the original input in a separate scratch area or temporary file until you're sure the result is correct.
Why does my replacement seem to over-match?
Plain-string matching has no word boundaries, so "the" matches inside "there", "them", and "breathe". Either include surrounding spaces in your find string (" the ") or use Case Sensitive to narrow the match. If you need precise word-only replacements, regex in a code editor is the right tool.
Does the tool work offline?
After the page loads, yes — all processing happens client-side. Future loads still need network access to fetch the page itself (this isn't a PWA), but the replacement logic uses zero network.
Related tools
03Text Diff Checker — Line, Word & Character→
Compare two text blocks and see additions, deletions, and changes — switchable between line, word, and character granularity.
Trim Whitespace→
Trim extra whitespace from text lines.
Remove Duplicate Lines→
Remove repeated lines while preserving order.