Decode JWT header, payload and expiry
- Free
- No sign-up
- No upload
- Works offline
Tool facts
- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Offline use
- Works without a connection once this page has loaded
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About JWT Decoder
This JWT decoder splits a JSON Web Token into its header, payload and signature and shows the decoded JSON as you paste it. Registered claims are explained, and the timestamps exp (expiration), iat (issued at), nbf (not before) and auth_time are converted from Unix seconds into readable dates with a relative time, so you can see at a glance whether a token is expired or not valid yet.
A JWT (RFC 7519) is three Base64URL-encoded parts joined by dots: a JSON header naming the signing algorithm, such as HS256 or RS256, a JSON payload of claims, and a signature. The decoder accepts tokens with a "Bearer " prefix, line breaks or missing padding, and for encrypted JWE tokens with five parts it shows the readable header. It decodes only and does not verify the signature, which needs the secret or public key. Because tokens often grant access to accounts, decoding happens entirely in your browser and nothing is sent anywhere.
JWT Decoder runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use JWT Decoder
- Paste a token into the Token box, or click Paste. A leading "Bearer " is ignored.
- Read the colour-coded parts: header, payload and signature.
- Check the Header and Payload panels for the decoded JSON, and the Claims table for exp, iat and nbf as dates.
- Look at the status message to see whether the token is still valid, expired or not valid yet, and click Copy to take the JSON.
Frequently asked questions
Does this tool verify the JWT signature?
No. It only decodes the header and payload, which are Base64URL-encoded and not encrypted. Verifying an HS256 signature needs the shared secret, and RS256 or ES256 need the issuer's public key; do that on your server with a maintained JWT library. Never trust the claims of a token whose signature you have not verified.
Is it safe to paste a production token here?
The token is decoded with JavaScript in your browser and is not uploaded, logged or stored. Still treat live tokens like passwords: anyone who has an unexpired bearer token can use it, so avoid sharing it in chats or screenshots.
How do I know if a JWT is expired?
The exp claim is the expiry time in seconds since 1 January 1970 UTC. The decoder compares it with your device's clock, shows the date and a relative time such as "in 3 hours" or "2 days ago", and reports expired tokens in the status bar. If the token has no exp claim, it does not expire by itself.
Why does it say the token is invalid?
A signed JWT must have exactly three dot-separated parts, and the first two must be Base64URL-encoded JSON. Common causes are a truncated copy, extra quotes around the token, or pasting an opaque access token that is not a JWT at all.
Can it decode encrypted tokens (JWE)?
A JWE has five parts. The protected header is readable and is shown, but the payload is encrypted and cannot be decoded without the recipient's private key.