JWT Decoder
Paste a token to see its header, payload and claims. Registered claims are named and timestamps are shown as real dates. HS256 signatures can be verified with your secret.
Press Esc to clear
About the JWT Decoder
The single most important thing to understand about a JWT is that it is encoded, not encrypted. The header and payload are base64url text, which means anyone holding the token can read every claim in it without a key, a tool or any particular skill. This decoder does nothing you could not do by hand — which is exactly why nothing secret should ever go in a payload.
The second thing is that decoding is not verifying. A token is only meaningful once its signature has been checked, because the payload can be edited and re-encoded in seconds. A decoded token with an admin claim proves nothing at all until you have confirmed the signature was produced by the key you expect.
Signature verification here covers HS256, the symmetric algorithm, using the shared secret you provide. Asymmetric algorithms like RS256 and ES256 need the issuer's public key, usually fetched from a JWKS endpoint — and fetching an arbitrary URL is something this site will not do. When a token uses one of those, the tool says so explicitly rather than leaving you with an unexplained blank.
Registered claims are shown with their real names — iss as Issuer, sub as Subject, exp as Expires at — and the time claims are rendered as dates with a countdown, because a ten-digit number tells you nothing about whether a token is still valid. An expired token is flagged, and so is one whose nbf claim means it is not valid yet.
Your token and your secret stay in the tab. Neither is transmitted.
Frequently asked questions
Is it safe to paste a real token here?
The token never leaves your browser — there is no server to send it to. That said, treat any token you paste into any tool as one you should rotate afterwards if it is a production credential.
Why can this not verify my RS256 token?
RS256 is asymmetric and needs the issuer public key, normally fetched from a JWKS endpoint. This site makes no outbound requests, so only HS256, which uses a shared secret you can paste, can be checked here.
Does decoding a token mean it is valid?
No. Decoding only reads the base64url text, which anyone can do. A token means nothing until its signature has been verified against the expected key.
You might also need
- Developer
Base64 Encoder & Decoder
Encode and decode Base64, including the URL-safe variant, with full Unicode support.
- Developer
Hash Generator
SHA-1, SHA-256, SHA-384 and SHA-512 digests of text, plus HMAC with a secret key.
- Developer
JSON Formatter & Validator
Pretty-print, minify and validate JSON, with the error pinned to a line and column.