What is the JWT nbf claim?
The nbf claim — short for Not Before — is a registered JWT claim (RFC 7519) that says: do not accept this token before this time. Its value is a NumericDate, the number of seconds since 1 January 1970 UTC. If the current time is earlier than nbf, the token is not yet valid, even if its signature is perfect and it has not expired.
nbf vs iat vs exp: the token's valid window
Three time claims together define when a token works:
- iat (Issued At) — when the token was created.
- nbf (Not Before) — when the token becomes usable.
- exp (Expiration) — when the token stops being usable.
In most tokens nbf equals iat, so the token works immediately. A future nbf creates a deliberate delay — for example, a token minted now that should only work when a scheduled job runs, or a token issued by a system whose clock runs slightly ahead. The valid window is therefore: nbf ≤ now < exp.
Why a good token says "not active yet"
The most common cause is clock skew: two servers disagree about the time by a few seconds. A token rejected at 09:00:00 that works at 09:00:04 is a clock problem, not an auth problem — sync both machines with NTP, or configure a small leeway (a few seconds to a few minutes) in the verifier. The second cause is a genuinely future nbf: the token was issued for later use, so the fix is to wait, not to reissue. If a token is rejected long after its nbf time, look elsewhere — check exp, the audience (aud), and the issuer (iss) instead.
How to check a token's nbf claim
- Open the JWT Decoder and paste your token.
- Read the decoded payload JSON and find the
nbfvalue. - Paste that number into the Timestamp Converter to see the exact date and time in UTC and local time.
- Compare it with the current time: if now is before nbf, the token is simply early.
One caution: a JWT payload is only base64-encoded, not encrypted — never paste a production token containing secrets into any tool you do not trust, and remember the decoder shows you the claims; verifying the signature is a separate step that needs the signing secret or public key.
Frequently asked questions
What does nbf mean in a JWT?
nbf stands for Not Before. It is a NumericDate — seconds since 1 January 1970 — marking the earliest moment the token may be accepted. Before that time, the token is not yet valid.
What happens if I use a JWT before its nbf time?
The verifier rejects it, typically with a not-yet-valid or token-not-active error. The token is not broken — it is simply too early. Wait until the nbf time passes, or check whether the issuing server's clock is ahead of yours.
What is the difference between nbf, iat and exp?
iat is when the token was issued, nbf is when it becomes usable, and exp is when it stops being usable. Together they define the token's valid window: it must be used at or after nbf and before exp.
Is the nbf claim in seconds or milliseconds?
Seconds, like every JWT NumericDate. A 10-digit value is seconds; a 13-digit value is a JavaScript-style millisecond timestamp and is not a valid JWT claim value.
Why does a valid token say it is not active yet?
Usually clock skew: the machine that signed the token and the machine checking it disagree about the time by a few seconds, or the token was deliberately issued with a future nbf for scheduled use. Verifiers allow a small leeway — often a few seconds to a few minutes — for exactly this reason.
How do I check the nbf claim of my token?
Paste the token into the free JWT Decoder. It decodes the payload into readable JSON, where you can read nbf directly — then convert that number to a date with the Timestamp Converter.
Try it now
Ready? Decode your JWT and check its nbf claim — free — free, instant, no signup.