Test a JavaScript regular expression against sample text and see every match highlighted live.
Updated
/ 5 - Be the first to rate this tool Thanks for rating!
Verification failed - please try again.
Quick check
Please verify you're not a robot to submit your rating.
Give feedback
Tell us what you think about Test a regular expression online.
- Runs entirely in your browser — your text is never sent to a server
- Uses JavaScript's native RegExp engine, with every match highlighted live
- Free, no account required
How it works
-
1
Paste the string, expression, or value you want to inspect.
-
2
It's parsed instantly and broken down on screen.
-
3
Review the details or matches highlighted for you.
-
4
Copy any part of the result you need.
Why use this tool
Every dev utility, one place
Format, convert, encode, decode, and generate — no more juggling ten tabs.
100% private, always
Every tool runs in your browser — your code and data are never sent anywhere.
Works on any device
Runs on Windows, Mac, Linux, iOS, and Android — nothing to install.
Instant results
No queues, no build step — results update as you type.
Built to handle real data
Full Unicode support and RFC-compliant parsing, edge cases included.
Free, always
Free to use, with no rate limits, sign-up, or trial period.
Frequently asked questions
It utilizes the native JavaScript RegExp engine, which is highly compatible with most modern web development.
Yes, modern browser engines fully support positive and negative lookbehinds in their regex implementations.
You can easily toggle global, case-insensitive, and multiline flags directly from the interface.
Each captured subgroup is highlighted in a distinct color to clearly separate it from the full match.
Extremely complex expressions can cause catastrophic backtracking; ensure your patterns are optimized.
From the blog
Reading a JWT Without Trusting It: Claims, Expiry, and the Signature Trap
Decoding a JWT takes a second. Verifying one is a different job entirely — and confusing the two is how auth bugs ship. Here is how to read a token safely while you debug.
Mastering Base64: What It Is, How It Works, and When Not to Use It
Base64 is everywhere in modern web development, from data URIs to authentication headers. Here is a deep dive into how it works and common pitfalls to avoid.
Demystifying JSON: How to Troubleshoot Common Parsing Errors
JSON is the backbone of web APIs, but syntax mistakes can halt your code. Here is how to identify and fix missing commas, unescaped strings, and trailing characters.
Recently viewed
Format and re-indent YAML online
Normalize inconsistent YAML indentation to a consistent width instantly in your browser.
Generate random UUIDs (v4)
Generate one or many cryptographically random v4 UUIDs instantly in your browser.
Generate Lorem Ipsum placeholder text
Generate paragraphs, sentences, or words of Lorem Ipsum placeholder text instantly in your browser.
Generate a URL-friendly slug
Convert any text into a clean, URL-safe slug instantly in your browser.
Related tools
Convert Unix file permissions
Convert between octal (e.g. 755) and symbolic (rwxr-xr-x) file permission notation, in your browser.
Calculate a subnet from CIDR notation
Get the network address, broadcast address, subnet mask, and usable host range for any CIDR block, in your browser.
Parse a cron expression and see its next run times
Paste a 5-field cron expression to get a plain-English summary and the next 5 run times, in your browser.
Build a curl command online
Build a shell-safe curl command from a method, URL, headers, and body, in your browser.
Parse and view HTTP headers online
Paste raw HTTP request or response headers to see them parsed into a labeled table, in your browser.
Validate JSON against a JSON Schema
Paste a JSON document and a JSON Schema to see every validation error with its instance path. Supports draft 2020-12 and draft-07, entirely in your browser.
Repair a damaged PDF for free
Attempt to recover a PDF that won't open or renders incorrectly.
Resize images in bulk for free
Resize many JPG, PNG, or WebP images at once by percentage, dimensions, or max file size, right in your browser.
Resize an image online for free
Resize JPG, PNG, or WebP images to exact dimensions or a percentage, right in your browser.
Rotate an image online for free
Rotate a JPG, PNG, or WebP image by 90°, 180°, or a custom angle, right in your browser.
Rotate PDF pages for free
Rotate one page or an entire PDF document to the correct orientation.
Scan documents to PDF for free
Capture pages with your phone camera, or upload photos, to build a PDF.