JWT Decoder
Decode a JSON Web Token locally to inspect its header, claims and UTC timestamps.
Runs in your browser. 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.
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.
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.