Paste a JSON Web Token to decode its header and payload, read every claim, check expiry and verify the signature — all in your browser, nothing is sent anywhere.
Looks like xxxxx.yyyyy.zzzzz — a leading “Bearer ” is ignored.
Three Base64URL parts joined by dots.
| Claim | Value | Meaning |
|---|
Check that this token was really signed by your server and not edited.
JWT_SECRET), enter it here to confirm the token is genuine and unchanged. For tokens from services like Google or Auth0, paste their public key instead. You do not need this just to read a token — decoding above already works without it.🔒 The secret or key is used only inside this page. Nothing is uploaded or stored. Avoid pasting real production secrets anywhere — test with a staging secret when you can.
exp, nbf and iat are shown as readable dates.A JSON Web Token has three Base64URL parts joined by dots: header.payload.signature. The header names the signing algorithm (alg) and often a key ID (kid). The payload carries claims such as sub (subject), iss (issuer), aud (audience), exp (expiry), nbf (not before) and iat (issued at). The signature proves the first two parts were not changed.
The header and payload are only encoded, not encrypted — anyone holding the token can read them, so never put passwords or other secrets in a JWT.
Decoding just reads the contents and needs no key. Verifying recalculates the signature and compares it, which needs the HMAC secret or the issuer’s public key. A token can decode perfectly and still be forged, so servers must always verify before trusting any claim.
This tool supports HS256/384/512 (shared secret), RS256/384/512 and PS256/384/512 (RSA public key), ES256/384/512 (ECDSA public key) and EdDSA (Ed25519, in browsers that support it). Expiry shown here is checked against your device clock; the signature check is separate.
Decoding and verification run entirely in your browser using built-in JavaScript and WebCrypto. The token, secret and key are never sent to a server or stored. Even so, treat live production tokens as passwords: prefer short-lived or test tokens, and do not paste tokens from a shared or untrusted computer.
Yes, when you enter a secret or public key in the “Verify signature” box. Without a key it only decodes the token, which is why the status banner shows expiry but not authenticity.
The usual causes are a wrong secret or key, a secret that is actually Base64URL-encoded (tick the option), an extra space or line break copied with the secret, a key from a different environment, or a token that was changed after signing. For RSA and ECDSA tokens, make sure you pasted the public key that matches the kid in the header.
For HMAC tokens, paste the plain secret. For RSA, ECDSA and EdDSA tokens, paste a PEM public key (-----BEGIN PUBLIC KEY-----), a single JWK, or a whole JWKS document — the key matching the token’s kid is chosen automatically. Certificates and PKCS#1 keys need converting first, and private keys are rejected on purpose.
exp is the time after which the token must be rejected, nbf is the time before which it must not be accepted, and iat is when it was issued. They are Unix timestamps in seconds. If a value is in milliseconds (a common mistake), this tool flags it so you can spot why a token looks expired or valid for thousands of years.
Tokens with alg set to none carry no signature, so anyone can create them. Servers must reject them for authentication. If you see this warning on a token that should be signed, treat it as suspicious.
No. Encrypted tokens (JWE) have five parts and their contents are hidden without the decryption key. This tool handles signed tokens (JWS) with three parts, which are the ones used by most APIs, OAuth and OpenID Connect providers.
Expiry is compared with your device clock. If your clock is a few minutes off, or the server allows a clock-skew leeway, the result can differ slightly. Check your system time first.