JWT decoder
Paste a token, or a whole Authorization header, to read it. The token never leaves this page. The gray text is an example.
Example token, signed with the secret “example-secret”.
Header
{
"alg": "HS256",
"typ": "JWT"
} Payload
{
"sub": "user-42",
"name": "Ada Lovelace",
"role": "admin",
"iat": 1794355200,
"exp": 1893456000
} Check the signature
Good to know
- Private
- The token and key are read in this page and sent nowhere. Still, a token is a password for as long as it is valid: paste production tokens only into tools you trust, and prefer expired ones.
- Exact
- The header and payload are shown as written: text in any language, and long numeric ids that most decoders round (
12345678901234567890). - Times
exp,nbf,iatandauth_timeare seconds since 1970 (UTC). A 13-digit value is milliseconds by mistake and is pointed out. Expired means now is at or afterexp, with no clock leeway.- Signature
- Checked with the algorithm in the header: HS256/384/512 with the shared secret (as text, or a JWK with
"kty": "oct"); RS, PS and ES 256/384/512 with the public key as PEM (BEGIN PUBLIC KEY), a JWK, or a JWK set, where the token'skidpicks the key. A valid signature says who made the token, not that it is still valid: check the times and claims too. - Refused
- An HS token is never checked with a public key used as the secret: that is how forged tokens pass careless checks (algorithm confusion). Unsigned tokens (
alg: none) are never called valid. - Encrypted tokens
- A token with five parts is encrypted (JWE); without its key there is nothing to read.
- Open from a link
#token=eyJ…opens the page with that token. The part after#is never sent to a server, so the token stays out of server logs.