Examples
-
Payload
{"sub":"user-1","iat":1516239022} -
Secret
demo-secret
About JWT Generator
Testing an API that expects a JWT often means you need to mint one yourself first, without setting up a full auth server just to get a token to test against.
Paste a payload and a secret to sign an HS256 JWT locally - useful for local development, integration tests, and debugging auth middleware. This tool only supports HMAC (HS256); for RS256 or other asymmetric signing, use your backend framework's own signing flow. Never reuse these secrets for anything real.
FAQ
- RS256?
- This tool supports HS256; use your framework for asymmetric signing.