JWT Decoder

Decode JSON Web Tokens to inspect the header, payload and claims, check expiry and verify the signature.

Runs locally Free
Examples

Encoded value

JSON Web Token (JWT)
  • Valid JWT · HS256 (HMAC using SHA-256)

Tokens are decoded and verified in your browser. Nothing is sent to a server.

Decoded header

{
  "alg": "HS256",
  "typ": "JWT"
}

Decoded payload

{
  "sub": "1234567890",
  "name": "John Doe",
  "admin": true,
  "iat": 1516239022
}

Signature verification optional

Secret encoding

About the JWT Decoder

A JSON Web Token is three Base64url-encoded parts joined by dots: a header that names the signing algorithm, a payload of claims such as the user ID and expiry time, and a signature that proves neither of them was changed. Paste a token above and each part is colour-coded and decoded instantly, with registered claims explained and timestamps like exp and iat converted to readable dates.

To check that a token is genuine, add the key in the verification panel. HMAC tokens (HS256, HS384, HS512) need the shared secret; RSA, RSA-PSS, ECDSA and EdDSA tokens need the issuer's public key as a PEM, an X.509 certificate, a JWK or a whole JWK Set — the right key is picked by kid. Verification uses your browser's built-in Web Crypto API, so the token and the key never leave your device.

Related reading: Base64 explained shows why JWTs use the URL-safe alphabet without padding, and Unix timestamps explains the seconds-based dates in exp and iat.

Frequently asked questions

Is it safe to paste a production token here?

Decoding and verification run entirely in your browser — nothing is uploaded or logged. Even so, a live access token works like a password until it expires, so treat it carefully everywhere: prefer short-lived or test tokens, and never paste a private signing key into any website. Verification only ever needs the public key.

Is the payload of a JWT encrypted?

No. A normal signed JWT (JWS) is only encoded, so anyone holding the token can read every claim, exactly as this tool does. The signature stops people from changing the claims, not from reading them. Never put passwords or other secrets in a payload; if the contents must stay private, use an encrypted JWE token instead.

Why does it say "Invalid signature" when the token decodes fine?

Decoding never needs a key, but verification does. The usual causes are the wrong secret or public key, a secret that was stored Base64-encoded (switch the secret encoding to Base64), a key from a different environment, or a token that was edited after signing. For RSA and ECDSA keys, check that the kid in the header matches the key you pasted.

What do exp, iat and nbf mean?

They are Unix timestamps in seconds. iat is when the token was issued, nbf is the earliest moment it may be accepted and exp is when it stops being valid. The decoder compares them with your device's clock and shows whether the token is expired or not yet active; servers usually allow a small clock skew of a minute or so.

Should I accept tokens with alg "none"?

No. An unsecured token has no signature, so anyone could have written it. Servers should reject none and pin the algorithms they expect rather than trusting the alg in the header — that single check prevents a whole class of well-known JWT vulnerabilities.