JWT Token Decoder
Advanced client-side JWT inspector and debugger. Decode Headers, Payloads, and Signatures instantly with HS256 verification, claim analysis, and expiration tracking.
About
JSON Web Tokens (JWT) are the industry standard (RFC 7519) for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed. This tool acts as a comprehensive client-side debugger, ensuring your sensitive tokens never leave your browser.
Accuracy in token inspection is critical for modern authentication flows (OAuth 2.0, OIDC). A single misconfigured claim, such as an incorrect aud (audience) or an expired exp timestamp, can cause widespread authentication failures. This tool visualizes the three components of a JWT - Header, Payload, and Signature - parsing standard claims into human-readable formats.
Security Note: All decoding and verification happen strictly in your browser using the Web Crypto API. No data is transmitted to any server.
Formulas
A JWT is constructed by concatenating the Header, Payload, and Signature, separated by periods (.).
The signature is generated using the specified algorithm in the header. For HS256:
Signature = HMACSHA256(
base64(Header) + "." + base64(Payload),
secret
)
Reference Data
| Claim | Full Name | Description |
|---|---|---|
| iss | Issuer | Identifies the principal that issued the JWT. |
| sub | Subject | Identifies the principal that is the subject of the JWT (user ID). |
| aud | Audience | Identifies the recipients that the JWT is intended for. |
| exp | Expiration Time | Identifies the expiration time on or after which the JWT must not be accepted. |
| nbf | Not Before | Identifies the time before which the JWT must not be accepted. |
| iat | Issued At | Identifies the time at which the JWT was issued. |
| jti | JWT ID | Unique identifier for the JWT. |
| alg | Algorithm | Header claim identifying the cryptographic algorithm used for the signature. |
| typ | Type | Header claim usually set to "JWT". |
| azp | Authorized Party | OIDC claim; the party authorized to use the token. |
| scope | Scope | OAuth 2.0 scopes (permissions) granted to the client. |