Free Regex Tester — Test Regular Expressions Online
Type a pattern and text and see the matches highlighted.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Step 1: Open Regex Tester and add your input
Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.
- 2Step 2: What Regex Tester does
Test regular expressions with live highlighting and match details.
- 3Step 3: Read the result and compare
The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.
- 4Step 4: Copy or save it
Copy the result or download it. For an important decision, confirm it with the official source or an adviser.
About this tool
Build and test regular expressions with JavaScript syntax. Matches are highlighted in your text and listed with their position and groups. Set flags such as g, i, m, s, u and y. Good for learning and for checking patterns before using them in code.
When to use it
Test regular expressions with live highlighting and match details, before you use them in code.
Tips
Start simple and add parts. Use flags such as g and i. Watch for greedy matches.
Privacy
Everything runs in your browser, so your data is not uploaded or stored.
Tips for best results
Take a moment to read the options before you start, and try the tool with a small sample first. Everything runs in your browser on your own device, so nothing you type or add is uploaded, and closing the tab clears it. If something does not look right, reload the page and try again, or use the report link on this page to tell us what went wrong so we can fix it. If a result still looks wrong, change one value at a time to see which box matters most. Bookmark this page if you will need the tool again.
Quick facts
- Category: Developer & Data
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in many languages.
- Content last reviewed:
Frequently asked questions
Which regex flavour is used?
JavaScript, the one used in browsers and Node.js.
Why do I see an error?
The pattern is not valid. The message tells you what is wrong, such as an unclosed bracket.
Which flavour is used?
JavaScript regular expressions.
Can I see groups?
Yes, capture groups are listed for each match.
