Free · runs in your browser · no upload · no quota
JWT Decoder
Paste a JSON Web Token to read its header and payload as formatted JSON. The issued, not-before and expiry times are shown as dates, and you see at once whether the token has expired. The token is decoded in your browser, so it is never sent to anyone.
Good to know
Anyone can read a JWT.
The payload is only encoded, so never put passwords or other secrets in it: whoever holds the token can decode it exactly as this page does.
Times are checked against your computer's clock.
"Expired" and "expires in" compare exp with the time on your device; a clock that is off shifts them by the same amount.
alg "none" means unsigned.
A token with "alg": "none" carries no signature at all. Servers should reject it; if yours accepts it, that is a security hole.
How to Decode a JWT
- Paste the token
Paste the JWT into the left box. A leading Bearer from an Authorization header is removed for you. - Read the claims
The header and payload appear on the right as JSON, followed by the dates ofiat,nbfandexpin UTC. - Check the status
The line under the boxes shows the algorithm and whether the token has expired or when it will.
Example
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
{
"header": { "alg": "HS256", "typ": "JWT" },
"payload": {
"sub": "1234567890",
"name": "John Doe",
"iat": 1516239022
},
"dates": { "iat": "2018-01-18 01:30:22 UTC" }
}Frequently Asked Questions
-
Is it safe to paste a token here?The token is decoded by JavaScript in this page and is not sent to our server or anyone else. Still, a valid token is a password for as long as it lasts: do not paste live production tokens into tools you do not trust, and prefer expired or test tokens when sharing screenshots.
-
Does this verify the signature?No. Decoding only reads the header and payload, which are Base64URL-encoded, not encrypted. Checking the signature needs the secret or public key, and must be done by the server that accepts the token. Never trust the claims of a token whose signature you have not checked.
-
What do iat, nbf and exp mean?
iat(issued at) is when the token was made,nbf(not before) is when it starts being valid, andexp(expiration) is when it stops. All three are Unix timestamps in seconds; the decoder shows them as UTC dates. -
Why does my token have five parts?That is an encrypted token (JWE). Its payload can only be read with the key it was encrypted for, so no decoder can show it without that key.
-
What are sub, iss and aud?
sub(subject) is who the token is about, usually a user ID;iss(issuer) is who made it;aud(audience) is who it is meant for. Other claims are defined by the application that issued it.