JWT Expiry Calculator

Compute a JWT exp timestamp from issued-at plus TTL, or read remaining lifetime from an exp claim, with a human countdown.

Frequently Asked Questions

What TTL should access tokens use?

5-15 minutes is the modern recommendation for access tokens - short enough to limit damage from leakage, long enough to reduce refresh frequency. Pair with refresh tokens that last hours to days.

Can I extend a token's lifetime?

No - the exp claim is cryptographically signed, so it cannot be changed without invalidating the signature. Use a refresh token to obtain a new access token before the old one expires.

What is clock skew and why does it matter?

Clock skew is the difference between clocks on different servers. A token expiring at T may be rejected by a server with a slightly ahead clock. JWT libraries include configurable leeway (commonly 30-60 seconds) to tolerate minor skew.

What if there is no exp claim?

The token never expires by time - a security risk because leaked tokens remain valid indefinitely. Always include an expiry, and implement server-side revocation for critical operations.

Important Disclaimer: Estimates for informational purposes only.

This calculator provides estimates for informational purposes only. Results are based on assumptions and may not reflect actual outcomes. Consult qualified professionals in relevant fields before making important decisions based on these results.