What you can do
- JavaScript syntax with the g, i, m, s and u flags.
- Match highlighting updated as you type.
- A table of capture groups, named groups included.
- Replacement preview with $1, $2 and $<name>.
- Runs in a Web Worker with a timeout: a pattern with catastrophic backtracking won't freeze the page.
Frequently asked questions
Which regex syntax is used?
JavaScript (ECMAScript), the same as Node.js and browsers. It's very close to Java, Python and PCRE, but some advanced features may differ.
What happens with a regex that never ends?
The test runs in a separate Web Worker with a timeout: if the pattern takes too long, execution is stopped and the page stays responsive.
Can I try a replacement?
Yes. Write the replacement text using $1, $2 or $<name> for groups and see the result immediately.
More developer tools
- JSON formatter and validator โ Format, minify, validate with the error's line and column, and sort keys, without losing precision on big numbers.
- XML formatter โ Format, minify and check it's well-formed (SOAP included, unfortunately).
- Base64 encode and decode โ Encode and decode UTF-8 text, URL-safe variant, files and binary content.
- JWT decoder โ Read header and payload, with issue and expiry dates in plain language.
- URL encode, decode and parser โ Encode and decode, and break a URL down into its parameters.
- JSON, YAML and CSV converter โ Conversion to and from JSON, with automatic, comma or semicolon delimiter.
- SHA-256 and HMAC hash generator โ SHA-1/256/384/512 and HMAC of text and files, with checksum verification.
- UUID v4 and v7 generator โ Bulk v4 and v7 generation, and inspection of existing UUIDs with creation date.
- Diff checker for text and JSON โ Compare two texts or JSON documents with word-level highlighting and patch export.
- Unix epoch timestamp converter โ Unix epoch in seconds, milliseconds, micro and nano, time zones and ISO week.
- Cron expression explainer โ Plain-English explanation of crontab, Spring and Quartz expressions with the next runs.
- Working days calculator โ Man-days and hours between two dates or a deadline N days out, with holidays, patron saint and time off.