Home Tools Guides FAQ About Contact
M365 & Security Tools

JWT
Decoder

Paste a JSON Web Token to instantly decode the header, payload and all claims โ€” expiry time, user details, roles, scopes, tenant ID and more. Runs entirely in your browser, nothing sent anywhere.

๐Ÿ“‹ Token Claims โ–พ
๐Ÿ”ด Header โ–พ

      
๐ŸŸข Payload (Raw JSON) โ–พ

      
๐Ÿ”ต Encoded Parts โ–พ
What Is a JWT?

JSON Web Tokens Explained

A JSON Web Token (JWT) is a compact, self-contained way of securely transmitting information between parties. They are widely used in modern authentication โ€” when you sign into Microsoft 365, Azure, an API, or any OAuth-based system, a JWT is issued to prove your identity and permissions. The token contains claims โ€” statements about the user such as their email, roles, tenant ID, and when the token expires.

A JWT has three parts separated by dots: the header (algorithm and token type), the payload (the actual claims), and the signature (cryptographic proof). The header and payload are base64url encoded โ€” not encrypted, just encoded โ€” which means anyone can read the contents. The signature is what prevents tampering.

Common M365 Claims

upn (user principal name), oid (object ID), tid (tenant ID), roles, scp (scopes), iss (issuer), aud (audience), exp (expiry), iat (issued at).

Where You See JWTs

OAuth access tokens, Microsoft Graph API calls, Azure AD authentication, Conditional Access token inspection, API debugging, SSO troubleshooting.

Are JWTs Secure?

The payload is readable by anyone โ€” never put sensitive secrets in a JWT. Security comes from the signature: only the issuer can create a valid signed token, so the claims can be trusted.

100% Private

Decoding happens entirely in your browser. Your token is never sent to any server. This is important โ€” JWT tokens are credentials and should be treated with care.

Frequently Asked Questions

How do I get a JWT token from Microsoft 365?

The easiest way is via the Microsoft Graph Explorer at graph.microsoft.com โ€” sign in, click the Access token tab, and copy the token. You can also capture tokens using browser DevTools (Network tab) while authenticated in the Azure portal or M365 admin centre.

What does the exp claim mean?

exp is the expiry time, stored as a Unix timestamp (seconds since 1 January 1970). This tool converts it to a readable date and time, and flags the token as expired if the current time is past the exp value. Most Microsoft 365 access tokens expire after 1 hour.

What's the difference between access tokens and ID tokens?

Access tokens are used to call APIs โ€” they contain scopes (scp) defining what the caller is allowed to do. ID tokens are used to authenticate a user โ€” they contain identity information like name and email. Both are JWTs in Microsoft's implementation.

Is it safe to paste a JWT into this tool?

Yes โ€” decoding happens entirely in your browser using JavaScript. Nothing is sent to any server. That said, treat access tokens like passwords โ€” don't share them in public, and be aware they grant access to whatever scopes they contain until they expire.