Workflow Tools Control Yard

Home / Email and M365

JWT and access token decoder

Paste a JSON Web Token, such as an access token or an ID token from Microsoft Entra ID, or a whole Authorization: Bearer header. The page shows the header and every claim, names the claims that Microsoft documents, and turns exp, iat and nbf into dates. It reads the token in your browser and sends it nowhere.

What the page does and does not do

A JWT has three parts separated by dots: the header, the body and the signature. The page decodes the first two. It does not check the signature: that needs the issuer's signing keys, which it would have to download, and this site downloads nothing. So a token that reads well here may still be forged: the API it was issued for checks the signature. For a token of five parts, the page shows only the header.

Microsoft says apps should treat access tokens as opaque and let only the API they are for read them. Reading one here is for troubleshooting: which tenant, which app, which scopes or roles, and whether it has expired. Microsoft also warns that a stolen token lets an attacker act as the user, which is why this page leaves the token out of any link and clears it on request.

ClaimWhat it is
typThe token type: JWT.
algThe algorithm that signed the token, such as RS256.
kidNames the public key that verifies the signature.
x5tThe same as kid, in v1.0 tokens only.

Claims

The claims Microsoft documents for Microsoft Entra access tokens and ID tokens, in plain words. A claim not listed here is shown with its value only.

ClaimWhat it is
audAudience: who the token is for. In an access token, the API; in an ID token, your app's application ID.
issIssuer: the token service that made the token, with the tenant in it.
idpThe identity provider that authenticated the subject. Often the same as iss; for a guest or personal account it can differ.
iatWhen the authentication for this token happened.
nbfThe token is not to be accepted before this time.
expThe token is not to be accepted after this time.
aioInternal to Microsoft Entra ID, for token reuse. Not for use by apps.
acrv1.0 only: 0 when the user's authentication did not meet ISO/IEC 29115.
acrsAuth Context IDs of the operations the bearer is eligible to perform.
amrHow the subject authenticated: a list such as pwd, mfa or rsa (table below).
appidv1.0: the application ID of the client that got the token.
azpv2.0: the application ID of the client that got the token. Replaces appid.
appidacrv1.0: how the client authenticated: 0 public client, 1 client ID and secret, 2 certificate.
azpacrv2.0: how the client authenticated: 0 public client, 1 client ID and secret, 2 certificate.
preferred_usernameThe primary username of the user, such as an email address or a phone number. It can change: for display and username hints, not for authorization.
nameA display name for the subject. It can change.
scpThe delegated scopes (permissions) the client was granted, separated by spaces.
rolesThe application permissions or app roles granted.
widsThe tenant-wide roles of the user, as role template IDs.
groupsThe object IDs of the subject's groups.
hasgroupsAlways true when present: the user is in at least one group, and the app should get the list from Microsoft Graph.
groups:src1A link to the full group list when it is too large for the token.
subThe subject: a unique ID for the user of this app. It never changes and differs from app to app.
oidThe object ID of the user or service principal in the tenant. The same across apps.
tidThe tenant ID: the directory the user signed in to.
sidAn ID for the sign-in session.
unique_namev1.0 only: a readable name for the subject. For display only.
utiA unique ID for this token, the equivalent of jti.
rhInternal to Azure, to revalidate tokens. Not for use by apps.
verThe token version: 1.0 or 2.0.
xms_ccWhether the client can handle claims challenges.
ipaddrv1.0: the IP address the user authenticated from.
onprem_sidv1.0: the user's SID in on-premises Active Directory.
pwd_expv1.0: when the user's password expires.
pwd_urlv1.0: where the user can reset the password.
in_corpv1.0: whether the client signs in from the corporate network.
nicknamev1.0: another name for the user.
family_namev1.0: the user's last name.
given_namev1.0: the user's first name.
upnv1.0: the username of the user. For display only.
emailID tokens: the user's email address, present by default for guest accounts.
nonceID tokens: must match the nonce of the sign-in request, or the app should reject the token.
c_hashID tokens: a hash of the authorization code, when the token came with one.
at_hashID tokens: a hash of the access token, when the token came with one.

Values of amr

ValueMeaning
pwdPassword authentication, either a user's Microsoft password or a client secret of an application.
rsaAuthentication was based on the proof of an RSA key, for example with the Microsoft Authenticator app. This value also indicates the use of a self-signed JWT with a service owned X509 certificate in authentication.
otpOne-time passcode using an email or a text message.
fedIndicates the use of a federated authentication assertion (such as JWT or SAML).
wiaWindows Integrated Authentication
mfaIndicates the use of Multifactor authentication. Includes the other authentication methods when this claim is present.
ngcmfaEquivalent to mfa, used for provisioning of certain advanced credential types.
wiaormfaThe user used Windows or an MFA credential to authenticate.
noneIndicates no completed authentication.

Sources

More Email and M365 tools