JWT Generator
Generate JSON Web Tokens with custom headers, payloads, and HMAC signing
How to Use JWT Generator
Create JSON Web Tokens with custom claims and HMAC signing. Supports HS256, HS384, and HS512 algorithms using the browser's Web Crypto API.
- 1
Edit the header
The header is pre-filled with algorithm and type. The alg field auto-updates when you change the algorithm.
- 2
Customize the payload
Edit the payload JSON with your claims. Use the quick-add buttons for iat, exp, nbf, and jti claims.
- 3
Enter your secret
Type the secret key used for HMAC signing.
- 4
Generate the token
Click 'Generate JWT' to create the signed token. View the color-coded breakdown below.
Frequently Asked Questions
What algorithms are supported?
HS256 (HMAC-SHA256), HS384 (HMAC-SHA384), and HS512 (HMAC-SHA512). These are symmetric algorithms using a shared secret.
Is the signing secure?
Yes, signing uses the Web Crypto API built into your browser. The secret key never leaves your device.
Can I add custom claims?
Yes, edit the payload JSON freely. Use the quick-add buttons for common claims like issued-at (iat) and expiration (exp).
Can I decode JWTs too?
Yes, check out our JWT Decoder tool for decoding and inspecting existing tokens.