How to use HMAC Generator

  1. On the first line, enter the hash algorithm (sha-1, sha-256, sha-384, or sha-512).
  2. On the second line, enter your secret key.
  3. On the remaining lines, enter the message you want to sign, then click Generate to get the HMAC hex digest.

Example

Input

sha-256
my-secret-key
message to sign

Output

e3b0c44298fc1c149afbf4c8996fb92427ae41e4...

Frequently asked questions

What is HMAC?
HMAC (Hash-based Message Authentication Code) is a way to sign messages using a secret key and a hash function such as SHA-256.
Which algorithms are supported?
You can use sha-1, sha-256, sha-384, or sha-512, matching many API and webhook signing schemes.
Is this safe for real secrets?
The tool runs in your browser using the Web Crypto API, but you should still avoid pasting production secrets into untrusted sites.