.*RegexQuick
JWT Regex
Regex for matching and validating JWT token format.
^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$//
0 matches
About this pattern
JWTs consist of three Base64URL-encoded segments separated by dots: header.payload.signature. This regex validates the format but not the cryptographic signature.
FAQ
Does this validate the JWT signature?
No. Regex only checks format (three dot-separated Base64URL strings). Signature validation requires the signing key and a crypto library.