Payload claims
JWT Generator
Features
- Create JWT Tokens: Generate JSON Web Tokens (JWT) with custom headers and payloads.
- Customizable Claims: Add standard claims like
iss,sub,exp, and custom claims. - Secret Signing: Sign tokens using a secret key with algorithms like HS256, HS384, and HS512.
- Expiration Settings: Set token expiration times.
How to Use
-
Input Payload:
- Enter the payload data in JSON format.
-
Set Header:
- Customize the token header if needed (e.g., algorithm, type).
-
Sign Token:
- Provide a secret key and select the signing algorithm.
-
Generate:
- Click the "Generate" button to create the JWT.
What is a JWT?
A JSON Web Token (JWT) is a compact, URL-safe token used for securely transmitting information between parties. It consists of three parts: a header, a payload, and a signature.
Example
JWT Generation Example
Input Payload:
{
"sub": "1234567890",
"name": "John Doe",
"iat": 1516239022
}
Generated JWT:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c