Regex Tester
Test regular expressions against sample text.
- On your device
- No signup
Private on your device
Your information stays on your device and is not uploaded.
Test regular expressions against sample text.
Build a printable regex cheat sheet for patterns you need.
Compare two pieces of text and highlight changes.
Format, minify, and validate JSON with optional key sorting.
Count characters with and without spaces in real time.
Compare two JSON documents and list structural differences.
Format, minify, and validate XML with readable indentation.
Compare two XML documents and list structural differences.
Test JavaScript regular expressions against sample text with highlighted matches, capture details, and token-by-token explanations. Runs locally in your browser.
Open the Regex Debugger form on this page, enter the values or file required for your task, and run the tool. Review the results panel and adjust inputs as needed. Your data stays on your device and is not uploaded.
Enter a regular expression and sample text to debug matches, capture groups, highlighted output, and token-by-token explanations. Everything runs locally in your browser.
Results are based on the inputs you provide and may not cover every edge case. This tool is for general use and is not professional advice.
Your data stays on your device and is not uploaded.
FAQ
Yes. It is free to use and you do not need to sign in or create an account.
See the privacy note on this page. Many tools run on your device; some heavier file tools may use secure temporary processing when required.
Yes. Open this page on your phone or tablet, enter your inputs, and use the on-screen controls.
Page last reviewed: