JWT decoder
Decode a JSON Web Token and see its claims and expiry. The token never leaves your browser.
Decoded in your browser. The token is never sent anywhere. The signature is not verified.
How to decode a JWT
- Paste the token. Paste a JWT. It has three parts separated by dots and usually starts with eyJ.
- Read the header. The header shows the signing algorithm, such as HS256 or RS256, and sometimes a key id.
- Read the payload. The payload holds the claims: subject, issuer, audience, roles and custom fields.
- Check the expiry. If the token has an exp claim, the decoder shows when it expires and whether it already has.
Frequently asked questions
- Is it safe to paste a token here?
- The token is decoded with JavaScript in your page and never sent to a server. Still, treat production tokens like passwords and prefer expired or test tokens when you can.
- Does this verify the signature?
- No. Decoding only reads the header and payload, which are base64url-encoded JSON. Verifying needs the signing secret or public key, and should happen on your server.
- Why is my token not valid?
- A JWT must have exactly three dot-separated parts, and the first two must be base64url-encoded JSON objects. Copying a token with extra quotes or a Bearer prefix is a common cause.