JWT Generator and Signer

Write a header and payload, pick an algorithm and sign a JSON Web Token in seconds. Use a shared secret for HS256, HS384 or HS512, or paste a PKCS#8 private key (or generate a fresh pair) for RS, PS, ES and EdDSA. Every token is checked against its secret or public key before you copy it. Signing uses your browser's Web Crypto: no key or token is sent to us or stored.

Secret is

Signing runs in your browser. What you type never leaves this device.

Features

  • 13 algorithms: HS256/384/512, RS256/384/512, PS256/384/512, ES256/384/512 and EdDSA (Ed25519)

  • One-click iat, nbf, jti and exp claims, with expiry from 15 minutes to 30 days

  • Generate an RSA, EC or Ed25519 key pair and get both halves as PEM

  • Shows the public key that verifies your token, ready to share with the API that checks it

  • Secret as plain text, Base64 or hex, or a random secret of the right length

  • Runs on Web Crypto in your browser; nothing is uploaded, logged or saved

When developers make test tokens

Testing a protected API

Sign a token with the same secret or key as your staging server and call the endpoint from Postman or cURL without going through the login flow.

Checking role and expiry handling

Change a role claim or set a short expiry to see whether your middleware rejects expired, not-yet-valid or under-privileged tokens.

Setting up RS256 or ES256

Generate a key pair, keep the private key on the issuer and give the public key to the services that verify, then sign a sample token to test the wiring.

Writing docs and fixtures

Make realistic sample tokens for README files, unit tests and API documentation with clearly fake claims.

How JWT signing works

Three parts, two dots

A JWT is the Base64URL-encoded header, a dot, the Base64URL-encoded payload, a dot, and a signature over the first two parts. Anyone can read the header and payload; the signature only proves they have not been changed since signing. Do not put passwords or personal data you would not show the user in a JWT.

Choosing an algorithm

  • HS256 and friends use one shared secret: the issuer and every verifier hold the same key. Simple, but any verifier could also create tokens.
  • RS256 and PS256 use an RSA key pair: sign with the private key, verify with the public one. PS256 uses the newer RSA-PSS padding.
  • ES256 uses an elliptic-curve key (P-256) and makes much shorter signatures than RSA.
  • EdDSA with Ed25519 is fast and compact; check that your JWT library supports it before you choose it.

Standard time claims

  • iat (issued at), nbf (not before) and exp (expires) are Unix timestamps in seconds, not milliseconds.
  • Keep access tokens short-lived (15 minutes to an hour) and use refresh tokens for longer sessions.
  • jti is a unique token ID; servers can store it to block a token being used twice.

JWT Generator and Signer - FAQ