Skip to content
Toolbento

JWT generator

Sign a JSON payload as a JWT with a secret (HS256) or a private key (RS256, ES256, EdDSA and more).

Everything stays on this device

JWT generator runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Enter a secret to sign the payload.

Missing a feature or found a bug in JWT generator? Tell me on X (@_andrewtran) or by email.

How to use JWT generator

  1. Write the payload as JSON.
  2. Choose the algorithm, then enter the secret or paste the private key.
  3. Copy the signed token from the output pane.

Questions and answers

Is my secret or key sent anywhere?

No. The token is signed by your browser on this device. Even so, use a test secret or key here and keep production ones in your own systems.

Which algorithms are supported?

HS256, HS384 and HS512 with a shared secret. RS256 to RS512, PS256 to PS512, ES256, ES384 and EdDSA with a private key in PKCS#8 PEM form.

How do I set an expiry?

Add an exp claim to the payload, as a Unix time in seconds. The timestamp converter can give you one.

Esc

Loading tools