About JWT Decoder
Decoding is not verification. A JWT payload is Base64-encoded, not encrypted, so anyone holding the token can read it, and reading it here proves nothing about whether the signature is valid. Treat any production token you paste anywhere as exposed.
Decode a JSON Web Token's header and payload to inspect its claims, issuer, audience and expiry. JWTs are widely used for authentication and API authorisation, and being able to read them quickly is essential when debugging login flows.
The payload carries claims like issuer, audience and expiry, which is usually enough to explain why a login failed. An expired token and one signed with the wrong key look identical to the user, but the exp claim separates them in seconds.
A JSON Web Token is three Base64URL segments separated by dots: a header naming the signing algorithm, a payload of claims, and a signature computed over the first two. Only that third segment is cryptographic. The first two are merely transport-encoded, which means every claim inside is legible to whoever is carrying the token — and to anything that logs it along the way. Two rules follow: put nothing confidential in a payload, and never treat a decode as proof of anything, since well-formed Base64 is trivial to produce.
When a login fails, a handful of claims explain most cases. `exp` and `iat` give expiry and issue time as Unix timestamps, and an expired token looks identical to an invalid one from the user's side. `iss` and `aud` identify who issued the token and who it was meant for, and an audience mismatch is a common failure when several services share an identity provider. `nbf` sets a not-before time, which produces the confusing case of a token that is genuinely valid and not yet usable.
Common use cases
- Debugging a login or API authorisation failure by reading the claims the server saw.
- Confirming which scopes or roles a token actually carries versus what was expected.
- Checking token lifetime while tuning refresh behaviour in an application.
- Inspecting a token from a third-party identity provider during an integration.
- Teaching or reviewing how JWTs are structured without wiring up a library.