Skip to content
Engyna

JWT Generator

Build and sign JSON Web Tokens with HS, RS, PS, ES or EdDSA keys, and verify them, all in your browser.

How to use the JWT Generator

  1. 1Pick the algorithm. HS256 signs with a shared secret; RS, PS, ES and EdDSA sign with a private key, and a fresh test key pair is created for you.
  2. 2Add claims in the table and set issued-at, not-before and expiry with the date pickers or the quick buttons.
  3. 3Copy the colour-coded token, export the public key as PEM or JWK, or paste any token under Verify to check its signature.

About JWT Generator

The JWT Generator creates and signs JSON Web Tokens with 13 algorithms: HS256, HS384 and HS512 with a shared secret, RS256 to RS512 and PS256 to PS512 with RSA keys, ES256, ES384 and ES512 with elliptic-curve keys, and EdDSA with Ed25519. For asymmetric algorithms a fresh test key pair is created, or you paste your own private key as PEM or JWK.

Claims are edited in a table with hints for registered claims like iss, sub, aud and exp, and issued-at, not-before and expiry times are set with date pickers or quick buttons. The token is shown color-coded by header, payload and signature. The public key can be exported as PEM or JWK, and a verify section checks the signature of any pasted token against a key or secret. The tool warns when an HMAC secret is shorter than the algorithm needs.

Backend and API developers use the JWT builder to create test tokens for local development, reproduce authentication bugs, try out claims for a new service or check that a token from another system was signed with the expected key. Because signing uses the browser's Web Crypto API, it is a quick way to experiment with JSON Web Token signing without writing code.

Frequently asked questions

Are my keys or tokens sent to a server?

No. Keys are generated and tokens are signed with the Web Crypto API in your browser; nothing leaves the page. Even so, use test keys here and keep production private keys in your key store.

Which algorithm should I choose?

HS256 is simplest when the same service creates and checks tokens. When other services only need to verify them, use an asymmetric algorithm: ES256 gives small keys and signatures, RS256 is the most widely supported, and PS256 is the modern RSA variant.

How long should an HS256 secret be?

At least 32 random bytes (256 bits); 48 for HS384 and 64 for HS512. Short or guessable secrets can be brute-forced offline from a single token. The Generate button creates a secret of the right length.

Can I use my own key?

Yes. Paste a private key as PEM (PKCS#8 "BEGIN PRIVATE KEY", PKCS#1 "BEGIN RSA PRIVATE KEY" or SEC1 "BEGIN EC PRIVATE KEY") or as a private JWK. Encrypted keys must be exported without a passphrase first.

Is the payload encrypted?

No. A signed JWT is only Base64url-encoded, so anyone can read the claims. The signature proves who issued it and that it wasn't changed. Don't put secrets in the payload.