JWT generator and signer
Build test tokens for an API without writing code. Edit the JSON header and payload, add issued-at, expiry and not-before claims with one click, and sign with HS256, HS384 or HS512 using a shared secret, or with RS, PS and ES algorithms using a PKCS #8 private key. Need a key? Generate an RSA or ECDSA key pair and copy the public key for your server. The signed token updates as you type, colour-coded by part, and opens in the JWT Decoder for checking. Signing uses the Web Crypto API, so secrets and keys never leave your browser.
Signed in your browser. Secrets and keys are never sent or stored.
How to use the JWT Generator & Signer
- 1
Choose an algorithm
HS for a shared secret, RS, PS or ES for a private key.
- 2
Edit the claims
Change the payload and add exp or iat.
- 3
Copy the token
It’s signed as you type.
When to use it
- Make test tokens for API development and Postman.
- Reproduce an authentication bug with specific claims.
- Learn how JWT signing works.
Limits
- Use test keys and secrets here; production signing keys belong in a secret manager.
- Encrypted tokens (JWE) and the none algorithm aren’t supported.
Privacy
Signing runs in your browser with Web Crypto. Secrets, keys and tokens are never sent or stored.
Frequently asked questions
Which algorithm should I use?
HS256 when the same service signs and checks tokens. RS256 or ES256 when other services verify them with a public key.
How long should an HS256 secret be?
At least 32 random bytes for HS256 (48 for HS384, 64 for HS512), as RFC 7518 requires. Short secrets can be guessed offline.
What key format is needed for RS256 or ES256?
A PKCS #8 PEM private key (BEGIN PRIVATE KEY). Convert an older RSA key with: openssl pkcs8 -topk8 -nocrypt -in key.pem
What do exp, iat and nbf mean?
Expiry time, issued-at time and not-before time, in seconds since 1 January 1970 (UTC).
Is my secret sent anywhere?
No. The token is signed in your browser with the Web Crypto API.
Can I decode the token?
Yes. Open it in the JWT Decoder to see the claims and check an HMAC signature.
Related tools
People also use
Last updated November 23, 2026 · How we build and test our tools