Skip to content
Smart Web Apps HMAC Generator

HMAC Generator

Compute HMAC signatures for API/webhook validation (client-side).

Enter a secret key and message, then click Generate.

Output
Hex HMAC
Base64 HMAC
Formulas

Tool description

HMAC (Hash-based Message Authentication Code) produces a signature from a secret key and message. It’s commonly used to validate webhooks and API requests.

How to use

  1. Choose HMAC algorithm (SHA-256 is common).
  2. Paste the secret key and message.
  3. Generate and copy hex/Base64 output.

Why it’s useful

  • Verify webhook signatures.
  • Test integrations and compare expected signatures.
  • Debug encoding/key-format issues.

Use cases & interpretation

  • Webhooks: validate that payloads came from the provider.
  • APIs: compare with server-side HMAC output for parity.
  • Debugging: identify incorrect hex vs UTF‑8 key handling.

FAQs

No. HMAC provides integrity/authentication (a signature), not confidentiality.