Skip to content
Devtoolry

JWT Generator

Create signed JSON Web Tokens with HS256, HS384 or HS512 from a custom header and payload.

About the JWT Generator

The JWT Generator creates signed tokens for testing APIs and authentication flows. Edit the header and payload as JSON, choose an HMAC algorithm and sign with your own secret.

Everything runs in your browser, so your input is never uploaded to a server.

How to use the JWT Generator

  1. Edit the payload claims (for example sub, exp, roles).
  2. Choose HS256, HS384 or HS512 and enter a secret.
  3. Copy the signed token into your request or test.

Frequently asked questions

How long should the secret be?

At least as long as the hash output: 32 random bytes for HS256, 48 for HS384 and 64 for HS512.

Can it create RS256 tokens?

No, it signs with shared-secret HMAC algorithms only.