Generate HMAC signatures using SHA-256, SHA-1, or SHA-512. Output in hex, Base64, or Base64URL format. Uses the Web Crypto API — your data never leaves the browser.
What is HMAC Generator?
HMAC Generator is a free browser-based tool that computes HMAC (Hash-based Message Authentication Code)
signatures using the SHA-1, SHA-256, or SHA-512 hash functions. Enter a message, provide a secret key,
choose an algorithm and output format (hex, Base64, or Base64URL), and get a cryptographic signature
you can use for API authentication, webhook signature verification, or data integrity checks. All
computations use the browser's native Web Crypto API — your data never leaves your device.
When to use it?
Use HMAC Generator when debugging API authentication by comparing your computed signature against an
expected value, verifying webhook signatures from services like GitHub, Stripe, or Twilio, generating
test signatures for API integration testing, understanding how a third-party API's authentication
mechanism works, or validating that your signing implementation in code produces the same result as
the reference implementation.
Common use cases
Backend developers use HMAC Generator to debug webhook signature verification failures by comparing
the computed and expected HMAC values; generate reference signatures for API integration tests;
validate signing logic when implementing custom authentication for REST APIs; verify that HMAC-SHA-256
implementations in different languages (Go, Python, Node.js, PHP) produce the same output for the
same inputs; and generate API request signatures for services that require HMAC-based authentication
like AWS Signature Version 4 (which uses HMAC-SHA-256 internally).