HMAC Generator

Sign a message with a secret key to get its HMAC, or check an HMAC you got.

HMAC-SHA256 output

Add a message and secret key to get HMAC output here.

Everything runs in your browser, and your data never leaves your device.

How HMAC Generator works

Computes a hash-based message authentication code (HMAC) on a string or a file based on a secret key. For HMAC-SHA256, use a key of at least 32 bytes.

Input to HMAC Generator

  • Message: text or a file.
  • Secret key: text, hex or Base64. Pick the format in the menu next to the key.

Output from HMAC Generator

  • The HMAC in lowercase hex, uppercase hex or Base64.