JWT Decoder: Check exp and nbf Claims

Check JWT exp and nbf claims locally. Inspect expired, not-yet-valid and missing-expiration examples against your browser clock. No signature verification.

JWT Decoder

Decode JWT headers and claims, then inspect their stated time window without verifying the signature.

Decoding runs in your browser. Your token is not sent to ToolMint servers.

JWTs can contain sensitive claims or usable credentials. Avoid sharing live access tokens.

Paste a compact three-segment JWT/JWS. Five-segment JWE input is identified but not decrypted.

0 bytes / 64 KiB

Examples contain fictional claims and a synthetic signature, not a usable credential. Load an example, then select Decode JWT. Only outer whitespace is removed.

No decoded result yet

Paste a JWT and select Decode JWT to inspect its header, payload and registered claims.

Steps

How to use

  1. Paste a compact JWT into the labelled token field.
  2. Select Decode JWT to parse the header and payload locally.
  3. Review the claim time status and registered claims without treating them as a signature verdict.
  4. Inspect the formatted header and payload, then copy either JSON block when useful.
  5. Clear the token before leaving a shared device or browser session.
Examples and use cases
  • Inspect exp and nbf while debugging why an application rejects a token at a particular time.
  • Read iss, sub and aud values while checking an integration configuration.
  • Identify a five-segment encrypted JWE without trying to interpret its ciphertext as JSON.
  • Inspect custom claims while remembering that their semantics are defined by the issuer and application.
Privacy, limits and tool details

Key facts

Best use case
Inspecting a compact JWT header, payload, registered claims and stated time window during development or debugging
Recognized claims
iss, sub, aud, exp, nbf, iat and jti
Time checks
Expired, not yet valid, within stated time window or no expiration claim, using the browser clock with zero configured leeway
Supported serialization
Three-segment compact JWT/JWS; five-segment JWE is identified but not decrypted
Input limit
64 KiB of token text; oversized input is rejected without truncation
Processing method
Explicit native Base64URL, UTF-8 and JSON decoding in the browser
Privacy model
Token text, decoded content and claims remain in browser memory and are not sent through analytics
Signature verification
Not performed; decoded output does not establish authenticity, trust or authorization
Main limitation
No signature verification, key lookup, JWKS fetching, JWE decryption or OAuth authorization decision
Privacy

Privacy and processing

Processing method: The browser trims outer whitespace, checks the 64 KiB limit, classifies dot-separated segments, performs strict Base64URL and UTF-8 decoding, parses JSON objects and interprets registered claims without making a network request.

Privacy model: The token, decoded header, payload, claims, identifiers, timestamps and signature stay in the current browser tab. They are not uploaded, stored in localStorage or sessionStorage, or included in analytics.

Limitations

Limitations

  • Decoding does not verify the signature, establish authenticity or prove that an issuer or application trusts the token.
  • JWE compact serialization is identified, but encrypted payloads are not decrypted or interpreted.
  • Claim time status uses the browser clock with zero configured issuer or verifier leeway.
  • Missing exp is reported as no expiration claim; an application may enforce separate token-lifetime rules.
  • The tool does not fetch issuer metadata, OAuth endpoints, OpenID configuration, JWK documents or JWKS URLs.

Page freshness

Published
Sep 02, 2026
Last updated
Oct 04, 2026
Features

Benefits

Strict local decoding

Base64URL, UTF-8 and JSON checks run in the browser with no token upload.

Claim time context

Review exp, nbf and iat against the current browser clock without an authenticity claim.

Registered claim meanings

Inspect standard JWT claims while leaving application-defined fields uninterpreted.

Clear security boundary

Signature verification and JWE decryption remain explicitly outside this decoder.

Tips

Pro tips

  • Use fictional or redacted tokens whenever possible because a live bearer token may grant access.
  • Treat alg and kid as untrusted token declarations until a real verifier applies an independent key and algorithm policy.
  • Account for issuer and verifier clock-skew policies separately; this tool deliberately applies zero leeway.
  • Use a JWT library in application code for verification rather than copying decoder output into an authorization decision.
Watch out

Common mistakes to avoid

  • Assuming that readable JSON means the signature is valid or the token is authentic.
  • Treating a missing exp claim as proof that the token is invalid or that it will be accepted forever.
  • Assuming every OAuth access token is a JWT or that decoded claims prove access to a resource.
  • Sharing a live token in screenshots, tickets, chat messages or public decoder services.

