🔍 Find and Replace Text

Find every occurrence of a word or phrase and replace it instantly, across any block of text.

ℹ️ About This Tool

Most word processors have a basic find-and-replace feature, but it's often buried in a menu, limited in what it can match, or simply unavailable when you're working with plain text outside a full editor — a block of code, a CSV export, or notes pasted from somewhere else. This tool gives you a fast, flexible find-and-replace that works on any text you paste in, with the same kind of options found in proper code editors: case sensitivity, whole-word matching, and even regular expression support for more advanced patterns.

Case-sensitive matching means "Apple" and "apple" are treated as different strings, which matters when you need to replace a specific capitalization without touching others. Whole-word matching prevents a search for "cat" from also matching the "cat" inside "category" or "concatenate." The regex option unlocks pattern-based find-and-replace for anyone comfortable with regular expressions — useful for things like removing all numbers, matching variable patterns, or replacing anything that fits a structure rather than an exact phrase.

How to use:

  1. Enter the text you want to find, and what to replace it with.
  2. Turn on any matching options you need (case-sensitive, whole word, or regex).
  3. Paste your text below, click "Replace All," then copy or download the result.

A note on regex mode

When the regex option is on, the "Find" field is treated as a regular expression pattern rather than literal text, which means characters like ., *, +, and parentheses have special meaning rather than matching themselves. This is powerful for advanced replacements but easy to get wrong if you're not familiar with regex syntax — if your pattern doesn't behave as expected, try turning the option off and matching the literal text instead, or double-check your pattern against a regex reference.

Developers reach for this tool constantly when cleaning up data dumps, renaming variables consistently across a pasted code snippet, or stripping out unwanted formatting characters from text copied out of another program. Writers and editors use the plain matching mode just as often — swapping a character's name throughout a draft, fixing a repeated typo across a long document, or standardizing inconsistent spelling without manually scanning every paragraph. Because the whole operation runs instantly in the browser on text you've already pasted in, there's no waiting, no file upload, and no limit on how many times you can adjust the find and replace terms before landing on exactly the result you need.


ℹ️ इस टूल के बारे में

ज़्यादातर word processors में एक basic find-and-replace feature होता है, पर वह अक्सर किसी menu में छुपा होता है, सीमित होता है कि क्या match कर सकता है, या बिल्कुल उपलब्ध नहीं होता जब plain text के साथ किसी पूरे editor के बाहर काम कर रहे हों — कोई code का हिस्सा, CSV export, या कहीं से paste किए गए notes। यह tool किसी भी paste किए गए text पर तेज़, flexible find-and-replace देता है, असली code editors जैसे options के साथ: case sensitivity, whole-word matching, और advanced patterns के लिए regular expression support भी।

Case-sensitive matching का मतलब है "Apple" और "apple" को अलग strings माना जाता है, जो तब मायने रखता है जब किसी खास capitalization को बिना बाकी छुए replace करना हो। Whole-word matching "cat" की search को "category" या "concatenate" के अंदर वाले "cat" से matching होने से रोकता है। Regex option उन लोगों के लिए pattern-based find-and-replace खोलता है जो regular expressions से सहज हैं — सभी numbers हटाने, variable patterns match करने, या किसी exact phrase की बजाय किसी structure से मिलने वाली चीज़ें replace करने जैसे कामों के लिए उपयोगी।

इस्तेमाल कैसे करें:

  1. जो text ढूंढना है वह डालें, और किससे replace करना है वह भी।
  2. ज़रूरी matching options चालू करें (case-sensitive, whole word, या regex)।
  3. नीचे अपना text paste करें, "Replace All" दबाएं, फिर result copy या download करें।

Regex mode पर एक नोट

जब regex option चालू हो, तो "Find" field को literal text की बजाय एक regular expression pattern माना जाता है, जिसका मतलब है ., *, +, और brackets जैसे characters का खुद से मेल खाने की बजाय खास मतलब होता है। यह advanced replacements के लिए शक्तिशाली है पर अगर regex syntax से परिचित न हों तो गलत होना आसान है — अगर pattern उम्मीद के मुताबिक काम न करे, तो option बंद करके literal text match करके देखें, या अपने pattern को किसी regex reference से दोबारा जांच लें।

