Regex left off
Patterns like \s+ or \d+ are treated as plain text unless Regex is enabled.
Fix: Turn on the Regex switch when you want pattern matching.
Search tools and pages.
Find and replace text patterns
Output will appear here...
content bottom • up to 300x250
sidebar • 160x600
Written by Giorgos Kostas. Last reviewed:
Find and Replace is an online text replacement tool for changing or removing repeated text in a browser. By default it searches for literal text, so characters like underscores, commas, spaces, or words are matched exactly as typed.
For pattern-based cleanup, turn on Regex mode and use a JavaScript regular expression. Regex mode replaces all matches globally, which is useful for removing repeated whitespace, stripping numbers, or normalizing multiple separators at once.
Example 1 - remove underscores Input: This_is_a_test Find: _ Replace with: (empty) Example 2 - normalize whitespace with Regex on Input: alpha beta gamma Find: \s+ Replace with: space
Example 1 output: Thisisatest Example 2 output: alpha beta gamma
Patterns like \s+ or \d+ are treated as plain text unless Regex is enabled.
Fix: Turn on the Regex switch when you want pattern matching.
An empty replacement removes every match.
Fix: Type replacement text if you want to substitute instead of delete.
Paste your text, type _ in the Find field, leave Replace with empty, and run Replace. For This_is_a_test, the output is Thisisatest.
Yes. Turn on Regex mode to use JavaScript regular expressions. The tool applies the pattern globally, so every match is replaced.
Every match is removed. This is useful for deleting underscores, commas, spaces, digits, or any regex pattern you match.
No. The default mode is literal text replacement so special characters are safe unless you intentionally turn on Regex.
No. Find and Replace runs in your browser and keeps pasted text local.
Pair Find and Replace with whitespace, punctuation, line, and case tools for text cleanup workflows. You can also browse the full String Utilities category for more options.
Remove all whitespace from text
Remove punctuation marks from text
Remove empty lines from text
Convert text between different cases (camel, snake, kebab, etc.)
Flatten multi-line text into a single line with a configurable separator
Split a single-line string on any delimiter to produce one value per line
Convert binary to readable text
Count characters in text
Extract every email address from a block of text, deduplicated and newline-separated
Convert hexadecimal to text
Count lines in text
Randomise the order of lines in any multi-line text