Auth0 JWT Token Example
Try:
255 characters
— characters
⚠️ Token Expired
Header
{
"alg": "RS256",
"typ": "JWT",
"kid": "abc123"
}Payload
| issIssuer - Who created the token | https://example.auth0.com/ |
| subSubject - Who the token is about | auth0|1234567890 |
| audAudience - Who the token is for | my-api |
| iatIssued At - When the token was created | 1616239022 (3/20/2021, 11:17:02 AM (EXPIRED)) |
| expExpiration - When the token expires (Unix timestamp) | 1616325422 (3/21/2021, 11:17:02 AM (EXPIRED)) |
| scopeAuthorized scopes/permissions | read:data write:data |
Signature
signature
⚠️ Signature verification requires the secret key. This tool only decodes the token.
💡 Tip: JWT tokens consist of three parts: Header (algorithm info), Payload (claims/data), and Signature (verification). This tool decodes the header and payload but cannot verify signatures without the secret key.
Code Examples
Here's how to achieve this in different programming languages:
1// Decode JWT (without verification)2const token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImFiYz...";3const [header, payload, signature] = token.split('.');4const decoded = {5 header: JSON.parse(atob(header)),6 payload: JSON.parse(atob(payload)),7 signature8};9console.log(decoded);1011// Using jwt-decode library12import jwt_decode from 'jwt-decode';13const decoded = jwt_decode(token);
More JWT Examples
Basic JWT Token Example
See how to decode a basic JWT token with standard claims. Learn the structure of JWT header and payload.
JWT Expiration Check Example
Learn how to check if a JWT token is expired by examining the exp claim in the payload.
Firebase JWT Token Example
Decode a Firebase Authentication JWT token and understand its claims structure.
API Key JWT Example
Decode a JWT-based API key and see how API permissions and scopes are encoded.
Refresh Token JWT Example
Understand refresh token JWT structure with longer expiration and token family claims.
RS256 Signed JWT Example
Decode a JWT signed with RS256 (RSA) algorithm. See the key ID (kid) in the header.
Create JWT Payload Example
Learn how to create a JWT token from JSON payload data for testing purposes.