๐ JWT Generator
Algorithm: HS256 (HMAC-SHA256), fixed
Generated JWT
Enter a secret key
Enter a JSON payload and a secret key to generate an HS256 (HMAC-SHA256) signed JWT (JSON Web Token) on the spot. The signature is computed using the browser's built-in Web Crypto API.
How to use
- Edit the payload JSON (set any claims you want, like sub, name, iat).
- Enter the secret key to sign with.
- The generated JWT appears automatically โ click "Copy" to copy it to your clipboard.
FAQ
Where is the signature computed?
Entirely in your browser, using the built-in Web Crypto API (crypto.subtle) to compute the HMAC-SHA256 signature. Your secret key is never sent to a server.
Does this support algorithms other than HS256?
No, the current version only supports HS256 (HMAC-SHA256).
Can I verify the generated JWT is correct?
Yes โ paste it into this site's JWT Decoder to check its contents, or verify the signature with an external tool like jwt.io using the same secret key.