Sources

Detailed JWT Decoder guide

What is the JWT Decoder?

ToolMint JWT Decoder reads the compact text form of a JSON Web Token, decodes its header and payload, and presents registered claims in a more useful format. It also compares exp, nbf, and iat NumericDate values with your browser clock. The token stays in the current browser tab and is not sent to ToolMint servers.

Decoding does not verify the JWT signature or prove that the token is authentic. A production verifier must use a trusted key, independently restrict acceptable algorithms, and apply issuer, audience, time, and application-specific policies.

How to decode a JWT

Paste a compact token into the JWT field and select Decode JWT. A common signed JWT or JWS representation contains three dot-separated segments: header, payload, and signature. ToolMint checks the segment structure, applies strict Base64URL decoding, requires valid UTF-8 JSON objects for the header and payload, and then shows the result.

Use Copy header or Copy payload when you need either formatted JSON object elsewhere. For broader JSON cleanup, use the JSON Formatter. Clear the input when you finish, especially on a shared device.

JWT header, payload and signature

The header commonly declares fields such as alg, typ, kid, or cty. These values come from the token and are not proof of trust. In particular, alg states what algorithm the token declares; a verifier still needs an independent allowlist and the correct trusted key.

The payload is a JSON claims set. It may contain registered claims and application-defined data. ToolMint preserves the parsed values rather than coercing strings, changing arrays, or assigning universal meanings to custom fields.

The third segment contains signature bytes in a signed compact JWS. This decoder can report whether that segment is present and how many bytes it contains, but it does not verify those bytes. A Hash Generator can calculate digests for general data, but hashing alone is not JWT signature verification.

What exp, nbf and iat mean

JWT NumericDate values represent seconds since the Unix epoch. The exp claim sets the time on or after which the token must not be accepted. The nbf claim sets the time before which it must not be accepted. The iat claim records when the token was issued.

The tool shows the raw number, an ISO timestamp, and local browser time when the date is representable. Fractional and negative NumericDate values are preserved. A malformed or out-of-range timestamp produces a focused warning instead of a misleading date. Use the Unix Timestamp Converter when you need to inspect arbitrary epoch values outside a JWT.

How ToolMint checks JWT expiration

The Claim time status is evaluated when you select Decode JWT, using your browser clock and zero configured issuer or verifier leeway. When the current time is equal to or later than exp, the status is Expired. When the current time is earlier than nbf, it is Not yet valid. If a usable exp remains in the future and nbf does not block the current time, the status is Within stated time window.

If exp is absent, ToolMint shows No expiration claim. That does not mean the token is invalid, insecure, or guaranteed to be accepted forever. An issuer or application may enforce a separate maximum lifetime. Likewise, passing time checks does not establish signature validity.

Debug JWT exp and nbf with synthetic examples

Use the example buttons without pasting a live access token. Each button creates fictional claims relative to your browser clock when loaded; its signature bytes are synthetic and cannot authenticate a request. Select Decode JWT after loading.

Example button Claims relative to loading time Expected immediate result
Load expired example exp is five minutes earlier Expired
Load not-before example nbf is five minutes later; exp is one hour later Not yet valid
Load no-expiration example iat is present; exp is absent No expiration claim

The result shows the UTC check time. It is a snapshot, not a countdown. Select Decode JWT again to reevaluate an unchanged token. Loading another example or editing input clears the previous result. A different device clock or verifier leeway can explain a different time result; compare the issuer and server clocks before changing application policy.

Why is my JWT not yet valid when exp is in the future?

A future expiration does not override a future nbf. Inspect both claims and compare their displayed UTC times with the check time. If nbf is a string, null or another unsupported type, ToolMint reports that the not-before claim cannot be interpreted rather than claiming the time window passes.

Is JWT exp in seconds or milliseconds?

JWT NumericDate uses seconds. For example, 1791072000 represents 2026-10-04T00:00:00Z; 1791072000000 is interpreted as seconds too, producing a much later date. ToolMint does not guess units or silently divide by 1,000. A quoted number is a string and triggers a malformed-time warning. Inspect how the issuer generated the claim.

Does a missing exp or future iat prove validity?

No. Missing exp leaves expiration unknown to this decoder; application lifetime rules can still apply. A future iat produces a warning, not an expiration decision. Time inspection never substitutes for signature verification, audience checks or issuer policy.

