FIND & REPLACE TOOL
Search text and swap in replacements, with plain text or regex matching. Nothing leaves your browser.
In short
Find and replace text instantly with options for case sensitivity, regular expressions, and replacing all matches or just the first. Runs entirely in your browser.
Replacements made: 2
How to find and replace text
- 1
Paste your text into the input box, then type what to find and what to replace it with.
- 2
Toggle case sensitivity, regex matching, or replace-all vs. replace-first depending on what you need.
- 3
Copy the result from the output box — it updates live and shows how many replacements were made.
Questions
- How do I use regular expressions in the Find field?
- Turn on "Use regex" and type a valid JavaScript regular expression pattern into the Find field, such as \d+ to match numbers. If the pattern is invalid, the tool shows an error message and leaves your text unchanged instead of crashing.
- What's the difference between replace all and replace first?
- Replace all finds and replaces every match in the text. Replace first only replaces the earliest match and leaves the rest untouched, which is useful when you only want to fix one occurrence.
- Does case sensitivity affect regex matches too?
- Yes. When case sensitive is off, both plain text and regex searches ignore letter case (equivalent to the /i flag). Turn it on to match exact casing only.
- Is my text uploaded anywhere?
- No. Everything runs locally in your browser with JavaScript — your text, find pattern, and replacement are never sent to a server.
Related tools
- Text CleanerTrim lines, collapse spaces, strip HTML tags, punctuation, or numbers in one pass.
- Number ExtractorPull every number out of pasted text, with a running sum of what's found.
- URL ExtractorPull every URL out of pasted text, deduplicated and one per line.
- Email ExtractorPull every email address out of pasted text, deduplicated and one per line.
- Text Diff CheckerCompare two blocks of text line by line and see what was added, removed, or unchanged.
- Remove Line BreaksJoin multi-line text into one block, replacing line breaks with a space or nothing.
- Remove Extra SpacesCollapse repeated spaces and tabs into one, with options to trim lines and drop empty ones.
- Add Prefix to LinesAdd a prefix, suffix, or running number to every line of text.
Updated