JWT Signer Demo

Create signed test JWTs with HS256, HS384 or HS512, custom claims and an expiry time.

Create a signed JSON Web Token for testing. Write the payload as JSON, choose HS256, HS384 or HS512, enter a secret, optionally add an expiry in minutes and an iat (issued at) claim, and copy the signed token. Use it to test an API, a middleware or a login flow during development. Signing uses your browser's Web Crypto API and nothing is sent anywhere. Never use a production secret on a website, including this one.

Blank or 0 for no exp claim

For HS256, use a random secret of at least 32 bytes.

For testing and learning. Real services should sign tokens on the server and keep the secret out of the browser.

Common use cases

  • Make tokens with specific claims to test authorisation rules
  • Create an expired token to test error handling
  • Learn how JWT signing works

How to use

  1. Edit the payload JSON.
  2. Choose the algorithm and enter a test secret.
  3. Set the expiry and iat options.
  4. Copy the signed token.

FAQ

Can I sign with RS256?

Not here. This demo signs HMAC tokens with a shared secret. RS256 needs a private key, which should stay on your server.

How do I check the token?

Paste it into the JWT decoder and enter the same secret to verify the signature.