HMAC Generator (SHA-256, SHA-1, SHA-512)

Sign a message with a shared secret, for webhooks and APIs. Everything runs in your browser; nothing you enter is uploaded or stored.

  • Free, no sign-up
  • Runs in your browser
  • Verified

How to use it

  1. Choose the hash algorithm.
  2. Enter the secret key (as text or as hex bytes) and the message.
  3. Copy the hex or Base64 result.

How it works

HMAC (RFC 2104) mixes a secret key into a hash so the receiver can check both the integrity and the origin of a message. It is computed with the browser’s Web Crypto API, using the key’s bytes (UTF-8 for text keys). The page’s own tests reproduce published test vectors, for example key “key” and the quick-brown-fox message give f7bc83f4…3cd8 with SHA-256.

Examples

  • HMAC-SHA-256 with key “key” of “The quick brown fox jumps over the lazy dog” starts f7bc83f4 30538424.

Limitations

  • Do not paste real production secrets into any website you do not control. The site’s security policy blocks any network connection except back to tools.gift, and nothing is stored, but a safer habit is to test with sample keys. SHA-1 is weak for new designs.

Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.