Skip to content
Jellykit

JWT Encoder

Create a signed JSON Web Token from a JSON payload and secret using HS256, HS384 or HS512. Adds iat and exp claims for you. Signed locally with Web Crypto.

Runs in your browser. Nothing is uploaded.

About JWT Encoder

JWT Encoder builds a token from three parts: a header naming the algorithm, your JSON payload and an HMAC signature made with your secret. It can add the standard iat (issued at) and exp (expiry) claims, so you get a realistic token for testing an API or auth middleware.

Signing uses your browser's Web Crypto API. The secret and payload are never sent anywhere, which matters because a leaked signing secret lets anyone forge tokens.

How to use JWT Encoder

  1. Type or paste your text into the input box. Press Sample to see an example.
  2. Adjust the options. The result updates as you type.
  3. Copy the result, or press Use as input to chain another transformation.

Frequently asked questions

Can I use RS256?

Not here. RS256 needs a private key; this tool signs with shared-secret HMAC algorithms (HS256, HS384, HS512).

How long should the secret be?

For HS256, at least 32 random bytes. Use the JWT Secret Generator to make one.

Is JWT Encoder free and private?

Yes. JWT Encoder is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all developer tools →