Regex Tester
Test JavaScript regex with live match highlighting & groups.
See how it works
Watch a quick simulation of this tool in action — no file needed.
How to use Regex Tester
Follow these steps — everything happens instantly in your browser.
- 1
Step 1. Enter your regex pattern (without the surrounding slashes).
- 2
Step 2. Toggle the flags you need (g, i, m, s, u, y).
- 3
Step 3. Type or paste the text to test against.
- 4
Step 4. Review the highlighted matches and the per-match group table.
Why use this tool
Frequently asked questions
Everything you might want to know about regex tester.
Popular
JSON Formatter
Beautify, minify and validate JSON — 100% in your browser.
Trending
URL Encode / Decode
Percent-encode or decode URLs and query strings — locally.
Trending
Base64 Encode / Decode
Convert text to and from Base64 — Unicode-safe, no uploads.
Trending
Markdown Preview
Write Markdown and see the rendered HTML live — side by side.