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.