Is a JWT token encrypted?
No. A normal JWT is only signed, so anyone can read its payload. An encrypted token is a JWE, with five parts instead of three.
Paste a JWT token to read its header, payload and claims, see when it expires and verify its signature, all inside this tab.
Paste a token to decode it, or try an example.
The header and payload show here as you paste, with every claim explained.
Paste a token above, then its key here to check the signature.
HMAC with SHA-256
Used as typed, as UTF-8
Type a secret or generate one, and the signed token shows here.
Decode JWT online to see every claim in plain words, with exp, iat and nbf turned into dates in your own time zone.
Free with no sign-up, for access tokens, ID tokens and Bearer headers from OAuth, OpenID Connect, Auth0, Okta, Cognito and Entra ID.
Decode a JWT online, read what each claim means and check the signature, in three steps.
Paste a JWT, a Bearer header or a whole JSON response into the box. The header and payload decode as you type.
Claims lists every field with its meaning. exp, iat and nbf show as dates, with how long until the token expires.
Paste the secret, a PEM public key or a JWKS under the token, and the signature is checked against it right away.
A JWT, or JSON Web Token, is a short string that carries facts about a user or a request, such as who they are and when their access ends. It has three parts joined by dots: a header, a payload and a signature, each written in URL safe Base64, as RFC 7519 sets out.
The header names the signing algorithm, such as HS256 or RS256, and often a key ID called kid. The payload holds the claims. The signature is made from the first two parts with a key, so changing a single character of the header or payload makes the check fail.
Anyone can read a JWT, because Base64 is a way of writing data, not a lock. A key is only needed to check the signature or to sign a new token. In the box above, each part takes its own colour, so you can see where the header ends and the payload begins.
Registered claims have short names. iss is who issued the token, sub is the user it is about, aud is who it is meant for and jti is its unique ID. exp, nbf and iat are times: when it expires, when it starts to count and when it was issued.
Those times are NumericDate values, the seconds since 1 January 1970 in UTC, such as 1767225600. Each one shows here as a date in your time zone and in UTC, and the line under the token says whether the JWT is expired, not valid yet or still good, counting down live.
Writing a time in milliseconds is a common bug that makes a token last for thousands of years, so values that look like milliseconds get a warning. Claims from OpenID Connect and from providers, such as email, scope, roles, azp and tid, are explained in plain words too.
To verify a JWT, the signature is worked out again with your key and compared. HS256, HS384 and HS512 use a shared secret, typed as text or as Base64. RS, PS and ES algorithms and EdDSA use a public key, pasted as PEM, an X.509 certificate, a JWK or a whole JWKS.
With a JWKS, the key whose kid matches the token's header is picked for you, so the key set from a provider's jwks.json endpoint works as it is. A private key works too: only its public part is used, and like every key here it is never stored or sent anywhere.
A token with alg set to none has no signature at all and is flagged. A JWE, with five parts instead of three, is encrypted rather than signed: its header is shown, and the page says why its payload cannot be read without the key it was encrypted for.
Paste an Authorization header, a cookie or a JSON response, and the JWT inside it is found and read.
exp, iat and nbf become dates in your time zone and UTC, with a live countdown to the JWT expiry.
Checks HS256 to HS512, RS256, PS256, ES256 and EdDSA signatures with Web Crypto, in this tab.
Paste a jwks.json, a JWK, a PEM public key or a certificate. The key matching kid is picked.
Write the header and payload as JSON, pick an algorithm and create a JWT token with your own key.
Make a random 256, 384 or 512-bit secret for HS256 and up, or a new RSA, EC or Ed25519 key pair.
A live JWT works like a password, so every token is decoded and checked on your device and never sent.
Decoding, signature checks and signing all run on your browser's Web Crypto. No token goes online.
The token is kept only until this tab closes, so a refresh does not lose it. Keys are never saved.
A free JWT decoder and encoder with no sign-up, no email and no limit on how many tokens you check.
No. A normal JWT is only signed, so anyone can read its payload. An encrypted token is a JWE, with five parts instead of three.
Yes. The header and payload are plain base64url that anyone can read. The secret is only needed to prove the token is genuine.
Three runs of letters and digits joined by dots, like eyJhbGci.eyJzdWIi.SflKxwRJ. The header and payload both start with eyJ.
The JWT ID: a unique value for this one token, so a server can spot a token used twice or put a single token on a block list.
HS256 signs and checks with one shared secret. RS256 signs with a private key and checks with a public key that anyone can hold.
No. OAuth 2.0 is a way to grant access, and a JWT is a token format. Many OAuth servers issue their access tokens as JWTs.
Install jwt-decode from npm and call jwtDecode(token). It reads the payload only and never checks the signature.
With PyJWT, call jwt.decode(token, options={"verify_signature": False}). Pass the key and algorithms instead to verify it.
Still stuck, or found a problem? Email dobliquestudio@gmail.com and we will help.