HMAC Calculator

Enter a message and secret key to instantly compute an HMAC digest using SHA-256, SHA-384, or SHA-512 — all in the browser with no data sent to any server.

HMAC Digest HMAC-SHA-256 / Hex

Enter a message and key to compute the HMAC.

Digest lengths (hex chars)

Algorithm Hex Base64 Bits
HMAC-SHA-256 64 44 256
HMAC-SHA-384 96 64 384
HMAC-SHA-512 128 88 512

Summary

Enter a message and secret key to instantly compute an HMAC digest using SHA-256, SHA-384, or SHA-512 — all in the browser with no data sent to any server.

How it works

  1. Enter the message you want to authenticate in the Message field.
  2. Type your secret key in the Key field.
  3. Select the hash algorithm: SHA-256, SHA-384, or SHA-512.
  4. Choose the output format — hexadecimal or Base64.
  5. The HMAC digest updates instantly using your browser's built-in WebCrypto API.
  6. Click Copy to copy the result to your clipboard.

Use cases

  • Verify webhook signatures from payment providers or GitHub.
  • Generate API request signatures for REST or GraphQL services.
  • Test HMAC implementations during backend development.
  • Authenticate messages between microservices during debugging.
  • Validate that a secret key produces the expected digest for a known payload.
  • Check token integrity in JWT or custom token schemes.

Frequently Asked Questions

Last updated: 2026-07-01 · Reviewed by Nham Vu