How to Generate HMAC
Generate HMAC signatures using SHA-256, SHA-512, MD5, and more. Free online HMAC generator for API authentication, webhook verification, and data integrity.
Open HMAC Generator →Step-by-Step Guide
Enter your message
Paste or type the message you want to sign into the input field. This is the data that will be authenticated — it could be an API request body, a webhook payload, or any string you need to verify integrity for. The HMAC will be computed over the exact bytes of this input.
Choose the hash algorithm
Select your hash algorithm from the dropdown. SHA-256 is the most widely used and recommended for most applications — it provides a good balance of security and performance. SHA-512 offers stronger security for high-sensitivity use cases, while MD5 and SHA-1 are available for legacy system compatibility but are not recommended for new projects.
Enter the secret key
Type or paste your secret key. This shared secret is what makes HMAC secure — only parties who know the key can generate or verify the signature. Use a strong, random key of at least 32 characters. Never expose this key in client-side code, URLs, or public repositories.
Copy the HMAC output
The tool instantly generates your HMAC signature displayed as a hexadecimal string. Copy it using the copy button and use it in your Authorization header, webhook verification logic, or wherever your application requires it. You can toggle between hex and Base64 output formats depending on your API requirements.
Try It Now — Free
No signup, no download. Runs entirely in your browser.
Open HMAC Generator