Generate a JWT
Build and sign a JSON Web Token for testing — right in your browser.
These are test tokens
Signing with HS256 — HMAC · shared secret.
About Generate a JWT.
Build and Sign a JSON Web Token in Your Browser
Edit the header and payload as plain JSON, pick a signing algorithm, provide a secret or key, and get a ready-to-use token. The JWT Generator supports HMAC (HS256/384/512) with a shared secret, and RSA and elliptic-curve signatures (RS, PS, and ES at 256/384/512) with a pasted PKCS#8 private key — or generate a throwaway test key pair with one click. One-tap helpers add the common registered claims (iat, exp, nbf, sub, iss, aud, jti) so you do not have to remember the epoch math.
Everything — the claims, the secret, the private key, and the signing itself — happens locally in your browser using the Web Crypto API. Nothing is uploaded, logged, or sent to a server, which is exactly what you want when a signing key is involved. Many online JWT tools sign on their backend and see whatever key you paste; this one never does.
These are test tokens. The tool is for development, debugging, and learning — not for minting production credentials. Treat any secret or key you paste here the way you would anywhere: only on a machine you trust, and never a live production signing key.
Common Use Cases
- API testing: Mint a token with a specific subject or scope claim to exercise an authenticated endpoint from Postman, curl, or your test suite.
- Debugging auth flows: Set an expiry (exp) in the past or a not-before (nbf) in the future and watch how your middleware handles an expired or premature token.
- Learning how JWTs work: Switch the algorithm or edit a claim and see the three-part token, plus its decoded header and payload, update instantly.
- Local key pairs: Generate an ES256 or RS256 key pair, sign with the private key, then verify with the printed public key in your own service.
- Test fixtures: Produce consistent tokens for integration tests without standing up a real identity provider.
Privacy: The JWT Generator runs entirely in your browser. Your header, payload, secret, and private key never leave your device — no upload, no network request, no storage.
How to use Generate a JWT.
Upload your file
Drag and drop or click to select your file.
Choose settings
Adjust quality, size, or format options.
Download result
Your processed file is ready instantly.
Related security tools.
Hash Generator
Generate SHA-1, SHA-256, SHA-384, SHA-512 hashes for text and files.
Open toolFile Checksum Verifier
Verify file integrity by comparing SHA-256 checksums.
Open toolEncrypt & Decrypt
Encrypt text with AES-256 right in your browser. Decrypt with your password.
Open toolSSL Certificate Checker
Check any website's SSL certificate and security headers.
Open toolPrivacy-first tools that work everywhere.
Need more than a tool?
One team for your website, print, automation & branding — websites from $799.
Explore all 188 tools