Decode Microsoft Entra / Azure AD JWT Offline
This tool provides an instant, browser-local utility to decode Microsoft Entra ID (formerly Azure AD) JWTs. It's pre-configured with `"checkExpiry": true` to automatically validate token expiration, ensuring sensitive authentication data never leaves your browser. This is crucial for securely inspecting tokens from logs or proprietary configurations without uploading them.
Workflow Checklist
- Verify 'exp' claim is future-dated (e.g., `"exp": 1700000000` > current Unix timestamp).
- Confirm 'aud' claim matches your application's Client ID or resource URI.
- Check 'iss' claim matches the expected Microsoft Entra ID tenant URL (e.g., `https://sts.windows.net/{tenant-id}/`).
- Ensure 'nbf' claim (if present) is in the past, indicating the token is currently valid for use.
Parent Tool & Hub
Step-by-Step Guide: Decode Microsoft Entra / Azure AD JWT Offline
Follow these exact steps to complete this workflow locally in your browser without uploading files.
- 1
Locate Your Entra ID JWT
Copy your full Microsoft Entra ID (Azure AD) JWT from your application logs, network traces, or configuration files. Ensure you capture the entire token string, typically starting with 'eyJ'.
Tip: Verify the token is complete; truncated tokens will lead to decoding errors. - 2
Paste Token into Input Field
Navigate to the 'Decode Microsoft Entra / Azure AD JWT Offline' tool. Paste the copied JWT into the large input text area labeled 'Enter JWT Here'.
Tip: Avoid accidental spaces or newlines before/after the token string. - 3
Review Decoded Header & Payload
The tool will instantly display the decoded JWT header and payload in the output sections below. Examine claims like 'aud' (audience), 'iss' (issuer), and 'upn' (user principal name).
Tip: Look for 'exp' (expiration) and 'nbf' (not before) claims for validity windows. - 4
Verify Expiration Status
Since `checkExpiry` is active, the tool will explicitly indicate if the token is expired. Pay close attention to the expiration status to avoid using stale tokens in your applications.
Tip: Expired tokens will cause authentication failures in Entra ID-protected applications. - 5
Inspect Signature Verification Status
The tool will also attempt to verify the token's signature. While offline, this is a structural check. For full cryptographic validation, you need the issuer's public key (e.g., from `https://login.microsoftonline.com/{tenantId}/v2.0/.well-known/openid-configuration`).
Tip: Signature verification ensures the token hasn't been tampered with after issuance.
Technical Specifications & Preset Reference
| Parameter | Recommended Setting | Why It Matters |
|---|---|---|
| Processing Location | Browser-Local | All JWT decoding and expiration checks occur entirely within your browser, ensuring 0 bytes of sensitive token data are ever uploaded. |
| Token Type Supported | Microsoft Entra ID JWTs | Optimized to parse and display common claims found in tokens issued by Microsoft's identity platform. |
| Expiration Check | Enabled (`checkExpiry: true`) | Automatically evaluates the 'exp' claim against the current local time, providing immediate feedback on token validity. |
| Signature Verification | Structural Check | Validates the token's structure and base64 encoding, confirming it's a well-formed JWT, without requiring a public key. |
| Input Format | Base64Url-encoded JWT | Accepts the standard compact serialization format for JWTs as issued by identity providers. |
Common Issues & Troubleshooting Fixes
Token not decoding, showing 'Invalid JWT structure'.
Ensure the entire token, including all three dot-separated parts, is copied without truncation. Check for extra spaces or newlines before/after the token string.
Expiration status incorrectly states 'Expired' when the token should be valid.
Verify your local system clock is accurate and synchronized. Skewed clocks can cause misinterpretations of the 'exp' claim's Unix timestamp.
Payload claims appear unreadable or garbled after decoding.
This typically indicates the token itself might be malformed or encrypted. This tool decodes standard, unencrypted JWTs. Verify the source of your token.
Cannot fully validate signature without a public key.
For full cryptographic signature validation, you must manually fetch the appropriate public key (e.g., from the Entra ID tenant's OpenID Connect discovery endpoint) and use a dedicated library or tool.
Why Run This Workflow Locally in ShowPro?
Unlike remote JWT debuggers that require uploading your sensitive Microsoft Entra ID tokens to a third-party server, this tool processes everything locally in your browser. This eliminates data transmission risks, preventing potential exposure of user identities, roles, or confidential claims. For Entra ID tokens, where data privacy and compliance are paramount, local processing is the only secure approach.
Frequently Asked Questions
Why is it important that this tool works 'offline' for Entra ID JWTs?
Processing offline means your sensitive authentication tokens, containing user and application data, never leave your browser. This protects against data breaches and ensures compliance with privacy regulations, especially critical for corporate Entra ID environments.
Does 'checkExpiry: true' validate the token's actual cryptographic signature?
No, `checkExpiry: true` only verifies the token's expiration time ('exp' claim) against your local system clock. Full cryptographic signature validation requires the issuer's public key, which is not available offline by default.
Can I decode encrypted Entra ID JWTs (JWE) with this tool?
This tool decodes standard, unencrypted JWTs (JWS). Encrypted JWTs (JWE) require a decryption key, which is outside the scope of a simple browser-local decoder and would compromise the 'offline' privacy aspect.
What if my local clock is wrong? Will the expiration check be accurate?
The expiration check relies on your local system clock. If your clock is inaccurate, the 'Expired' status might be incorrect. Ensure your device's time is synchronized with an NTP server for reliable results.
Are there any size limits for the JWTs this tool can decode?
While there isn't a strict hard limit, extremely large JWTs (e.g., those with hundreds of claims or very long strings) might cause browser performance issues. However, typical Entra ID tokens are well within practical limits.