JWT Generator

Build a JWT, fill in the header and payload, paste the secret or PEM key, and get a signed token. Useful for testing your own verifier, simulating user tokens, or producing a token with a specific exp time without writing code. Uses the same WebCrypto-backed signer as the JWT Decoder's generate mode.

How to use the JWT Generator

Pick an algorithm, edit the payload JSON, paste the secret (HMAC) or private key (RSA/EC). The "Set iat/exp" button fills in current-time claims so the generated token verifies as fresh. Output is a fully signed JWT ready to paste into Authorization headers or test inputs.