
HMAC Generator
Generate or verify HMAC signatures using SHA-256, SHA-384, SHA-512, or SHA-1. 100% client-side - your secret key never leaves your browser.
Last reviewed: April 2026New to this tool? Click here for instructions
How to Use the HMAC Generator
The HMAC Generator is a free online tool that allows you to generate and verify HMAC signatures using various hashing algorithms such as SHA-256, SHA-384, SHA-512, and SHA-1. Here's a step-by-step guide on how to use it:
1. Select an Algorithm: Choose the HMAC algorithm you want to use from the options provided (SHA-256, SHA-384, SHA-512, or SHA-1). SHA-256 is recommended due to its industry-standard status.
What Is HMAC and Why Is It Used?
HMAC stands for Hash-based Message Authentication Code. It is a cryptographic primitive used to verify the integrity and authenticity of a message. Unlike a plain hash, HMAC requires a shared secret key, making it much more secure against forgery. HMAC is widely used in various real-world systems, including AWS Signature Version 4, GitHub webhooks, and Stripe webhook events.
Frequently Asked Questions
Quick reference
| Parameter | Description | Common Value | Notes |
|---|---|---|---|
| Hash Algorithm | Underlying cryptographic hash function | SHA-256 | Also supports SHA-1, SHA-512 |
| Key Length | Secret key size in bits or bytes | 128 bits | Must match key derivation requirements |
| Data Input | Message to be hashed | "example_data" | Encoded as UTF-8 or binary |
| Output Format | Encoded representation of HMAC | Hexadecimal | Also available in Base64 |
| Key Derivation | Method for generating keys | PBKDF2 | Requires salt and iteration count |
| Block Size | Internal hash function block size | 512 bits | Varies by hash algorithm |