How to Generate JWT Tokens for Testing
JWT Generation
When to Generate JWTs
Generate signed JWTs when building test fixtures, prototyping API clients, or debugging authorization flows — without setting up a token issuer.
Supported Algorithms
This tool signs tokens with HMAC algorithms (HS256, HS384, HS512). RS256 signing requires a private key and is not supported in-browser.
Security Note
Never embed signing secrets in production client-side code. Use this tool only for local development and testing.
Frequently asked questions
Does this add an iat claim automatically?
Yes. If your payload does not include iat, the tool adds the current Unix timestamp.
Can I generate RS256 tokens?
Not currently. Use HS256/384/512 for HMAC-signed test tokens, or sign RS256 tokens with your backend.