JWT Decoder
Paste a three-part JWT to read its header and claims. Numeric iat, nbf and exp claims are shown as UTC timestamps when they represent valid dates. Decoding does not verify the signature. Everything runs in your browser and your input stays on this device.
What this tool does
Display the compact token’s JSON header and claims, with readable UTC values for numeric date claims.
Can you decrypt a JWT?
A three-part signed JWT has a Base64URL-encoded header and payload. Anyone holding the token can read them without a key, so keep secrets out of claims. The service that accepts the token verifies its signature using the appropriate trusted key. Five-part compact encrypted JWTs need the matching decryption key. This tool doesn’t decrypt them.
When to use it
When a service rejects a test token, inspecting its audience and expiration helps distinguish configuration problems from time-related failures.
How to use it
- Load the unsigned sample or paste a synthetic three-part JWT.
- Choose Decode JWT and inspect header, payload and claimDatesUtc.
- Verify signature and claims independently in the consuming service before trusting the token.
The header and payload are Base64URL text. To see how that encoding works, use the Base64 tool.
Worked example
Load the built-in demo and select Decode JWT. Look for sub with the value demo-user and exp with the value 1900000000. The decoder displays a readable UTC timestamp alongside the numeric claim. To check the expiration time, compare that UTC timestamp with the current time in UTC. At or after that time, the token is expired under the usual JWT expiration rule. The example uses alg none and ends with a dot for the empty signature segment. Use the demo when documenting the workflow or sharing a screenshot.
eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzdWIiOiJkZW1vLXVzZXIiLCJleHAiOjE5MDAwMDAwMDB9.sub: "demo-user"
exp (UTC): 2030-03-17T17:46:40.000Z
signatureVerified: falseSupported features and limitations
Decoding does not verify the signature or establish that a token is trusted. The example is unsigned. Encrypted five-part tokens require decryption and are unsupported.
Common mistakes and edge cases
JWT numeric dates use seconds since the Unix epoch. Treating the claim as milliseconds moves the displayed date by decades. A token with no exp claim has no expiration time to read from that claim, though the consuming service may still require one. The header and payload are visible to anyone holding an ordinary signed compact token. Avoid sharing live tokens in bug reports. Examine iat for issuance and nbf for the earliest allowed use. If a service reports an expired token even though exp looks current, compare its clock and accepted time tolerance with the issuer’s settings. Also check nbf independently. A token can be issued already and still be too early to use.
Frequently asked questions
- Does decoding verify the token?
- Decoding shows what the token contains. A service must separately validate the signature and apply its own issuer, audience, time and algorithm rules before granting access. An expiration value in the future gives no assurance that the token was issued by a trusted party.
- Why do some tokens have five segments?
- Five segments usually indicate compact encrypted JWT data. This decoder handles three-part compact tokens. Use the issuing service’s authorized decryption workflow for encrypted tokens.
- How do I decrypt a JWT token?
- If you have a standard three-part signed JWT, paste it and choose Decode JWT to read the header and claims. A five-part compact encrypted JWT needs decryption. Use the issuing service’s own process for encrypted tokens.
- How do I check when a JWT expires?
- Decode the token and find exp under claimDatesUtc. The original number is under payload.exp. Compare the UTC timestamp with the current time in UTC. At or after that time the token is expired under the usual rule. Also check nbf, because a token can be issued and still be too early to use.
- Why does my exp date look decades off?
- JWT numeric dates use seconds since the Unix epoch. Reading a seconds value as milliseconds can shift the displayed date by decades. The decoder expects seconds.
- Is it safe to paste a JWT here?
- The token is decoded in your browser and isn’t uploaded. A live token can still grant access, so use test tokens where you can and don’t share live ones in bug reports.