The decoded header shows here.
The decoded payload shows here.
The signature details show here.
What is a JWT?
A JSON Web Token (JWT) is a signed token that carries data, such as a user ID and an expiry time, between a login server and an app. It has three Base64URL parts separated by dots: header, payload and signature. Decoding a JWT shows what is inside, which helps you debug login and API errors.
How to decode a JWT
- Paste the token into the Encoded Token pane.
- Read the Header for the signing algorithm (HS256, RS256) and the token type.
- Read the Payload for the claims: user data, expiry, scopes.
- Use the Decoded Claims table for a description of each standard claim. Click a row to find the key in the payload.
- Check the badge in the toolbar: valid, expired, or no expiry.
Decoding is not verifying
Anyone can decode a JWT, because the payload is only Base64URL-encoded. The signature proves that the server made the token, and only a check with the secret or public key can prove that. This tool does not verify the signature. Do that in your backend, and never put secrets in a JWT payload.
Frequently Asked Questions
Does this decoder verify the signature?
No. A signature check needs the secret key (HS256) or the public key (RS256), and those keys do not belong in a browser tool. The tool shows the header, payload and claims, and the raw signature value.
Why does my JWT show as invalid?
A JWT must have three parts separated by dots: header.payload.signature. Common causes are extra spaces from the copy, a missing third part, or a token that changed in transit. Copy the token again from the source.
Is my token sent to a server?
No. The decoder runs in your browser with atob() and JSON.parse(). To check, open the Network tab in DevTools and paste a token. No request goes out.
What is the difference between iat, nbf and exp?
iat is when the token was issued. nbf is the earliest time it is valid. exp is when it expires. All three are Unix timestamps in seconds, and the tool shows each one as a local date and time.
Why is there no green check next to the algorithm?
The tool shows the algorithm that the header declares, but it does not check the signature. A token with alg: none also decodes here. Signature checks belong in your backend.