Tools › Build › JWT Decoder
🔐

JWT Decoder & Verifier

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.

✅ 100% Private
⚡ Instant Results
🔏 Verifies HS, RS, PS, ES
📴 Works Offline
JWT

Paste your token

Looks like xxxxx.yyyyy.zzzzz — a leading “Bearer ” is ignored.

0 characters
🎨

Token structure

Three Base64URL parts joined by dots.

HeaderPayloadSignature
⏰

Header


Payload


Payload claims
ClaimValueMeaning

Signature


🔏

Verify signature (optional, for developers)

Check that this token was really signed by your server and not edited.

Advertisement

How to use

  1. Paste your token into the box. A leading “Bearer ” is removed automatically, and decoding happens as you type.
  2. Read the colour-coded structure, the expiry status banner, and the decoded header and payload.
  3. Check the claims table — timestamps such as exp, nbf and iat are shown as readable dates.
  4. To verify the signature, enter the HMAC secret (HS256/384/512) or paste the public key as PEM or JWK (RS, PS, ES, EdDSA). The result appears instantly.
  5. Use Copy to copy the header, payload, signature or the whole token.

What is inside a JWT?

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 vs verifying

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.

Frequently asked questions

Is it safe to paste a real token here?

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.

Does this tool verify the signature?

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.

Why does it say “Invalid signature”?

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.

Which key formats can I paste?

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.

What do exp, nbf and iat mean?

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.

What is the “alg: none” warning?

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.

Can it decode encrypted tokens (JWE)?

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.

Why is my token flagged as expired when the server accepts it?

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.