Regex Tester
Test a regular expression against your text, see every match highlighted and copy a match report. Runs entirely in your browser.
Code & Data In your browser
Text & lists
Replace every occurrence of a word or pattern in your text. Match case, limit to whole words, or switch on regular expressions with $1 backreferences. Your text stays in this browser.
Private by design: no text is uploaded or stored.
Private by design: no text is uploaded or stored.
Try an example
Updates when you replace or change an option.
By default matching ignores case, so “cat” also replaces “Cat”. Turn on Match case for an exact match, or Whole word only so “cat” never touches “category”. Use regular expression treats the Find field as a pattern — \d matches a digit, and $1 in the replacement inserts the first captured group. Replacing only changes the matched text; everything else is left exactly as it was.
0:26
Video · 0:26
Swap every mention in one go, not one by one.
Test a regular expression against your text, see every match highlighted and copy a match report. Runs entirely in your browser.
Code & Data In your browser
Count lines, words, Unicode characters, UTF-8 bytes, paragraphs and reading time locally in your browser.
Text & Lists In your browser
Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE — all nine at once, each with its own copy button. Works entirely in your browser.
Text & Lists In your browser
Compare two blocks of text line by line and see exactly what was added, removed or left unchanged. Works entirely in your browser.
Text & Lists In your browser
Collapse repeated spaces and tabs, trim lines, remove blank lines and tidy the whole document. Works entirely in your browser.
Text & Lists In your browser
Join multiple lines into one line with a space, comma, semicolon, pipe or no separator. Trim lines and skip blanks. Works entirely in your browser.
Text & Lists In your browser
We value your privacy
We would like to use optional analytics cookies to understand how the site is used and improve it. Nothing is loaded until you choose, and you can change your decision at any time. Privacy policy