How to Generate JWT Tokens
Create and sign JWT tokens with custom claims, algorithms, and expiration. Free online JWT generator with HS256, RS256 support and payload editor.
Open JWT Generator →Step-by-Step Guide
Choose a signing algorithm
Select your signing algorithm from the dropdown — HS256 (HMAC-SHA256) for shared-secret signing, or RS256 (RSA-SHA256) for public/private key pairs. HS256 is simpler and ideal for internal services, while RS256 is standard for OAuth 2.0 and OpenID Connect flows.
Set payload claims
Edit the JSON payload with your custom claims. Add standard claims like iss (issuer), sub (subject), aud (audience), and exp (expiration). You can also add any custom key-value pairs your application needs, such as user roles or permissions.
Configure header and expiration
Set the token expiration time — common values are 15 minutes for access tokens and 7 days for refresh tokens. The header is auto-populated with the algorithm and token type (JWT), but you can add custom header fields like kid (key ID) if needed.
Generate and copy the token
Click Generate to create your signed JWT. The tool displays the encoded token string along with a decoded view showing header, payload, and signature. Copy the token to use in Authorization headers or paste it into your application configuration.
Try It Now — Free
No signup, no download. Runs entirely in your browser.
Open JWT Generator