Developers इस tool का इस्तेमाल लगातार data dumps साफ़ करने, paste किए गए code snippet में variables का नाम consistently बदलने, या किसी और program से copy किए गए text में अनचाहे formatting characters हटाने के लिए करते हैं। Writers और editors plain matching mode का इस्तेमाल उतनी ही बार करते हैं — पूरे draft में किसी character का नाम बदलना, किसी लंबे document में बार-बार आने वाली typo ठीक करना, या हर paragraph हाथ से scan किए बिना असंगत spelling को एक जैसा करना। चूंकि पूरा operation पहले से paste किए गए text पर browser में तुरंत होता है, कोई इंतज़ार नहीं करना पड़ता, कोई file upload नहीं चाहिए, और find-replace terms को जितनी बार चाहें adjust कर सकते हैं जब तक बिल्कुल वही result न मिल जाए।

Frequently Asked Questions | अक्सर पूछे जाने वाले प्रश्न

Q. What does "Case-sensitive" do? | "Case-sensitive" क्या करता है?
When on, "Apple" and "apple" are treated as different text; when off, the search ignores capitalization entirely. | जब चालू हो, "Apple" और "apple" को अलग text माना जाता है; जब बंद हो, search capitalization को पूरी तरह नज़रअंदाज़ करती है।

Q. What does "Whole word only" do? | "Whole word only" क्या करता है?
It prevents a search for "cat" from matching the "cat" inside longer words like "category" or "concatenate." | यह "cat" की search को "category" या "concatenate" जैसे लंबे words के अंदर वाले "cat" से matching होने से रोकता है।

Q. How does regex mode change the "Find" field? | Regex mode "Find" field को कैसे बदलता है?
With regex on, the Find field is read as a regular expression pattern, so characters like . * + ( ) have special meaning rather than matching themselves literally. | Regex चालू होने पर, Find field को regular expression pattern के रूप में पढ़ा जाता है, तो . * + ( ) जैसे characters का खुद से literally मेल खाने की बजाय खास मतलब होता है।

Q. What if I get an "Invalid pattern" error? | अगर मुझे "Invalid pattern" error मिले तो क्या करूं?
This means your regex syntax is malformed — check for unmatched parentheses or brackets, or turn off regex mode to search for the literal text instead. | इसका मतलब है आपका regex syntax malformed है — unmatched parentheses या brackets जांचें, या literal text search करने के लिए regex mode बंद कर दें।

Q. Does "Replace All" replace one occurrence or every occurrence? | "Replace All" एक occurrence replace करता है या सभी?
Every matching occurrence in the text is replaced in one click, not just the first one. | Text में हर matching occurrence एक click में replace हो जाती है, सिर्फ़ पहली वाली नहीं।

Q. Can I combine whole-word and case-sensitive options? | क्या मैं whole-word और case-sensitive options combine कर सकता हूँ?
Yes — all three options (case-sensitive, whole word, regex) can be toggled independently and combined as needed. | हाँ — तीनों options (case-sensitive, whole word, regex) independently toggle किए जा सकते हैं और ज़रूरत के अनुसार combine किए जा सकते हैं।

Q. How many matches were replaced? | कितनी matches replace हुईं?
The status message below the button shows the exact count of occurrences replaced after each click. | बटन के नीचे status message हर click के बाद replace हुई occurrences की exact count दिखाता है।

Q. What happens if "Find" is empty? | अगर "Find" खाली हो तो क्या होता है?
The tool shows a warning asking you to enter text to find, and no replacement happens until you do. | Tool एक warning दिखाता है कि find करने के लिए text डालें, और जब तक आप न डालें replacement नहीं होती।

Q. Can I download or copy the replaced text? | क्या मैं replace किया गया text download या copy कर सकता हूँ?
Yes — use "Copy Result" to copy it to your clipboard or "Download .txt" to save it as a text file. | हाँ — इसे clipboard पर copy करने के लिए "Copy Result" या text file के रूप में save करने के लिए "Download .txt" इस्तेमाल करें।

Q. Is my text uploaded to a server? | क्या मेरा text server पर upload होता है?
No — the find-and-replace operation runs entirely in your browser using JavaScript; nothing leaves your device. | नहीं — find-and-replace operation पूरी तरह आपके browser में JavaScript का उपयोग करके होता है; कुछ भी आपके device से बाहर नहीं जाता।

Q. Can I replace text with an empty string to delete it? | क्या मैं text हटाने के लिए उसे empty string से replace कर सकता हूँ?
Yes — leave the "Replace with" field empty and every match of "Find" will simply be removed from the text. | हाँ — "Replace with" field खाली छोड़ें और "Find" की हर match text से सीधे हटा दी जाएगी।