Kharabeesh
On-device ع

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

  1. Pick the algorithm (HS256 is the most common).
  2. Edit the payload (JSON) and use the buttons to add issue and expiry times.
  3. 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