JWT Signer
Build a signed JSON Web Token (JWS) from a JSON payload and a secret, or paste a token to recompute its HMAC signature and confirm it is authentic and unexpired. All signing runs with the Web Crypto API inside your browser.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
The HMAC key the token is signed with. It is used, never stored, and never leaves this tab.
0 adds no exp claim. Otherwise an exp claim is added based on iat (or now).
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Signing and verifying in one place
In sign mode you paste a JSON object of claims and get a compact JWS: a base64url header, a base64url payload and an HMAC signature joined by dots, plus the algorithm, byte sizes and token length. In verify mode you paste a finished token, the tool recomputes the signature and answers Signature VALID or INVALID, reporting the exp and nbf timeline.
A realistic test loop
It fits local API work: mint a short-lived HS256 token to exercise a bearer-token endpoint you are building, then paste a token your issuer produced to confirm it verifies with the shared secret you hold.
What each option alters
Mode switches between signing and checking. Signing algorithm chooses HS256, HS384 or HS512. The secret is the HMAC key and is never stored. The typ toggle adds "typ":"JWT" to the header, add-issued-at stamps iat with the current time, and Expires in adds an exp claim a set number of minutes after iat (or now); 0 adds none.
Where it stops
Only the HMAC family is supported: RS, ES and PS tokens, which need a private key, cannot be signed here and cannot be verified either. Verification proves the signature matches the secret you supplied and checks exp and nbf, but it cannot prove that secret is genuinely the issuer’s. A header using a crit extension is flagged.
The secret stays in the tab
Signing runs through the Web Crypto API inside this page, so the secret and the claims are used locally, never uploaded and never logged. You can confirm it in DevTools → Network, and the page works with no connection.
Questions
Does my secret leave my browser?
No. The secret is used as the HMAC key by the Web Crypto API inside this tab. Nothing is uploaded and no request is made — you can confirm in DevTools → Network.
Which algorithms are supported?
HMAC algorithms HS256, HS384 and HS512, which share a symmetric secret and are by far the most common for self-issued tokens. RS/ES/PS tokens need a private key and are not signed here; tokens signed with them cannot be verified either.
Does verifying prove the token is trustworthy?
It proves the signature matches for the secret you supply and reports whether the exp/nbf claims are in range. It cannot prove the secret itself is the issuer’s — make sure you paste the real secret.
Related tools
See categoryJWT Decoder
Decode a JSON Web Token and pretty-print its header and payload. Does not verify the signature.
HMAC Generator
Compute an HMAC of text with a secret key using SHA-1, SHA-256, SHA-384 or SHA-512.
Base64 Encode / Decode
Convert text or a file to and from Base64, with URL-safe and MIME line-wrap options.
Text Hash Generator
Hash text with MD5, SHA-1, SHA-256, SHA-384 or SHA-512 and output hex, Base64 or base64url.