Regex Explainer

Token-by-token

^ start of string / line (with m flag)
( capturing group ( ... )
[A-Za-z0-9._%+-] character class — match any of the listed characters
+ quantifier + — 1 or more times
) end of group
@ literal character "@"
( capturing group ( ... )
[A-Za-z0-9.-] character class — match any of the listed characters
+ quantifier + — 1 or more times
) end of group
\. escaped character "."
[A-Za-z] character class — match any of the listed characters
{2,} bounded quantifier {n} / {n,} / {n,m}
$ end of string / line (with m flag)

Regex Explainer — Free Online Tool

Breaks a JavaScript regular expression into its tokens and explains each one in plain language (anchors, groups, quantifiers, character classes, lookarounds, flags), showing the capture-group structure and matching flow — useful for learning regex, debugging patterns, and documenting validation rules.

How to use the Regex Explainer

  • Open the tool above — it runs entirely in your browser, so your input never leaves this page.
  • Paste or type your input into the field, then press the relevant button (e.g. Encode / Decode, Generate, or Convert).
  • Copy the result from the output area with the copy button orCtrl/Cmd + C.
  • No signup, no upload, and no tracking — repeat as often as you need.

Frequently asked questions

Is the Regex Explainer free to use?

Yes. The Regex Explainer is completely free, with no signup, no ads inside the tool, and no hidden limits.

Does the Regex Explainer upload my data?

No. The Regex Explainer processes everything locally in your browser. Your input is never sent to a server, so it stays private even on shared devices.

Does the Regex Explainer work offline?

After the page loads, the Regex Explainer runs entirely in your browser, so it keeps working without a network connection.

Free & private — why use this Regex Explainer

The Regex Explainer runs 100% client-side in your browser. Your data is never uploaded to a server, no account is required, and the tool is completely free. It works offline once the page has loaded and is part of a growing collection of privacy-first developer utilities.

More regex tools