Krishna Tools Krishna Tools

JWT Generator

JWT GeneratorCreate an HS256 JWT from a payload and secret. Fast, free and secure — works in your browser. By AK Computer, Dwarka.

Processing...

How to use

  1. 1 Enter your payload claims such as sub, name and exp as JSON.
  2. 2 Adjust the header if needed; HS256 is the default signing algorithm.
  3. 3 Type the shared secret that will be used to sign the token.
  4. 4 Copy the generated JWT and use it in your Authorization header or tests.

Frequently Asked Questions

Which signing algorithm does the generator use?

It creates tokens signed with HS256, a symmetric HMAC algorithm using your shared secret.

Is my secret sent anywhere?

No, the token is signed locally in your browser so your secret never leaves your device.

How do I set an expiry on the token?

Add an exp claim to the payload with a Unix timestamp for when the token should stop being valid.