JWT Decoder
Decode JSON Web Tokens, check expiry and verify the signature.
How to use the JWT Decoder
- 1Paste a JWT or drop a file that contains one.
- 2Read the header and claims with dates in your local time.
- 3Verify the signature with a secret or public key.
About JWT Decoder
The JWT Decoder splits a JSON Web Token into its header and payload and shows the claims in a readable form. Standard claims like iss, sub, aud, exp, nbf and iat are labeled, and timestamps are converted to your local time, so you can see at a glance when a token was issued and whether it is still valid, expired, not yet valid or never expires. Paste the token directly, with or without a Bearer prefix, or drop a file that contains one.
The signature can be verified for HMAC (HS256, HS384, HS512), RSA (RS256 to RS512 and PS256 to PS512), ECDSA (ES256, ES384, ES512) and EdDSA tokens. Use the shared secret as text or Base64 for HMAC, or paste a PEM public key, an X.509 certificate, a JWK or a whole JWK set, where the matching key is picked by its kid. Tokens with alg none are flagged as unsigned, and encrypted tokens (JWE) are recognized, with only their header shown.
This JWT decoder is useful for developers debugging authentication with OAuth 2.0 and OpenID Connect, testing APIs that use bearer tokens, or checking why a token is rejected.
Frequently asked questions
Is it safe to paste a token here?
Decoding and verification happen in your browser; the token is never sent anywhere. Still treat live tokens like passwords.
Is the content of a JWT encrypted?
Usually not. A signed JWT is only Base64url-encoded, so anyone holding it can read the claims; the signature only proves it wasn't changed. Don't put secrets into a JWT payload unless the token is encrypted as a JWE.
What do exp, iat and nbf mean?
They are timestamps in seconds since 1 January 1970 UTC: iat is when the token was issued, nbf when it becomes valid, and exp when it expires. Servers should reject a token outside that window.
What is the difference between HS256 and RS256?
HS256 signs with a shared secret, so whoever verifies a token could also create one. RS256 signs with an RSA private key and verifies with the public key, so services can check tokens without being able to issue them.
Guides
More in File Viewers
Drop any file to look inside it, with the right viewer picked for you.
Browse JSON as a collapsible tree and find syntax errors down to the line.
Check YAML for indentation and syntax errors and explore it as a tree.