Decode a JWT header and payload, explain every claim, and state plainly that the signature is NOT verified.
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
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
Enter the payload as a JSON object and your signing secret.
- 2
The token is signed in your browser with HMAC-SHA-256. Neither the secret nor the token is transmitted.
- 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.
Related tools
Other tools you might reach for next.
Check whether a JWT has expired or is not yet valid, with the exact exp, nbf and iat times.
Compute an HMAC with SHA-1, SHA-256, SHA-384 or SHA-512 using a text or hex key, in your browser.
Format and indent JSON, with optional alphabetical key sorting and a precise syntax error when it will not parse.
Strip every byte of insignificant whitespace from JSON and report the saving.
Check that JSON is syntactically valid, report its structure, and flag duplicate keys that JSON.parse accepts silently.
Compare two JSON documents structurally, by path, distinguishing a type change from a value change.
Evaluate a JSONPath expression against a document and see every match with the path that produced it.