HMAC Generator

Your workspaceProcessed on your device

Enter a full tag in the chosen result encoding to check for a match. For exact bytes such as CRLF, enter an encoded message.

A few things to know.

Runs on this device with Web Crypto on HTTPS or localhost. The key must contain 1 to 4,096 bytes. The message can be empty or up to 1 MiB. The verifier expects the full tag for the selected algorithm. Use encoded input bytes for exact CRLF line endings.

  1. Choose an algorithm and the formats of the secret key and message. Paste the inputs or choose Load RFC 4231 example to try a published test vector.
  2. Choose Hex, Base64 or Base64URL for the result. Optionally enter a complete tag in the same format to verify it.
  3. Choose Calculate HMAC. Review the byte counts and any match result. Copy or download the generated tag.