JWT Token Generator
Create HS256-signed JSON Web Tokens and decode any token, all in your browser. Your secret never leaves your device — signing and verification use the Web Crypto API locally.
Generate a token
Fill in the fields above and press Generate token.
Decode a token
The signature is checked against the secret key entered above, if provided.
The decoded header and payload will appear here.
How to use
- Edit the header and payload JSON, or use a preset payload.
- Type your secret key and press Generate token, then copy the result.
- To inspect any token, paste it in the decoder and press Decode token — the signature is verified against your secret.
Note
This tool signs with HMAC-SHA256 (HS256) only. Base64URL encoding follows the JWT standard, with padding removed. Web Crypto needs a secure context, so this page must be served over HTTPS or localhost. Never use tokens generated here for real production secrets — they are for testing and learning.