Generate JWT Token builds a real, verifiable HS256-signed JSON Web Token from any JSON payload and secret key you provide, computing the signature with the browser's native Web Crypto API rather than a hand-rolled or simulated HMAC implementation.
A JWT is three Base64URL-encoded segments joined by dots: a header naming the algorithm and token type, a payload carrying arbitrary claims about the subject, and a signature that proves the first two segments have not been tampered with since they were signed. This structure is what makes JWTs so common for stateless authentication — a server can verify a token's signature using only the shared secret (or a public key, for asymmetric algorithms) without needing to look anything up in a session store, which is exactly why they are the default choice for API auth, single sign-on, and microservice-to-microservice trust.
HS256, which this tool implements, is a symmetric algorithm: the same secret key both signs and verifies the token, meaning every party that needs to check a token's validity must hold that same secret. That is fine inside a single backend or a small trusted cluster, but it means anyone with the secret can also mint new, valid tokens — so HS256 is the wrong choice whenever a third party needs to verify tokens without being trusted to issue them. That is exactly the scenario asymmetric algorithms like RS256 or ES256 solve: a private key signs, and a widely distributed public key verifies, so a token issuer never has to hand out signing power to every consumer. This tool intentionally covers HS256 only, since it is by far the most common case for internal APIs, local development, and testing, and it needs nothing more than a single shared string to work end to end in a browser.
Because the entire signing operation runs through SubtleCrypto locally, the secret key you type never leaves your machine — useful for generating throwaway test tokens without ever putting a real production signing key into a form on the internet. That said, a token generated here is a genuine, fully valid JWT: any API expecting HS256 tokens signed with the secret you provide will accept it exactly as it would one minted by your real backend.
Once you have a token, Verify & Decode JWT confirms its signature and inspects the claims inside it.