What is Find and Replace?
Find and Replace lets you search for text patterns and swap them across your content. Supports case-sensitive matching, whole word search, and regular expressions.
Three toggles let you tighten or relax the match: case sensitivity, whole-word boundaries, and a full JavaScript regex mode with capture groups. A live match counter shows how many hits the current search has before you commit, and a side-by-side highlight view marks each occurrence in the input and the result text. Output can be copied to the clipboard or saved as a .txt file.
How to use
- Paste your text content in the main text area.
- Enter the search term in the 'Find' field and the replacement in the 'Replace' field.
- Click 'Replace All' to make all substitutions at once, or 'Replace' to handle them one at a time.
When to use
- Fixing a misspelled name or product term that appears 50 times in a long document.
- Converting a CSV to TSV by swapping every comma for a tab character.
- Stripping unwanted boilerplate (cookie notices, signatures) out of pasted text in one pass.
Result
Paste a CSV file and replace all commas with tabs to convert it to TSV format, or fix a misspelled name 'Jonh' to 'John' across an entire document.
FAQ
- Does the tool support regular expressions and capture groups?
- Yes. Turn on the Use Regex toggle and the find field accepts standard JavaScript regex. You can reference capture groups in the replacement field with $1, $2, and so on. Invalid patterns show an inline error instead of crashing.
- How do I match an exact word and not a substring inside another word?
- Turn on Whole Word. With that off, searching for cat in concatenate would replace three letters in the middle. With it on, only the standalone word cat matches and longer words containing those letters are skipped.
- Can I insert line breaks, tabs, or other special characters in the replacement?
- Enable Use Regex and write the escape sequences directly in the replacement field. \n inserts a newline, \t inserts a tab. Without regex mode the replacement is treated as literal text and the backslash stays as a backslash.
- What happens to text I never replaced — does it stay exactly the same?
- Yes. Only the matching segments are touched. Whitespace, punctuation, line endings, and Unicode characters outside the matches are passed through byte for byte, so you can round-trip code or markup without corruption.
- Is there a limit on document size?
- There's no hard cap, but the textarea has to hold the whole document at once. A few megabytes of plain text is comfortable. For files dozens of megabytes large, a desktop editor like VS Code or sed/awk on the command line will respond faster.
Related Tools
Rhyme Finder
Find perfect and near rhymes for any word
Anagram Solver
Find all valid anagrams of any word
Unicode Lookup
Search Unicode by name or code
URL Encoder/Decoder
Encode and decode URLs instantly
NATO Phonetic Alphabet
Convert text to NATO phonetic alphabet
Paragraph Counter
Count paragraphs in your text