JWT Decoder
Paste a JSON Web Token to see its header, payload claims and expiry. For HS256, HS384 and HS512 tokens you can also verify the signature with the secret — all in your browser.
JWT Structure: Three Parts
A JSON Web Token (JWT) is composed of three Base64URL-encoded sections separated by dots (.):
- Header — algorithm (
alg) and token type (typ). - Payload — claims: statements about the user and any extra data.
- Signature — HMAC or RSA signature over header + payload. Verifies integrity.
Standard (Registered) Claims
| Claim | Full name | Meaning |
|---|---|---|
| iss | Issuer | Who issued this token |
| sub | Subject | Who this token represents (user ID) |
| aud | Audience | Who should accept this token |
| exp | Expiration time | Unix timestamp after which the token is invalid |
| nbf | Not before | Token not valid before this Unix timestamp |
| iat | Issued at | Unix timestamp when the token was created |
| jti | JWT ID | Unique identifier for this token (prevents replay) |
JWT Security Best Practices
- Always verify the signature server-side before trusting any claim. Decoding without verification is safe only for inspection.
- Reject
alg: none— some older libraries accept unsigned tokens if the algorithm is set tonone. - Keep JWTs short-lived — set
expto 15–60 minutes for access tokens. Use refresh tokens for longer sessions. - Do not store sensitive data in the payload — the payload is only Base64-encoded, not encrypted. Anyone who has the token can read it.
- Use HTTPS only — transmit JWTs exclusively over TLS to prevent interception.
Frequently Asked Questions
Does this tool verify the JWT signature?
No. This tool only decodes the Base64-encoded header and payload. Signature verification requires the secret key and should be done server-side.
What is a JWT token?
A JSON Web Token (JWT) is a compact, URL-safe means of representing claims between two parties. It consists of three Base64url-encoded parts: header (algorithm), payload (claims), and signature.
Is my JWT token sent to a server?
No. All decoding happens in your browser using JavaScript. Your token never leaves your device. Never share JWTs containing sensitive data.
Related tools
- Base64 Encoder/DecoderEncode and decode Base64 strings online
- URL Encoder / DecoderEncode or decode URLs and query string parameters using percent-encoding (RFC 3986).
- Image to Base64Convert images to Base64 encoded strings
- Base64 to Image DecoderDecode Base64 strings back to images. Preview the image live and download it as PNG, JPEG, or WebP.
- HTML Entities EncoderEncode and decode HTML entities
- Base32 Encoder/DecoderEncode and decode Base32 strings online
Found a bug or a wrong result? Report it.