Advertisement

JWT Decoder

Decode a JWT to read its header, payload and claims, check expiry and verify the signature - privately in your browser.

Last updated:

JWT Decoder
Decode · Expiry · Verify signature
Verify signature (optional)

How to Decode and Verify a JWT

1
Paste the token (from an Authorization header, cookie or localStorage)
2
Read the header, payload, claims and expiry status
3
To check the signature, paste the HMAC secret or the PEM public key and press Verify

Production tokens are safe here: decoding and verification run on your device.

JWT Structure

PartContainsEncoded as
HeaderAlgorithm (alg) and type (typ), sometimes key ID (kid)Base64URL JSON
PayloadClaims: user ID, roles, expiry and custom dataBase64URL JSON
SignatureProof the token was issued by the key holder and not changedBase64URL bytes

Standard JWT Claims

ClaimNameMeaning
issIssuerWho created the token
subSubjectThe user or entity the token is about
audAudienceWhich API should accept it
expExpirationUnix time after which it is invalid
nbfNot beforeUnix time before which it is invalid
iatIssued atWhen it was created
jtiJWT IDUnique ID to prevent reuse

Signing Algorithms

AlgorithmTypeVerify with
HS256 / HS384 / HS512HMAC (shared secret)The same secret
RS256 / RS384 / RS512RSAPublic key (PEM)
PS256 / PS384 / PS512RSA-PSSPublic key (PEM)
ES256 / ES384 / ES512ECDSAPublic key (PEM)
noneUnsignedNever accept

Common JWT Problems

Is Decoding a JWT Safe?

Decode a JWT in Code

LanguageExample
JavaScriptJSON.parse(atob(token.split(".")[1].replace(/-/g,"+").replace(/_/g,"/")))
Node.jsjwt.decode(token) / jwt.verify(token, secret) (jsonwebtoken)
Pythonjwt.decode(token, key, algorithms=["HS256"]) (PyJWT)
Bashecho $TOKEN | cut -d. -f2 | base64 -d

Where to Find Your JWT

PlaceHow to get it
Browser request headerDevTools → Network → request → Headers → Authorization: Bearer …
Local or session storageDevTools → Application → Local Storage
CookiesDevTools → Application → Cookies (HttpOnly ones are hidden from scripts)
PostmanAuthorization tab or the Console
Auth providersAuth0, Firebase, Cognito, Okta return id_token and access_token

Related Tools

Frequently Asked Questions

How do I decode a JWT? +

Paste it above. The header and payload are decoded instantly, with claims explained and expiry checked.

Is it safe to paste a production JWT here? +

Decoding runs entirely in your browser and nothing is sent. Still, tokens grant access, so avoid sharing them elsewhere.

How do I check if a JWT is expired? +

Look at the Status card. It compares the exp claim with the current time and shows how long until or since expiry.

Can I verify a JWT signature? +

Yes. Paste the HMAC secret for HS256/384/512, or the PEM public key for RS, PS or ES algorithms, and press Verify.

Can a JWT be decoded without the secret? +

Yes. The header and payload are only Base64URL-encoded. The secret is needed only to verify or create the signature.

What is the difference between JWT and JWE? +

A JWT (JWS) is signed but readable. A JWE is encrypted and has 5 parts; its content cannot be read without the key.

Why does verification fail with the right secret? +

Check whether the secret is Base64-encoded (tick the box) and that the token was copied fully without spaces.

What is the Bearer prefix? +

Authorization headers send "Bearer ". You can paste it with or without "Bearer".

About the creator Prajwal Karkera, creator of ToolsFlow

Built and maintained by Prajwal Karkera, a digital product specialist with 8+ years of experience in digital products. Found a problem with this tool? Let us know through the Contact page.
Read more about me →