Find & Replace

Find and replace text in bulk

100% free. Runs entirely in your browser - your files and data never leave your device and nothing is uploaded to any server.

search
edit
Type in Find to see matches live. Enter = next, Shift+Enter = previous, Ctrl+Enter = replace all.
Input
compare

Type in Find to preview every change here before you apply it.

Characters
0
Words
0
Lines
0
Matches
0
Replaced
0

lockEverything runs in your browser. Your text and files are never uploaded. How much text fits depends on your device memory; files up to 25 MB each.

About this tool

Replacing every instance of a word by hand is slow and unreliable - people miss occurrences, and the ones they miss are usually the ones that matter. A bulk find and replace does it in a single pass. Three options decide whether the result is what you intended. Case sensitivity determines whether "Word" and "word" are the same match, which matters when renaming a variable but not when fixing a typo. Whole word matching prevents the classic disaster: replacing "cat" without it also rewrites "category", "cathedral" and "communicate". And regex turns the search into a pattern rather than a literal string, so you can match dates, phone numbers or anything with variable content. All three are available here, along with a live preview: every match is highlighted as you type, and the changes are shown removed-and-added before anything is replaced. If a replace still goes wrong, undo takes it back. Everything runs in your browser.

How to use this tool

  1. Paste your text or open filesType, paste, or drop in TXT, CSV, Markdown, JSON, HTML, code, subtitle, log, Word or PDF files.
  2. Enter what to find and what to replace it withLeave the replacement empty to delete every match instead of substituting.
  3. Set the optionsCase sensitive for exact matching, whole word to avoid matching inside longer words, regex for patterns.
  4. Check the preview, then replaceStep through matches one by one or replace them all. Undo, redo and the edit history take you back to any earlier step.

Avoiding find-and-replace mistakes

Turn on whole words so replacing "cat" does not change "category", and match case when capitals matter. Check the number of matches before you replace - if it is far higher than expected, the search is catching more than you meant.

Regex patterns handle jobs plain text cannot, such as \s+ to collapse runs of spaces or \d{4} to find four-digit years.

Key features

  • Live highlighting with a match counter, next/previous and replace one at a time.
  • Before/after preview showing removed and added text, plus undo, redo and restore original.
  • Bulk rules: run many find-and-replace pairs in order, each with its own match count.
  • Runs in your browser, so contracts and internal documents are never uploaded.
  • Word files keep their formatting; all files can be downloaded together as a ZIP. No account.

Common uses

  • Renaming a term consistently across a long document.
  • Fixing a typo repeated throughout a draft.
  • Stripping unwanted characters or formatting from pasted text.
  • Updating a company or product name across documentation.
  • Reformatting a list by replacing separators - commas to newlines, for example.

Tips for better results

  • Turn on whole-word matching when replacing short words. Without it, "cat" rewrites "category" and "communicate" too.
  • Use case-sensitive matching for code and identifiers, where capitalisation carries meaning.
  • Leave the replacement field empty to delete matches - it is the quickest way to strip unwanted text.
  • Look at the Changes preview before a large replace. If the match count is far higher than expected, the search is too broad.
  • For complex patterns, build and test the regex in the Regex Tester first, where you can see exactly what it matches.

Mistakes to avoid

  • Replacing a short word without whole-word matching, which quietly corrupts longer words containing it.
  • Forgetting case sensitivity, so "Apple" and "apple" are both replaced when only one should be.
  • Running a regex you have not tested, which can match far more than intended.
  • Copying the result out and closing the page before checking it - the undo history only lives in this tab.
  • Replacing across an entire file when the change was only meant for one section.

Supported formats

  • TXT
  • CSV
  • MD
  • JSON
  • HTML
  • XML
  • CSS
  • JS
  • SQL
  • SRT
  • VTT
  • LOG
  • DOCX
  • PDF

Available options

  • Find
  • Replace
  • Replace all
  • Regex
  • Whole word
  • Match case
  • Preserve case
  • Bulk rules
  • Undo / Redo
  • ZIP download

Frequently asked questions

Paste your text, enter the search term and its replacement, set the options you need, and replace. Every occurrence is updated in one pass.

Yes. No account and nothing uploaded. There is no fixed length limit - how much text fits depends on your device memory - and files can be up to 25 MB each.

Yes - regex is supported. That lets you match variable content like dates, phone numbers or anything following a pattern rather than a fixed string.

Yes, via a toggle. Use it when capitalisation matters - code identifiers, proper nouns - and leave it off when fixing a typo that appears in both cases.

Turn on whole-word matching. Without it, replacing "cat" also rewrites "category", "cathedral" and "communicate" - the most common bulk-replace mistake there is.

All of them, in a single pass. That is the point of doing it here rather than one at a time.

No. Everything runs in your browser, which matters because bulk edits are often applied to contracts, internal documents and source code.

Leave the replacement field empty. Every match is removed, which is the fastest way to strip repeated unwanted content.

Yes. Bulk rules let you add many find-and-replace pairs. They run from top to bottom, each one on the result of the one before, and you can switch rules off, reorder them, and export or import them as a file.

Yes. Undo and redo step through your changes, the history list jumps to any earlier step, and Restore original brings back the text as it was opened.

Word (.docx) files are edited inside the document, so bold, italics and fonts are kept, and replacements in headers and footers are included. PDFs are read as text and downloaded as a .txt file; scanned PDFs need OCR first.

Useful in

Related guides