JWT Expiry Checker and Decoder
This JWT expiry checker shows whether a token is valid now, counts down to exp, labels the standard claims and verifies the signature, all in your browser.
Check when a JWT expires
Paste a JSON Web Token to see whether it is valid now, when it expires and what it contains, and check its signature if you have the key.
Your token stays on this page. Decoding and signature checks run in your browser: nothing you paste is uploaded or saved, and the checker sends nothing over the network. Anyone who has a JWT can read its payload, so treat a live token like a password.
Leeway works as it does in JWT libraries: a token is accepted from nbf minus the leeway until exp plus the leeway.
Dates
Checks
Payload
| Claim | Value | Meaning |
|---|
Raw JSON
Header
| Parameter | Value | Meaning |
|---|
Raw JSON
Verify the signature Optional
Decoding shows what a token says. Only a signature check with the issuer's key shows that it is genuine and unchanged.
Expiry is worked out the way JWT libraries such as jsonwebtoken and jose do it: the current time in whole seconds, compared with exp and nbf after applying the leeway. A token can still be rejected for its issuer, audience or revocation, which only the receiving server knows.
Expiry at a glance
See Valid now, Expired, Not valid yet or No expiry, with a countdown that ticks every second. exp, nbf, iat and auth_time appear in UTC, in your time zone and as relative time, next to the token's lifetime and how much of it is left.
Signature checks in your browser
Verify HS256 to HS512 with a text or Base64 secret, RS and PS algorithms with a PEM key, a certificate or a JWKS picked by kid, ES256 to ES512 and EdDSA. What the token says and whether its signature matches are always shown separately.
Mistakes caught early
Warnings point out dates written in milliseconds or as strings, nbf after exp, iat in the future, very long lifetimes, alg none, DER-encoded ECDSA signatures, secrets copied from tutorials and personal data in claims.
How to check when a JWT expires
- 1
Paste the token, with or without the Bearer prefix; quotes and line breaks are ignored.
- 2
Read the status and the countdown, then the exp, nbf, iat and auth_time dates in UTC and in your time zone.
- 3
Set the leeway your server allows, or choose another time to see whether the token is accepted then.
- 4
Paste the secret or public key to verify the signature, and review the warnings and the claims table.
What people use this tool for
- Find out why an API answers 401 Unauthorized by checking whether the access token has expired or is not valid yet.
- Check that a sign-in service writes exp in seconds and gives tokens a sensible lifetime before it goes to production.
- Confirm that a token was signed with the expected key, picked from your identity provider's JWKS by its kid.
- Read the claims in an OpenID Connect ID token, such as aud, azp, nonce and auth_time, while debugging a sign-in flow.
Frequently Asked Questions
How do I check if a JWT is expired?
Paste the token above. The checker decodes the payload and compares its exp claim with the current time in whole seconds, as jsonwebtoken and jose do: the token counts as expired from the second the clock reaches exp. For example, exp 1763337600 is 2025-11-17 00:00:00 UTC, so from that moment the status reads Expired and the counter shows how long ago it happened.
Is the JWT exp claim in seconds or milliseconds?
Seconds. RFC 7519 defines exp, nbf and iat as a NumericDate: seconds since 1970-01-01 00:00:00 UTC, written as a JSON number that may include a fraction. A 13-digit value such as 1763337600000 is milliseconds, but libraries still read it as seconds, which is the year 57,847, so the token in effect never expires. The checker flags this and shows the date the value was probably meant to be.
What is clock skew leeway, and which value should I use?
Server clocks drift apart by a few seconds, so JWT libraries allow a margin: a token is accepted from nbf minus the leeway until exp plus the leeway. jsonwebtoken, jose and PyJWT use no leeway unless you set one, Spring Security allows 60 seconds and Microsoft's .NET token validation 5 minutes. Choose the value your server uses (none, 30 s, 60 s, 5 min, or any whole number of seconds up to 86,400) to see the answer it would give.
What do exp, nbf, iat and auth_time mean?
exp is when the token stops being accepted, nbf (not before) is when it starts, iat (issued at) is when it was created, and auth_time is when the user last signed in, as used in OpenID Connect ID tokens. All four count seconds since 1970. The checker shows each one in UTC, in your own time zone and as relative time, and works out the lifetime from iat to exp and the share of it remaining.
Does decoding a JWT prove that it is valid?
No. Anyone can create a token with any claims, because the payload is only base64url-encoded. The status here is based on the dates alone until you check the signature with the issuer's secret or public key. Verification supports HS256, HS384, HS512, RS256 to RS512, PS256 to PS512, ES256 to ES512 and EdDSA with Ed25519 where the browser supports it. Keys can be a PEM public key or certificate, a JWK, or a JWKS in which the key is picked by kid.
Why does my token say Not valid yet, or that iat is in the future?
Usually the issuer's clock is ahead of the server that checks the token, so a token used within seconds of being issued has an nbf or iat slightly later than the server's time. Compare the UTC times shown with your server's clock. Fix the clock with NTP, or allow a small leeway such as 30 or 60 seconds. Some libraries, such as PyJWT, also reject a token whose iat is later than the current time plus the leeway.
Why can't the checker read my token?
A signed JWT has three base64url parts separated by dots: header, payload and signature. The checker says which part is broken and why: the wrong number of parts, a character outside base64url such as + or /, a part that is not JSON, or JSON that is not an object. A token with five parts is encrypted (JWE), so only its header can be read. Some access tokens are opaque strings rather than JWTs, and only their issuer can look them up.
Is it safe to paste a JWT here?
Decoding and signature checks run in your browser with JavaScript and Web Crypto. The token, the key and your settings are not uploaded or saved anywhere, and the checker sends nothing over the network. A live token still works for anyone who holds it until it expires, so prefer expired or test tokens where you can. Never paste a private key: verification needs only the public key, and the checker refuses private keys.