Skip to content
Zesona
JWT HS256 Signer with User KeyLocal

JWT HS256 Signer with User Key

Sign a JWT with HS256 using your own secret, in your browser, for testing against an API you control.

  • Free
  • No sign-up
  • Runs in your browser

Input

Runs in your browser

0 characters

Processed entirely in your browser. Nothing is uploaded.

At least 32 bytes for HS256. Never transmitted.

0 omits the exp claim, so the token never expires.

Fill in Payload (JSON) and Signing secret to continue.

Enter your input to see the result

Everything happens on this device. No upload, no account, no network request.

How to use this tool

  1. 1

    Enter the payload as a JSON object and your signing secret.

  2. 2

    The token is signed in your browser with HMAC-SHA-256. Neither the secret nor the token is transmitted.

  3. 3

    Use it to test an endpoint whose secret you already hold.

Questions about JWT HS256 Signer with User Key

Why only HS256?

Because HS256 needs one shared secret you already have, which fits the purpose: generating a test token against your own API. RS256 and ES256 need a private key, and this is not a place to paste one or to manage key material.

How long should the secret be?

At least 32 bytes - the HS256 block size. A shorter secret, and especially a dictionary word, can be brute-forced offline from a single captured token, which then lets an attacker mint any token they like. The tool warns when yours is short.

Should I use HS256 in production?

For a single service verifying its own tokens, it is fine. For anything where several parties verify, prefer an asymmetric algorithm: with HS256, every verifier needs the signing secret, so every verifier can also forge tokens.

Is it safe to paste a real secret here?

The computation happens in your browser and nothing is transmitted, so the secret does not leave your device. Two caveats worth knowing anyway: anything you paste may be captured by a browser extension with page access, and it may linger in your clipboard. For a production credential, a local command-line tool is still the better habit.

Does the JWT HS256 Signer with User Key work offline?

Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the JWT HS256 Signer with User Key keeps working with the network switched off and nothing is ever sent to a server.

Other tools you might reach for next.