JWT Decoder

Paste a JWT to see its header, payload and expiry. The token never leaves your browser.

Everything you enter is processed inside this browser and is never sent to a server.

How to use it

Paste a JWT, the dot-separated string that usually starts with eyJ. The header and payload are shown as formatted JSON. A leading Bearer is ignored. A sample (expired) token is shown when the page opens.

Structure of a JWT

PartContents
HeaderThe signing algorithm (alg) and token type (typ)
PayloadThe claims, such as the user ID and expiry
SignatureProves the header and payload were not changed

The header and payload are only Base64URL-encoded, not encrypted, so anyone can read them. Never put secrets in a JWT payload.

Time claims

exp (expires), iat (issued at) and nbf (not before) are Unix timestamps in seconds. They are shown as dates in your local time and in UTC, and the tool tells you whether the token has expired.

Signatures are not verified

This tool only reads tokens. It does not check the signature, so the contents shown are not proof that the token is genuine. Tokens with alg: none are flagged.

Is it safe to paste a real token?

The token never leaves your browser. Still, a valid token works like a key, so be careful with screen sharing and screenshots.