Skip to content
kitify
Esc
↑ ↓ to moveEnter to open

JWT decoder and verifier

Paste a JSON Web Token to read its header and claims, see when it expires and check its signature. Your token and keys never leave this tab.

How to decode a JWT

  1. Paste the token. A JWT looks like eyJhbGciOi… with two dots in it. A leading Bearer from an Authorization header is removed for you.
  2. Read the claims. The header and payload are shown as a table. Time claims such as exp, iat and nbf are turned into dates with "in 3 hours" or "2 days ago".
  3. Verify the signature. Enter the shared secret for HS256/384/512, or the public key (PEM or JWK) for RS, PS and ES tokens. You'll see straight away whether the signature is valid.

What's inside a JSON Web Token

A JWT has three base64url parts joined by dots: the header (which algorithm signed it), the payload (the claims, such as user ID, roles and expiry) and the signature. The header and payload are only encoded, not encrypted, so anyone holding the token can read them. Never put passwords or personal data in a JWT payload.

ClaimMeaning
expExpiry time in Unix seconds. Servers must reject the token after this.
iatWhen the token was issued.
nbfNot valid before this time.
sub / iss / audSubject (usually the user), issuer and intended audience.

Why decode tokens in the browser

Production JWTs are live credentials. Pasting one into a site that sends it to a server is a risk. This decoder uses the browser's Web Crypto API, so the token, secret and keys stay on your device and are gone when you close the tab.

Questions people ask

Can you decode a JWT without the secret?

Yes. The header and payload are only base64url encoded, so anyone can read them. The secret or key is needed only to check that the signature is genuine.

How do I know if a JWT has expired?

Look at the exp claim. This tool turns it into a date and tells you whether it's already passed. If there's no exp claim, the token never expires on its own.

Why does it say invalid signature?

The key doesn't match the one used to sign the token, the secret has stray spaces, or the token was edited. For HS tokens, check whether your secret is stored as base64 and tick that box.

Which algorithms are supported?

HS256, HS384 and HS512 with a secret; RS256/384/512 and PS256/384/512 with an RSA key; and ES256, ES384 and ES512 with an EC key, as PEM or JWK.

Is it safe to paste a production token here?

Everything runs in your browser and nothing is sent or stored. Even so, treat tokens like passwords and rotate any that you think may have leaked.