JWT Generator
Create signed JSON Web Tokens in your browser. The secret never leaves your device.
New to JWTs? Read our guide →What is a JSON Web Token?
A JSON Web Token (JWT) is a compact, URL-safe string used to securely transmit information between parties. It consists of three Base64URL-encoded parts separated by dots: the header (algorithm and token type), the payload (claims such as user ID, roles, and expiry), and the signature.
The signature is computed by hashing the header and payload with a secret key, allowing the receiver to verify that the token was not tampered with. JWTs are stateless: all the information needed to authenticate a request is contained within the token itself.
HS256 vs HS384 vs HS512
All three are HMAC algorithms that use a shared secret key — the number is the SHA hash size in bits. HS256 is by far the most common: fast, widely supported, and secure as long as the secret is strong (at least 256 bits of entropy). For asymmetric signing, use RS256 or ES256 instead — those need a key pair and aren't covered by this tool.
Standard JWT claims
All registered claims are optional. The iat = now and + exp 1h buttons above are shortcuts for the two most commonly set ones during development and testing.
Frequently asked questions
No. Signing runs through the Web Crypto API's native HMAC implementation directly in your browser. The secret and the resulting token never leave the page.