JSON Web Tokens (JWT) are a compact, URL-safe means of representing claims between two parties. They're widely used for authentication and information exchange.
JWT Structure
A JWT consists of three parts separated by dots: header.payload.signature
Header
{
"alg": "HS256",
"typ": "JWT"
}
Payload
Contains the claims — statements about the user and additional metadata.Signature
Created by signing the header and payload with a secret key.Common Claims
| Claim | Description |
|---|---|
iss | Issuer |
sub | Subject |
exp | Expiration time |
iat | Issued at |
aud | Audience |
Security Best Practices
Try It Yourself
Decode and inspect any JWT token with our free JWT Decoder.