Text Diff Checker
Compare two texts online and see added and removed lines highlighted.
Enter a pattern and test text below. Matches are highlighted live as you type, with capture groups listed for each match. Uses your browser's native JavaScript regex engine.
Pattern, flags, and test text
Highlights update as you type, with capture groups below.
Matches
Capture groups
Live preview is bounded for safety: patterns over 500 characters and inputs over 20,000 characters skip highlighting, and each scan stops after 300ms. Everything runs in your browser.
Input
Pattern: \b(19|20)\d{2}\b
Text: Born 1991, graduated 2013. Output
2 matches: 1991, 2013 These buttons share the page link, not your input.
Your current input will be stored in the link after the # symbol, not uploaded to Handy Browser Tools. Anyone with this link can read that text. If you send or post it, the service you choose also receives the link. Do not include passwords or private information.
JavaScript (ECMAScript), the same engine your browser runs. Most patterns behave like PCRE, but lookbehind and some Unicode features vary by flavor.
g finds all matches instead of the first, i ignores case, m makes ^ and $ match line starts/ends, s lets . match newlines, u enables full Unicode mode.
The pattern isn't valid JavaScript regex syntax. The exact engine error is shown so you can fix it. Remember to escape special characters like . ( ) [ ] with a backslash.
Compare two texts online and see added and removed lines highlighted.
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case and more, free, instant and 100% in your browser.
Convert any title into a clean, URL-friendly slug.