DevToolCase
Sign in Sign in

Decode a JWT

Read the header and payload of a JSON Web Token, with its issue and expiry dates.

Share this result

Encrypted in your browser. The key stays in the link, after “#”: only the people you give it to can read it, not even DevToolCase.

The link works for

Sign in for longer links or links without expiry, and to find them in your account.

Runs entirely in your browser: nothing you type is sent or stored.

What is a JWT?

A JSON Web Token is made of three parts separated by dots: a header (the signing algorithm), a payload (the claims: who the user is, until when the token is valid) and a signature. Most APIs, and OpenID Connect, use it to pass the identity of a user.

The header and the payload are JSON encoded in Base64URL, which is why a JWT always starts with eyJ, the encoding of {". The Base64 decoder reads any one part.

The usual claims

ClaimMeaning
subsubject: the user the token is about
ississuer: who created the token
audaudience: the service it is meant for
iatissued at: a Unix timestamp
expexpiry: after it, the token must be refused
nbfnot before: the token is not valid earlier

Decoded is not verified

Anyone can read a JWT: its payload is encoded, not encrypted, so never put a secret in it. The signature proves the token has not been changed, but checking it needs the issuer's key: the server must always verify it, never trust a token only because it decodes.

Is my token sent anywhere?

No, it is decoded in your browser. A valid token still opens an account: share an expired one in a screenshot or a bug report.

Add this browser’s favorites to your account?

This browser has 0 favorites that your account does not have:

Either way, this browser keeps its favorites: you find them again after signing out.