Regex Tester
Test JavaScript regular expressions with live match highlighting, capture groups and replace preview.
Open toolRun several find-and-replace rules in order, including regex, and accept or reject each change before copying.
Build a list of find-and-replace rules and run them in order, each on the result of the one before. Each rule can match plain text or a regular expression, match case or not, and match whole words only. Regex replacements support $1, $<name>, $& and $$.
Before you copy anything, every change is listed with its surrounding text, the removed part struck through and the new part highlighted. Untick any change to keep that spot as it was, or accept or reject a whole rule. Regular expressions run in a background worker with a 1.5-second limit, so a pattern that backtracks badly is stopped instead of freezing the page. Rules can be downloaded as CSV to reuse later. Your text is processed as you type, entirely in your browser. Nothing is sent to a server.
Your text
Plain text, Any text format
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Ready to download or copy
Add one or more rules (find, replace and options).
Paste your text and review each listed change.
Untick changes you don’t want, then copy or download the result.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Paste your text and review each listed change.
Untick changes you don’t want, then copy or download the result.
Test JavaScript regular expressions with live match highlighting, capture groups and replace preview.
Open toolRemove extra spaces, empty lines, HTML tags, smart quotes and invisible characters in one click.
Open toolCompare two texts or code snippets line by line, word by word or character by character, side by side or as a unified diff.
Open toolConvert text to UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case and more.
Open tool