JWT decoder
Paste a JSON Web Token (JWT) to see what's inside. The decoder shows the header and payload as formatted JSON, turns timestamps such as exp and iat into readable dates, tells you whether the token has expired, and can check an HS256, HS384 or HS512 signature with your secret. Everything runs in your browser, so tokens and secrets are never sent to a server.
| Claim | Meaning | Value |
|---|
How to use the JWT decoder
- Paste your JWT. A leading "Bearer " is removed for you.
- Read the header, payload and the table of claims with dates.
- Check the status line to see whether the token has expired.
- Optional: paste the secret to verify an HMAC signature.
How it works
A JWT has three parts separated by dots:
header.payload.signature
- The header says which algorithm signed the token, such as HS256 or RS256.
- The payload holds the claims, such as the user ID (sub), when the token was issued (iat) and when it expires (exp).
- The signature proves the token hasn't been changed.
The header and payload are only Base64url-encoded, not encrypted. Anyone with the token can read them, so never put passwords or secrets in a JWT payload.
Times in exp, iat and nbf are Unix timestamps: seconds since 1 January 1970 UTC. The decoder shows them in your local time and in UTC.
Verifying: for HS256, HS384 and HS512, the signature is an HMAC of "header.payload" made with a shared secret. The tool recalculates it with your secret using the browser's built-in crypto and compares the result. Tokens signed with RS256 or ES256 need a public key and can't be checked here.
To convert timestamps on their own, use the Unix timestamp converter.
Example
The sample token decodes to this payload:
| Claim | Value |
|---|---|
| sub | 1234567890 |
| name | Asha Verma |
| role | editor |
| iat | 1767225600 = 1 January 2026, 00:00 UTC |
| exp | 1798761600 = 1 January 2027, 00:00 UTC |
With the secret webcanary-secret, the signature is verified.
Frequently asked questions
Is it safe to paste my JWT here?
The token is decoded in your browser and never sent anywhere. Even so, treat live tokens like passwords: anyone who has one can use it until it expires.
Can a JWT be decoded without the secret?
Yes. The header and payload are just Base64url-encoded, so anyone can read them. The secret is only needed to create or verify the signature.
What does exp mean in a JWT?
exp is the expiry time as a Unix timestamp in seconds. After that moment, servers should reject the token. The decoder shows it as a normal date and tells you if it has passed.
Can I verify RS256 tokens?
Not in this tool. RS256 and ES256 tokens are signed with a private key and checked with the matching public key. HS256, HS384 and HS512 tokens can be checked with their shared secret.
Last updated: 29 October 2026