🛠️DevTools

Firebase JWT Token Example

Try:
335 characters
characters
⚠️ Token Expired
Header
{
  "alg": "RS256",
  "typ": "JWT"
}
Payload
issIssuer - Who created the tokenhttps://securetoken.google.com/my-project
audAudience - Who the token is formy-project
auth_time1616239022 (3/20/2021, 11:17:02 AM (EXPIRED))
user_iduid123456
subSubject - Who the token is aboutuid123456
iatIssued At - When the token was created1616239022 (3/20/2021, 11:17:02 AM (EXPIRED))
expExpiration - When the token expires (Unix timestamp)1616242622 (3/20/2021, 12:17:02 PM (EXPIRED))
emailUser's email addressuser@example.com
email_verifiedtrue
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 = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJod...";
3const [header, payload, signature] = token.split('.');
4const decoded = {
5 header: JSON.parse(atob(header)),
6 payload: JSON.parse(atob(payload)),
7 signature
8};
9console.log(decoded);
10
11// Using jwt-decode library
12import jwt_decode from 'jwt-decode';
13const decoded = jwt_decode(token);

More JWT Examples

Related JWT Tools

📚 Learn More