HMAC Generator
Generate HMAC signatures from text and a secret key using SHA-256, SHA-384 or SHA-512. This free HMAC generator performs calculations locally in your browser.
HMAC Generator
Select an algorithm, enter your message and secret key, then generate the HMAC authentication code.
What Is HMAC Generator?
An HMAC generator creates a Hash-based Message Authentication Code from a message and a secret key. Unlike a conventional cryptographic hash, an HMAC incorporates a secret key into the calculation, allowing systems that share the key to verify the authenticity and integrity of a message.
Developers can use an HMAC generator to test APIs, webhooks, authentication mechanisms and other software that relies on keyed hashes. This tool supports HMAC with SHA-256, SHA-384 and SHA-512.
Why Use HMAC Generator?
This tool provides a convenient way to calculate HMAC values from text without installing additional software or sending the message and key to a remote hashing service.
Multiple Algorithms
Generate HMAC values using SHA-256, SHA-384 or SHA-512.
Browser-Based
Calculations are performed locally using the browser's Web Crypto API.
Secret Key Support
Provide the shared secret key required to calculate the HMAC authentication code.
UTF-8 Text
Message and key values are encoded as UTF-8 before the HMAC calculation.
Easy to Copy
Copy the generated hexadecimal HMAC directly to your clipboard.
Free to Use
Generate HMAC values online for free without registration or software installation.
How to Use HMAC Generator
Use the HMAC generator to calculate a keyed authentication code from your message and secret key.
- Select an algorithm — Choose HMAC-SHA-256, HMAC-SHA-384 or HMAC-SHA-512.
- Enter the message — Type or paste the text you want to authenticate into the message field.
- Enter the secret key — Enter the shared secret key used by the HMAC calculation.
- Generate and copy the result — Select Generate HMAC, review the hexadecimal result and use Copy HMAC if you need it on your clipboard.
Online HMAC Generator
An online HMAC generator is useful for developers who need to calculate a keyed message authentication code while testing an application or checking an expected signature. HMAC combines a secret key with a cryptographic hash function, producing a deterministic authentication value for a particular message and key.
HMAC is commonly encountered in API authentication, signed webhooks, request verification and other systems where two parties need to verify that data was created by someone possessing a shared secret and that the data has not been altered.
HMAC-SHA-256, HMAC-SHA-384 and HMAC-SHA-512
The selected SHA-2 algorithm determines the size of the HMAC output. HMAC-SHA-256 produces a 256-bit digest represented by 64 hexadecimal characters, HMAC-SHA-384 produces a 384-bit digest represented by 96 hexadecimal characters, and HMAC-SHA-512 produces a 512-bit digest represented by 128 hexadecimal characters.
HMAC for API and Webhook Testing
Many APIs and webhook systems use HMAC signatures to authenticate requests. Developers can use this tool to reproduce an HMAC from a known message and secret key and compare the result with an application's expected signature. When testing a real integration, ensure that the message bytes, character encoding, algorithm and key handling match the requirements of the service being tested.
HMAC Generator Information
HMAC is a keyed authentication mechanism rather than an encryption method. The generated HMAC does not contain a reversible representation of the original message. Anyone attempting to reproduce a valid HMAC must have the appropriate secret key and use the same message, encoding and algorithm.
This tool performs calculations locally in your browser with the Web Crypto API. The message and secret key are not sent to a YesTools server by the generator. Do not enter a production secret into any third-party website unless you are satisfied that using that service is appropriate for your security requirements.
James William Steven Parker
Creator & Developer of YesTools
James William Steven Parker is a web developer and technology professional with extensive experience in web development, web design, SEO, web hosting, systems analysis and cybersecurity. He created YesTools to provide fast, practical and free online tools for everyday tasks and technical work.
Learn more about James and YesToolsFrequently Asked Questions
Explore More Free Tools
Explore the YesTools collection of free online tools, calculators, converters, generators and utilities.
Browse All Categories

