HMAC Generator
Compute an HMAC signature from a secret key and message using the Web Crypto API. Hex and Base64 output, entirely in your browser.
How it works
- Enter your secret key and the message to sign.
- Choose the hash algorithm, and the encoding your key is in.
- The signature is computed by your browser’s Web Crypto API and shown in hex and Base64.
Frequently Asked Questions
Is my secret key safe?
The key never leaves your browser. It is imported into the Web Crypto API as a non-extractable key, so not even the page can read it back, and it is never logged, stored, or included in any analytics event.
Which algorithms are supported?
HMAC with SHA-256, SHA-384 and SHA-512, computed by your browser’s own Web Crypto implementation rather than a bundled JavaScript library. HMAC-SHA-1 is deliberately not offered.
How should the key be encoded?
Choose UTF-8 text, hexadecimal or Base64. This matters: the same key expressed as hex bytes and as text produces different signatures, and picking the wrong one is the usual cause of a mismatch against a server.
What is HMAC used for?
Verifying that a message came from someone holding the shared secret and was not altered — webhook signatures, API request signing and token integrity. It is not encryption: the message is not hidden.