JWT Decoder
Paste a JSON Web Token to decode its header and payload. This JWT decoder shows exp, iat and nbf as readable dates, explains every claim, warns about risky settings and verifies the signature locally.
Paste a token with or without the Bearer prefix. It is decoded in your browser and never sent anywhere.
| Claim | Value | Meaning |
|---|
| Parameter | Value | Meaning |
|---|
Enter the shared secret (HS256, HS384, HS512) or the public key (RS, PS, ES and EdDSA algorithms). Verification uses the Web Crypto API in your browser; keys are never uploaded or stored.
PEM public key (SPKI or PKCS#1), PEM certificate, JWK or JWK Set. From a JWK Set the key with the token's kid is used.
Read Any JSON Web Token in Seconds
A JWT is three base64url strings joined by dots. They are not encrypted, only encoded, so you can read every claim without a key. Paste a token from an Authorization: Bearer header, a cookie or a login response and the header and payload appear as formatted JSON, with a tree view and a table that explains each claim.
Dates such as exp, iat and nbf are converted from Unix seconds into UTC dates with the time remaining, and the decoder warns about unsigned tokens, missing expiry, embedded keys and other mistakes. With the secret or public key you can also check the signature. Decoding and verification run entirely in your browser: tokens and keys never leave it.
How to decode a JWT
- Copy the token. In your browser's developer tools, open the Network tab and copy the value after
Bearerin theAuthorizationheader, or copy it from a cookie, local storage or an API response. - Paste it into the Encoded JWT box. The
Bearerprefix, quotes and line breaks are removed automatically. The coloured view shows which part is the header, payload and signature. - Read the header and payload. Switch between Text and Tree, copy either part, and read the tables below, which explain each header parameter and claim and turn timestamps into dates.
- Check the status and warnings. The badge shows whether the token has expired. Set a clock tolerance if your servers allow some clock skew.
- Verify the signature by entering the shared secret for HS256, HS384 or HS512, or the public key for RS, PS, ES and EdDSA tokens.
How a JSON Web Token is built
A signed JWT uses the JWS compact serialization from RFC 7515: BASE64URL(header) . BASE64URL(payload) . BASE64URL(signature). The header is a JSON object that names the algorithm (alg) and often the token type (typ) and key ID (kid). The payload is the claims set defined in RFC 7519. The signature is computed over the ASCII text header.payload, exactly as encoded, so changing a single character of either part makes the signature invalid.
Base64url is base64 with - and _ instead of + and /, and without = padding. That is why a JWT can travel in URLs, cookies and HTTP headers without escaping. The decoder converts the bytes as UTF-8, so names and other text in any language display correctly.
An encrypted token (JWE, RFC 7516) has five parts instead of three: protected header, encrypted key, initialization vector, ciphertext and authentication tag. Only the header of a JWE is readable; the claims need the recipient's key, so this tool shows the header and its alg and enc values.
Registered JWT claims
| Claim | Name | Type | Meaning |
|---|---|---|---|
iss | Issuer | String or URI | Who issued the token, often the identity provider URL. |
sub | Subject | String or URI | The user or entity the token is about, unique within the issuer. |
aud | Audience | String or array | Who the token is meant for. A recipient that is not listed must reject it. |
exp | Expiration time | NumericDate | The token must not be accepted on or after this time. |
nbf | Not before | NumericDate | The token must not be accepted before this time. |
iat | Issued at | NumericDate | When the token was issued; useful to judge its age. |
jti | JWT ID | String | A unique ID that lets servers detect replays or revoke a single token. |
A NumericDate is the number of seconds since 1970-01-01T00:00:00Z, ignoring leap seconds. It is not milliseconds: 1767225600 is 1 January 2026 00:00 UTC. All seven claims are optional in RFC 7519; applications and profiles such as OpenID Connect decide which ones are required. You can convert any timestamp with the Unix timestamp converter.
JWT signing algorithms
| alg | Algorithm | Key | Signature size |
|---|---|---|---|
HS256, HS384, HS512 | HMAC with SHA-2 | Shared secret, at least as long as the hash (32, 48 or 64 bytes) | 32, 48 or 64 bytes |
RS256, RS384, RS512 | RSASSA-PKCS1-v1_5 with SHA-2 | RSA key pair, 2048 bits or more | Key size (256 bytes for 2048-bit keys) |
PS256, PS384, PS512 | RSASSA-PSS with SHA-2 and MGF1 | RSA key pair, 2048 bits or more | Key size |
ES256 | ECDSA, curve P-256, SHA-256 | EC key pair | 64 bytes (r and s) |
ES384 | ECDSA, curve P-384, SHA-384 | EC key pair | 96 bytes |
ES512 | ECDSA, curve P-521, SHA-512 | EC key pair | 132 bytes |
EdDSA | Ed25519 or Ed448 (RFC 8037) | OKP key pair | 64 bytes for Ed25519 |
none | No signature | None | Empty |
The algorithms come from RFC 7518 (JSON Web Algorithms) and RFC 8037. ECDSA signatures in a JWT are the raw r and s values joined together, not the DER structure that OpenSSL produces, a common cause of failed verification when tokens are signed by hand.
Decoding is not verification
Anyone can decode a JWT, and anyone can create one with any claims. A token is only trustworthy after its signature has been checked with the right key and the server has checked exp, nbf, iss and aud. This page verifies signatures with the browser's built-in Web Crypto API. For HMAC tokens the secret is used as UTF-8 text unless you tick the base64 option; some providers hand out secrets that must be base64-decoded first. For RSA, ECDSA and EdDSA tokens paste the public key as PEM (PUBLIC KEY, RSA PUBLIC KEY or a CERTIFICATE) or as a JWK. You can paste a whole JWK Set from a /.well-known/jwks.json URL and the key with the token's kid is picked.
To create test tokens for these checks, use the JWT Generator. To compute an HMAC of any message, use the HMAC generator.
JWT security checklist
- Pin the algorithm on the server. Never let the token's own
algchoose how it is verified. Rejectnone, and do not accept HS256 where you expect RS256: a public key used as an HMAC secret lets attackers forge tokens. - Keep tokens short-lived. Access tokens of 5 to 60 minutes with refresh tokens limit the damage when a token leaks, because a JWT cannot be revoked without extra server state.
- Do not put secrets in the payload. Passwords, API keys and personal data in a JWT can be read by anyone who sees the token.
- Check iss and aud so that a token issued for one service cannot be replayed against another.
- Use strong keys. HMAC secrets should be random and at least as long as the hash output; create one with the token generator. RSA keys should have at least 2048 bits.
- Store tokens carefully. In browsers, an HttpOnly, Secure cookie keeps tokens away from scripts; inspect such cookies with the cookie parser.
Frequently Asked Questions
Common questions about decoding and verifying JWTs.
Decoding and verification run in your browser with JavaScript and the Web Crypto API; the token, secret and keys are not uploaded, stored or logged. Even so, a valid token is a credential, so prefer expired or test tokens and never share live production tokens.
Yes. The header and payload are only base64url encoded, not encrypted, so anyone can read them. The secret or key is needed to verify or create the signature, not to read the claims.
The exp claim is earlier than your computer's current time. Servers reject such tokens. If the difference is only seconds, the issuing server's clock may be ahead; many libraries allow a small clock tolerance for this.
Check whether the secret must be base64-decoded first (tick the option), that you copied it without extra spaces, and that the alg in the header is the one your server uses. Any change to the header or payload also breaks the signature.
HS256 uses one shared secret both to sign and to verify, so every verifier could also create tokens. RS256 signs with an RSA private key and verifies with the public key, so verifiers cannot issue tokens. RS256, PS256 and ES256 suit tokens checked by many services.
A JWE is an encrypted token with five parts. Its claims can only be read with the recipient's private or shared key. This decoder detects JWE tokens and shows the readable header, but it does not decrypt them.
The token is unsigned. RFC 7519 allows such unsecured JWTs, but because anyone can change them, servers must reject them unless they are protected some other way. Accepting alg none has been the cause of real authentication bypasses.
For RSA, ECDSA and Ed25519: PEM public keys in SPKI or PKCS#1 format, PEM X.509 certificates, single JWKs and JWK Sets. For HMAC: the secret as text or as base64 or base64url.