JWT Decoder
Read a JSON Web Token's header, payload and claims, and verify its signature with your secret or public key.
RFC 7519HS, RS, PS, ES and EdDSA · limit 1 MB
| Claim | Meaning | Value |
|---|
No registered claims.
Based on your device's clock.
Runs in your browser. Nothing you enter is sent anywhere. How to check
1.How to use
- Paste a token. A leading
Bearerand line breaks are removed. - Read the header, the payload and the claims. Dates show in UTC and in your local time.
- To verify the signature, open Verify signature and paste the secret (for HS256, HS384, HS512) or the public key (for every other algorithm).
Until you verify, the page says so: anyone can create a token with any contents, so a decoded token proves nothing about who made it.
2.Examples
A token with standard claims
Load example fills a fake HS256 token. Its payload has an issuer, subject, two audiences, an expiry in 2036, an issue time and a token ID, plus a customname claim with non-Latin characters: Zoë Example 例.
Verifying an HS256 token with its secret
Load example also fills its secret, example-secret-for-this-page-only-0123, as text. The first line then reads "Signature verified with HS256 and the key you entered." Change one character of the token or the secret and it reads "Signature does not match."
Verifying an RS256 token with a PEM public key
Paste this token, open Verify signature and paste the public key below it.
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImV4YW1wbGUtcnNhIn0.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS50ZXN0Iiwic3ViIjoidXNlci0xMjM0IiwiYXVkIjoiZXhhbXBsZS1hcGkiLCJpYXQiOjE3NjQ4MDY0MDAsImV4cCI6MjA4Mjc1ODQwMH0.YgTYhGtCTRuAGlxeARD2CMRW0vxxD5LZCnSRJ3QTPK0AEJD6hQAEy_I6m2gjKn5zkatiBT2aIi_Sjhh5O5pZlnUWxL4n5BJK4yV9IjMOg-uVMDTpRpF8AQzMK90YHBCsUvBASD40y5yj7NV6_z6CG8TL3XTgIIuUnwqTemd9PMZitFLWhti1rMeqDCB54PqKoFHDYG5SfXmrYsAvA3OLmU52W8optpOZhh9XLzKVu84FHVWshbaue-mi9ZBhh-oYOD9WcYhgsgJviqFyJ6YH3CJaWuFbz9TIVU8Coi6v-vD8Mh_UF7DWr4pcbhV1tst31EQslH11hVy5gTXX0A3GGg
-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2tpoCVTw9LqGW8EK302L dc5iF5AJrKKZDqr0wj/WAVCrd7rWcC4456DJjElXQcRXDh/xNEzKozZ5N1iCjM9d pnb7g3WQnfSZDZPbqseLswGKAg0TjINgAer6Lu0Q1w22f8lzLBTeKPClpyDDVIAh lXJ0edgcgbQl2P7haZ2tzaXxUqyCm57rOKf4Ws5qSIzyNAMDQVipnAzjJh5fM6fa LzSHc1DVYLNmD8u40rUgcubJVFhAcXyPQ7RNX9DUXqoUwWjLpgwWt6bk4Sy14U+z CgcAmuiqdCGPKx+52e71RdZZ1kop86AggIQQ7dwh8nnj1Jusy2oPWz2HiX7bKoXp vwIDAQAB -----END PUBLIC KEY-----
The field label changes to "Public key", and the signature verifies with RS256. The same key as a JWK, or in a JWK Set with kid example-rsa, works too.
An expired token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS50ZXN0Iiwic3ViIjoidXNlci0xMjM0IiwiaWF0IjoxNzY0ODA2NDAwLCJleHAiOjE3NjQ4MTAwMDB9.1I0G8akuyddse1SMiwlJHbU6ppwNl_YwpHRbHhFdbQo
Its exp is 1764810000, which is 2025-12-04T01:00:00Z. The claims show "Expired … ago", based on your device's clock.
An encrypted token
A token with five parts, whose header is like{"alg":"RSA-OAEP","enc":"A256GCM"}, is an encrypted token (JWE). The page says so: its contents cannot be read without the decryption key.
3.Options explained
The three parts of a token
A signed JWT is three Base64url parts joined by dots: the header, the payload and the signature (RFC 7515 §7.1). The header names the algorithm in alg. The signature covers the first two parts exactly as received.
Secret encoding
For HS256, HS384 and HS512, "Secret is" says how to read the secret: as text (UTF-8 bytes), as Base64 or as Base64url. Choose Base64 when the secret is random bytes written in Base64. This choice is remembered on this device; the secret itself is not.
Accepted key formats
- A PEM public key starting with
-----BEGIN PUBLIC KEY-----(SPKI). - A JWK, such as
{"kty":"RSA","n":"…","e":"AQAB"}. - A JWK Set (
{"keys":[…]}). The key whosekidmatches the token header is used.
The key must fit the algorithm: an RSA key for RS and PS, an EC key on the right curve for ES (P-256 for ES256, P-384 for ES384, P-521 for ES512), an Ed25519 key for EdDSA, and a secret for HS. ECDSA signatures must be in the JWT form, r and s joined (RFC 7518 §3.4).
4.Limits
- Verifies the signature only. Claims such as
issandaudare shown, not checked; only the time status is computed. - Does not download keys (JWKS) from the issuer, because that would send a request. Paste the key instead.
- No X.509 certificates and no PKCS #1 keys (
BEGIN RSA PUBLIC KEY). Paste the SPKI public key or a JWK. - No encrypted tokens (JWE), and no tokens that use
critorb64. - Input up to 1 MB.
- EdDSA needs a browser with Ed25519 support in Web Crypto.
5.FAQ
What is the difference between decoding and verifying?
Decoding only reads the Base64url text, and anyone can do it. Verifying checks the signature with the key, which shows that the token was made by someone who holds that key and was not changed since.
Is it safe to paste a secret here?
The secret stays in this page's memory. It is never stored, never put in the URL and never sent; Clear removes it. To check, open your browser's developer tools, watch the Network tab while you verify, and see that no request is made (how to check).
Why is a public key never used as an HMAC secret?
If a verifier accepted a public key as an HMAC secret, anyone could sign a forged HS256 token with that public key. This known attack is called algorithm confusion (RFC 8725). This tool uses a key only with its own algorithm family.
Is it safe to paste a production token here?
The token never leaves your browser and the page has no share link. You can confirm this in the Network tab as above. A live token is still a credential, so treat screenshots of it with care.
What do exp, iat and nbf mean?
exp is when the token expires (RFC 7519 §4.1.4), nbf is the time before which it must not be accepted (§4.1.5), and iat is when it was issued (§4.1.6). Each is a number of seconds since 1970-01-01 UTC.
Why does my token show as expired?
The time status uses your device's clock. If the clock is wrong, the status is wrong too. Also check that exp is in seconds: a value in milliseconds is flagged.