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.
| Part | Claim | Value | What it is |
|---|
Header and body as JSON
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.
Header
| Claim | What it is |
|---|---|
typ | The token type: JWT. |
alg | The algorithm that signed the token, such as RS256. |
kid | Names the public key that verifies the signature. |
x5t | The 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.
| Claim | What it is |
|---|---|
aud | Audience: who the token is for. In an access token, the API; in an ID token, your app's application ID. |
iss | Issuer: the token service that made the token, with the tenant in it. |
idp | The identity provider that authenticated the subject. Often the same as iss; for a guest or personal account it can differ. |
iat | When the authentication for this token happened. |
nbf | The token is not to be accepted before this time. |
exp | The token is not to be accepted after this time. |
aio | Internal to Microsoft Entra ID, for token reuse. Not for use by apps. |
acr | v1.0 only: 0 when the user's authentication did not meet ISO/IEC 29115. |
acrs | Auth Context IDs of the operations the bearer is eligible to perform. |
amr | How the subject authenticated: a list such as pwd, mfa or rsa (table below). |
appid | v1.0: the application ID of the client that got the token. |
azp | v2.0: the application ID of the client that got the token. Replaces appid. |
appidacr | v1.0: how the client authenticated: 0 public client, 1 client ID and secret, 2 certificate. |
azpacr | v2.0: how the client authenticated: 0 public client, 1 client ID and secret, 2 certificate. |
preferred_username | The 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. |
name | A display name for the subject. It can change. |
scp | The delegated scopes (permissions) the client was granted, separated by spaces. |
roles | The application permissions or app roles granted. |
wids | The tenant-wide roles of the user, as role template IDs. |
groups | The object IDs of the subject's groups. |
hasgroups | Always true when present: the user is in at least one group, and the app should get the list from Microsoft Graph. |
groups:src1 | A link to the full group list when it is too large for the token. |
sub | The subject: a unique ID for the user of this app. It never changes and differs from app to app. |
oid | The object ID of the user or service principal in the tenant. The same across apps. |
tid | The tenant ID: the directory the user signed in to. |
sid | An ID for the sign-in session. |
unique_name | v1.0 only: a readable name for the subject. For display only. |
uti | A unique ID for this token, the equivalent of jti. |
rh | Internal to Azure, to revalidate tokens. Not for use by apps. |
ver | The token version: 1.0 or 2.0. |
xms_cc | Whether the client can handle claims challenges. |
ipaddr | v1.0: the IP address the user authenticated from. |
onprem_sid | v1.0: the user's SID in on-premises Active Directory. |
pwd_exp | v1.0: when the user's password expires. |
pwd_url | v1.0: where the user can reset the password. |
in_corp | v1.0: whether the client signs in from the corporate network. |
nickname | v1.0: another name for the user. |
family_name | v1.0: the user's last name. |
given_name | v1.0: the user's first name. |
upn | v1.0: the username of the user. For display only. |
email | ID tokens: the user's email address, present by default for guest accounts. |
nonce | ID tokens: must match the nonce of the sign-in request, or the app should reject the token. |
c_hash | ID tokens: a hash of the authorization code, when the token came with one. |
at_hash | ID tokens: a hash of the access token, when the token came with one. |
Values of amr
| Value | Meaning |
|---|---|
pwd | Password authentication, either a user's Microsoft password or a client secret of an application. |
rsa | Authentication 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. |
otp | One-time passcode using an email or a text message. |
fed | Indicates the use of a federated authentication assertion (such as JWT or SAML). |
wia | Windows Integrated Authentication |
mfa | Indicates the use of Multifactor authentication. Includes the other authentication methods when this claim is present. |
ngcmfa | Equivalent to mfa, used for provisioning of certain advanced credential types. |
wiaormfa | The user used Windows or an MFA credential to authenticate. |
none | Indicates no completed authentication. |
Sources
- Claims and amr values: Microsoft's Access token claims reference and ID token claims reference (entra-docs at commit 3413d15, MIT licence). The meanings are written here in plain words.
- The three parts of a token, the opaque tokens and the signing keys: Microsoft's Access tokens in the Microsoft identity platform (the same commit); stolen tokens: Microsoft's page on tokens in Microsoft Entra ID (the same commit).
More Email and M365 tools
-
SMTP status code lookup
Read a bounce such as 550 5.7.1 or 421 4.4.2: the reply code and the enhanced code by class, subject and detail.
-
Email header analyzer
Paste message headers: each hop and its delay, SPF, DKIM and DMARC results, and Microsoft 365's SCL, BCL and SFV in words.
-
AADSTS error code lookup
Look up AADSTS50126, AADSTS700016 or any other Microsoft Entra sign-in error, alone or in a pasted message.
-
dsregcmd /status reader
Paste the output of dsregcmd /status: the join state, each field in words, and the values that point at a problem.
-
Intune and Autopilot error codes
App install codes such as 0x87D1041C, MDM enrollment errors such as 0x8018000A, and Autopilot import errors 806 and 808.
-
Safe Links and URL Defense decoder
See the address inside a Microsoft Safe Links or Proofpoint URL Defense link as plain text, without opening it.
-
Punycode and lookalike checker
Convert xn-- names to Unicode and back, and see when a name mixes scripts or has letters that look like ASCII ones.
-
SPF and DMARC record builder
Build SPF and DMARC records, or paste one to see what each part does.
-
DKIM record checker
Check a DKIM key record: key type and length, flags and mistakes, with a long key split into 255-character strings.
-
DMARC report viewer
Open DMARC aggregate reports (.xml, .gz or .zip) in your browser: senders, counts, and SPF and DKIM alignment.
-
MTA-STS and TLS-RPT builder
Build the MTA-STS and TLS-RPT records and the policy file, or paste one to read it.