JWT Generator
Create JSON Web Tokens with custom headers and payloads. Edit the JSON below to generate your token. Note: This is a demo implementation and should not be used for production tokens.
Header
Payload
Secret
Generated Token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNzY1MjAxMTcwfQ.eW91ci0yNTYtYml0LXNlY3JldA
Common Claims
- iss (Issuer): Who issued the token
- sub (Subject): Who the token refers to
- aud (Audience): Who the token is intended for
- exp (Expiration Time): When the token expires
- nbf (Not Before Time): When the token becomes valid
- iat (Issued At): When the token was issued
- jti (JWT ID): Unique identifier for the token
About JWT Generation
This is a demonstration tool for learning about JWT structure and claims. For production use, consider these security best practices:
- Use a secure secret key with sufficient entropy
- Include expiration times in your tokens
- Use specific audiences and issuers
- Consider using asymmetric keys (RS256) for production
- Validate all claims on the server side