Paste a JWT token to decode
Paste a JWT token to decode
Paste a JSON Web Token and this decoder splits it on the dots, base64url-decodes the first two parts, and shows the header and payload as formatted JSON. The third part, the signature, is shown as-is. It does not check the signature, so anyone can decode a JWT; decoding proves nothing about who issued it. Everything runs locally in your browser.
By Ankit Aglawe · Updated · Runs entirely in your browser
A demo token signed with the throwaway secret demo-secret-not-real. iat, nbf and exp are Unix timestamps in seconds: 1767225600 is 2026-01-01 00:00:00 UTC and exp is one hour later. The decoder shows them as raw numbers; in JavaScript, new Date(exp * 1000) turns one into a date.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyX2RlbW9fNDIiLCJuYW1lIjoiRGVtbyBVc2VyIiwicm9sZSI6InZpZXdlciIsImlzcyI6Imh0dHBzOi8vYXV0aC5leGFtcGxlLnRlc3QiLCJhdWQiOlsiYXBpLmV4YW1wbGUudGVzdCIsImFkbWluLmV4YW1wbGUudGVzdCJdLCJpYXQiOjE3NjcyMjU2MDAsIm5iZiI6MTc2NzIyNTYwMCwiZXhwIjoxNzY3MjI5MjAwfQ.mQg9UEDaeXZQu1TYzVTziGR2putDUat7zynet3-F-C4HEADER
{
"alg": "HS256",
"typ": "JWT"
}
PAYLOAD
{
"sub": "user_demo_42",
"name": "Demo User",
"role": "viewer",
"iss": "https://auth.example.test",
"aud": [
"api.example.test",
"admin.example.test"
],
"iat": 1767225600,
"nbf": 1767225600,
"exp": 1767229200
}
SIGNATURE
mQg9UEDaeXZQu1TYzVTziGR2putDUat7zynet3-F-C4The token ends with a dot and an empty signature. It decodes fine, which is the point: a payload claiming "admin": true costs nothing to forge. Your server must reject alg: none unless you explicitly allow it. Non-ASCII text in claims decodes correctly as UTF-8.
eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzdWIiOiJkZW1vIiwiYWRtaW4iOnRydWUsIm5hbWUiOiJab8OrIOa4rOippiJ9.HEADER
{
"alg": "none",
"typ": "JWT"
}
PAYLOAD
{
"sub": "demo",
"admin": true,
"name": "Zoë 測試"
}
SIGNATURE
(empty)The payload of a signed JWT is only base64url-encoded, not encrypted. This tool reads it without the key and makes no claim about whether the signature is valid. The Valid JWT label in the status bar means "decodes to JSON", nothing more.
Tokens with "alg": "none" and an empty third part decode like any other. Libraries such as jsonwebtoken and jose reject them unless configured otherwise; make sure yours does, and pin the expected algorithm when verifying.
exp and nbf are seconds since 1970 in UTC. A token is expired once the current time reaches exp. Servers usually allow 30 to 60 seconds of leeway for clock drift, so a token can be rejected a little early or accepted a little late. A value in milliseconds (13 digits) is a common bug and reads as a date tens of thousands of years away.
Paste only the token. A leading Bearer from an Authorization header, or quotes copied from JSON, make the first segment invalid base64url and decoding fails.
A JWE has five dot-separated parts and an encrypted payload. The decoder expects exactly three parts and reports "Invalid JWT: expected 3 parts separated by dots".
aud may be a single string or an array of strings; both are legal. The payload is shown exactly as encoded, so check which form your verifier expects.
| Claim | Meaning | Type |
|---|---|---|
iss | Issuer: who created the token | string (often a URL) |
sub | Subject: the user or client it is about | string |
aud | Audience: who should accept it | string or string[] |
exp | Expiration time | seconds since epoch |
nbf | Not valid before | seconds since epoch |
iat | Issued at | seconds since epoch |
jti | Unique token id, for revocation or replay checks | string |
Enter a complete JWT (three Base64-encoded segments separated by dots) in the input field. The decoder accepts tokens from any OAuth2, OpenID Connect, or custom JWT implementation.
The tool displays the JWT header (algorithm, type, key ID), the payload, and a claims list with iat, exp and nbf shown as readable dates.
Check the expiry status (valid, expired or not yet valid, judged by your computer clock), issuer, audience and custom claims.
Paste the token (the eyJ... string, without Bearer ) into the left pane. The header, payload and signature appear on the right.
Yes. The header and payload are base64url-encoded JSON, readable by anyone. The secret or public key is only needed to verify the signature, which this tool does not do.
No. Verify on your server with a library like jose or jsonwebtoken, passing the key and the expected algorithm.
The token is decoded in your browser and not sent to any server. Still, a live token is a credential: anyone who sees it can use it until it expires, so prefer expired or test tokens.
It is a Unix timestamp in seconds. Multiply by 1000 and pass it to new Date() in JavaScript, or run date -d @1767229200 on Linux.
Usually a Bearer prefix, surrounding quotes, a line break inside the token, or a JWE with five parts instead of three.
Need several formats at once? Convert All shows every output from one paste. Or browse all JSON converters.