TR

Home / Web & Developer / HMAC Generator

🔏 HMAC Generator

HMAC Generator – get instant, free results right on your device.

WhatsAppTelegramX

The calculation is done with your browser's Web Crypto API; the key and message are not sent to a server. Even so, avoid typing real production secret keys into any web page; use a test key. Not an official institution.

Last updated: November 2026 · Parameter year: 2026 · Methods and sources: Methodology · Editorial policy

What is HMAC Generator?

HMAC is a signature method that verifies both the integrity of a message and that it was produced by someone who knows the secret key. It is common in areas such as webhook verification, API request signing, and token generation. The same message with a different key produces a different signature.

Enter the algorithm (HMAC-SHA256, SHA384, SHA512, or legacy SHA1), the secret key, and the message. The tool shows the signature in both hex and Base64. The calculation uses the browser's Web Crypto API; therefore, the page must be opened over https. The key and message cannot be left empty.

The key and message are not sent to a server, but avoid typing real production secret keys into any web page; use a test key. When comparing signatures, use constant-time comparison in your code. For a plain digest, you can see the SHA Hash Generator (SHA-1/256/384/512) tool.

How to use

Fill in these fields: Algorithm, Secret key, Message. Then press the button; the result appears on the same page and your data never leaves your device.

Formula

HMAC-SHA256(key, message) → 64-digit hex

Example

HMAC-SHA256(key, message) → 64-digit hex

Worked examples and tips

Example 1: With the algorithm HMAC-SHA256, the secret key ornek-anahtar and the message Merhaba Dünya, the Hex output is ddacc6ca6b64c05accc947d0aa84a45d2ec1d74836ad4a9ec262df195b176923 and the Base64 output is 3azGymtkwFrMyUfQqoSkXS7B10g2rUqewmLfGVsXaSM=. The same digest is presented in different formats.

Example 2: If you change the message to Merhaba dünya, that is, only lowercase the D, the Hex is 432c05e5426836338996e8c084c0fa9b734ee7c4e1f4891328a054ee956d9a6e. A small change produces a completely different signature; this property is used in webhook verification.

Example 3: Choose HMAC-SHA1 for a legacy service, with the key anahtar1 and the message siparis=42&tutar=100. The Hex is 6567da37d8d99eec45f1241610e940d3910e8cbb and the Base64 is ZWfaN9jZnuxF8SQWEOlA05EOjLs=. Because SHA-1 is considered outdated, prefer SHA-256 in new systems.

Tips and common mistakes: Do not type your real secret key into tools like this; use a sample key for testing. Do not embed the key in source code; use an environment variable or a secrets management service. Both parties must use the same message format; differences in spaces, line breaks and character encoding will break the signature. Use a constant-time comparison when comparing signatures. HMAC does not encrypt the message; it only verifies integrity and origin.

When is it useful? When verifying webhook signatures and when you want to prove that API requests have not been tampered with.

Frequently asked questions

HMAC Generator – how to use it?

Fill in the fields and press the button; the result appears instantly. Example: HMAC-SHA256(key, message) → 64-digit hex

HMAC Generator – is it free, and is my data stored?

Yes, it is free and requires no sign-up. Because processing happens in your browser, the information you enter is not sent to a server.

Related tools

🧩Base64 Encode/DecodeEncode text to Base64 or decode it from Base64 (UTF-8 supported).{ }JSON Formatter / MinifierValidate, neatly format, or minify JSON.🔗URL Encode/DecodeEncode text to be URL-safe, or decode encoded text.#️⃣SHA Hash Generator (SHA-1/256/384/512)SHA Hash Generator (SHA-1/256/384/512) – get instant, free results right on your device.🪪JWT DecoderJWT Decoder – get instant, free results right on your device.🔍Regex TesterRegex Tester – get instant, free results right on your device.