JWT Decoder: Read the Header and Payload of a JSON Web Token
Decode a JSON Web Token, check expiry, verify the signature with your secret or public key, or create a test token. Nothing leaves your browser.
Loading tool…
How to use the JWT Decoder
- Paste the full token (three parts separated by dots).
- Read the decoded header and payload, the claims table and the expiry status.
- Optionally enter the secret (HS256) or public key (RS256, ES256) and press Verify signature.
- Use Create token to sign a test token with an HMAC secret.
About this tool
A JWT has three Base64URL parts separated by dots: a header that names the signing algorithm, a payload of claims, and a signature. The header and payload are only encoded, not encrypted, so anyone holding the token can read them. Decoding is therefore not verification: a decoded token is not proof that it is genuine. Only a successful signature check with the right key is.
Standard claims include iss (issuer), sub (subject), aud (audience), exp (expiry), nbf (not before) and iat (issued at). The time claims are Unix timestamps in seconds; the tool converts them to your local time, shows how long ago or ahead they are, and tells you whether the token is expired or not yet valid. A token with alg none or with no signature is flagged, because it can be forged by anyone, and five-part encrypted tokens (JWE) are recognised but cannot be read without the key.
The optional verification uses your browser's WebCrypto: HMAC with HS256, HS384 or HS512 and a shared secret, and RSA (RS and PS) or ECDSA (ES) with a PEM public key (BEGIN PUBLIC KEY) or a JWK. The key is used only in your browser. A valid signature proves the token was not altered, but you must still check exp, nbf, iss and aud on your server. Create token signs a test token with HMAC only; RS256 and ES256 signing is not offered because private keys should not be pasted into websites.
Frequently asked questions
Does this verify the token?
Decoding alone never verifies anything. If you enter the secret or public key and press Verify signature, the tool checks the signature with WebCrypto in your browser. Real verification must still happen on your server.
Is the token or secret sent to a server?
No. Decoding, verification and signing all happen in your browser and nothing is transmitted.
Why can anyone read my JWT payload?
The payload is Base64URL encoded, not encrypted. Do not store secrets in it.
What do exp, nbf and iat mean?
exp is when the token expires, nbf is the earliest time it is valid, and iat is when it was issued. All are Unix timestamps in seconds.
Which algorithms can be verified?
HS256, HS384, HS512, RS256, RS384, RS512, PS256, PS384, PS512, ES256, ES384 and ES512. RSA keys must be in SPKI format (BEGIN PUBLIC KEY).
Need a custom tool or website?
IDM Valley builds web apps, calculators, AI chatbots and automation for businesses. Fixed prices, code in your name.









