JWT Generator
Create signed JWTs for testing: write the payload, add iat, exp and jti in one click, and sign with an HMAC secret or an RSA/ECDSA key (you can generate one here). Everything stays in your browser.
Free, no sign-up
Your data stays on your device
Works offline after first open
The tool
Loading the tool…
How to use
- Pick the algorithm (HS256 is the most common).
- Edit the payload (JSON) and use the buttons to add issue and expiry times.
- Enter the secret or private key (or generate one), press Sign and copy the token.
Privacy & how it works
Processes your data in the browser and stores nothing.
- Engine: lightweight in-page code, no external libraries.
- Works offline after you open it once.
Frequently asked questions
Should I use it for real tokens?
It is for testing and development. The token is standard-compliant, but real secrets and keys belong on your server; do not paste them into any page.
How long should the secret be?
The standard requires a key at least as long as the hash: 32 bytes for HS256, 48 for HS384 and 64 for HS512. “Generate secret” gives you the right length.
HS vs RS vs ES?
HS uses one shared secret to sign and verify. RS, PS and ES sign with a private key and verify with a public key, so the public key can be shared safely.
Formulas & sources
Related tools
JWT Decoder & VerifierPaste a JWT to see its header and payload neatly, exp/iat/nbf as dates and whether it has expired, and verify the signature with an HMAC secret or a public key (RSA/ECDSA), entirely in your browser.SSH & RSA Key Pair GeneratorGenerate an RSA, ECDSA or Ed25519 key pair in your browser and get an SSH key ready for authorized_keys and GitHub, plus PEM and JWK formats and a SHA256 fingerprint. The private key is never stored.Random String & Secret GeneratorGenerate secure random strings from characters you choose, hex or Base64 of N bytes, ready-made secrets for JWT, API keys, Django and Laravel, or PIN codes, with honest entropy in bits.UUID & nanoid GeneratorGenerate version 4 (random), 7 (time-ordered), or name-based 5 and 3 UUIDs, or short nanoid IDs, up to 1000 at a time in any format. Inspect any UUID to see its version and timestamp.