For inspecting copied request headers, the cURL Converter supports separate request examples. Replace bearer credentials with fictional values before sharing any debugging output.

Registered JWT claims

RFC 7519 defines registered names including iss for issuer, sub for subject, aud for audience, exp for expiration, nbf for not-before, iat for issued-at, and jti for a JWT identifier. These claims are optional unless a particular application or protocol requires them.

The aud value may be one string or an array of strings. Displaying it does not prove that the token authorizes access to that audience. Claims such as scope, roles, permissions, and authorities are commonly application-defined, so their exact semantics depend on the issuer and consuming application.

Why decoding does not verify a JWT

Base64URL encoding makes the header and payload portable; it does not provide authenticity. A real verifier must validate a JWS signature with a trusted secret or public key, reject algorithms outside its configured policy, and check claims required by the application. ToolMint deliberately does not ask for secrets, public keys, PEM text, JWK documents, or JWKS URLs in this decoder.

The Base64 Encoder / Decoder handles general Base64 transformations. JWT compact serialization uses the related Base64URL alphabet and omits padding, so JWT segments need stricter format handling than ordinary Base64 text.

What alg means

The alg header parameter identifies the algorithm declared for a JWS. Reading that value is not verification. Security guidance in RFC 8725 requires an application to decide independently which algorithms it accepts rather than trusting the token to select its own verification policy.

The optional kid value is a key identifier hint that can help a verifier select among keys. It does not prove that a matching key is trustworthy. Optional typ and cty fields describe type or content-type metadata and likewise do not establish authenticity.

What alg none means

An alg value of none declares an unsecured JWS. ToolMint highlights that condition and reports an absent signature segment. The decoder does not claim that the token is automatically exploitable or determine whether a particular application would accept it.

JWT vs JWS vs JWE

JWT describes a JSON claims format. JWS provides integrity protection through signatures or message authentication codes, while JWE provides encryption. A common signed compact JWT uses three segments. Compact JWE uses five segments for the protected header, encrypted key, initialization vector, ciphertext, and authentication tag.

When five segments are detected, ToolMint identifies the input as JWE and does not attempt to decode encrypted content as ordinary payload JSON. Decryption requires appropriate keys and algorithm support and is outside this tool's scope. The underlying formats are defined by RFC 7515, RFC 7516, and RFC 7518.

JWT privacy and sensitive tokens

JWT payloads can expose names, email addresses, user identifiers, tenant identifiers, roles, scopes, internal issuer URLs, or session data. Some JWTs are bearer credentials that may grant access to an application or API. Prefer fictional, expired, or redacted test values and avoid sharing live access tokens.

ToolMint performs decoding locally with native browser APIs. It does not fetch issuer URLs, OAuth endpoints, OpenID configuration, JWK documents, or JWKS URLs. It also does not save the token in localStorage or sessionStorage or include token details in analytics. Browse more local utilities in the Developer tools category.

Sources

Frequently asked questions

A JWT decoder reads the Base64URL-encoded header and payload of a compact JSON Web Token and displays their JSON content. Decoding alone does not verify the signature, issuer or authorization.

Paste a three-segment compact JWT and select Decode JWT. ToolMint checks the segment structure, decodes the header and payload as UTF-8 JSON objects, and displays registered claims locally in your browser.

No. Decoding only makes encoded content readable. Signature verification requires a trusted key, an independently allowed algorithm and application-specific validation rules.

ToolMint compares the numeric exp claim with your browser clock. The claim is expired when the current time is equal to or later than exp, using zero configured clock-skew leeway.

exp sets the time on or after which a token must not be accepted, nbf sets the time before which it must not be accepted, and iat records when it was issued. These NumericDate values use seconds since the Unix epoch.

alg is the algorithm identifier declared by the token. Reading it does not prove that the algorithm was used correctly or accepted by a verifier; verification policy must be set independently.

alg none declares an unsecured JWS with no cryptographic signature. ToolMint warns about this declaration but does not determine whether any particular application would accept the token.

ToolMint identifies the five-segment compact form of JWE and may display a readable protected header, but it does not decrypt or interpret the encrypted payload.

No. Decoding and claim inspection run in your browser. Token text, decoded JSON, claims, timestamps and signature data are not uploaded, persisted or included in analytics.

No. Successful decoding only shows that the header and payload are readable JSON. Trust requires signature verification plus issuer, audience, time and application-policy checks.
8 min read Works in browser Privacy notes