Skip to content

HMAC Generator

Embed

Paste this where you want HMAC Generator on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/hmac-generator/" width="100%" height="500" frameborder="0" loading="lazy" title="HMAC Generator"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/hmac-generator/">HMAC Generator</a> by BrowserUtils</p>

Generate HMAC message authentication codes.Runs in this tab.

Algorithm:

Next step

About HMAC Generator

Free online HMAC generator. Create HMAC-SHA256, HMAC-SHA512, and other keyed-hash message authentication codes using the Web Crypto API. It runs in your browser. Nothing is sent to a server.

Questions

What is HMAC?
HMAC (Hash-based Message Authentication Code) combines a secret key with a hash function to produce a code that verifies both data integrity and authenticity.
Which algorithm should I use?
SHA-256 is the most commonly used. SHA-512 provides extra security for sensitive applications. SHA-1 is considered legacy and should be avoided for new projects.
HMAC vs plain hash: what is the difference?
A plain hash only verifies data integrity (the data was not changed). HMAC also verifies authenticity (the data came from someone who knows the secret key). Without a secret key, anyone can compute a plain hash.
Where is HMAC used in practice?
HMAC is used in API authentication (e.g., AWS Signature V4), webhook signature verification, JWT signing (HS256), and secure cookie signing.
Is my secret key safe when generating HMAC online?
Yes, the HMAC is computed entirely in your browser using the Web Crypto API. Your secret key and message data never leave your device.
How do I verify a webhook signature with HMAC?
Paste the webhook payload as the message and the signing secret provided by the service as the key. If the generated HMAC matches the signature in the webhook header, the payload is authentic.

More in Hashing & Crypto

All 15 hashing & crypto