About jwt expiry calculator
A JWT often includes the time it was issued and when it expires. The calculator shows both in readable dates and how long is left.
The claims it reads
- iat: issued at, in seconds since 1 January 1970 (UTC).
- exp: expiry time in the same format.
- nbf: not valid before, if present.
Debugging tip
If a login suddenly stops working, an expired token or a device with the wrong clock is a common cause. Check the expiry and compare it with the current time.
Private
Decoding happens in your browser. Even so, treat tokens like passwords and avoid pasting active production tokens into any website.
A worked example
A token with exp 1700000000 expires on 14 November 2023 at 22:13:20 UTC. If the current time is later than that, the token is expired. Tokens usually last from a few minutes to a day, and refresh tokens last longer.
Why tokens expire
- A leaked token stops working after its expiry.
- Short lifetimes limit the damage from theft.
- Clock differences between devices can make a token look expired too early, so allow a little leeway.
