ToolsHMAC Generator
Security Tool In-Browser Sandbox

Free Online HMAC Generator (SHA-256, SHA-512, MD5)

Compute Hash-based Message Authentication Codes (HMAC) using SHA-256, SHA-512, SHA-384, SHA-1, or MD5 with Hex or Base64 output using Web Crypto.

Loading component...

100% Client-Side Privacy

Tokens, code & payloads never leave your browser.

Zero Latency Execution

Instant processing via native browser Web APIs.

No Account Required

Unlimited, free access without paywalls or quotas.

Key Features & Capabilities

Supports HMAC-SHA256, HMAC-SHA512, HMAC-SHA384, HMAC-SHA1, and HMAC-MD5
Output formatting in lowercase Hex or Base64 encoding
Runs 100% locally via browser cryptography — secret keys never leave your machine

How to Use the HMAC Generator

Step 1: Enter Message & Secret Key1

Paste the payload body and enter your HMAC shared secret key.

Step 2: Pick Digest Algorithm2

Choose SHA-256, SHA-512, or another HMAC hash function.

Step 3: Copy Signature3

Copy the computed Hex or Base64 HMAC signature to verify webhooks or API headers.

Practical Developer Use Cases

Verifying Webhook Signatures (GitHub, Stripe, Cryptomus)

Reproduce and debug `X-Hub-Signature-256` or custom API HMAC headers locally without exposing your webhook signing secret.

Frequently Asked Questions

How does HMAC differ from a plain SHA-256 hash?

A plain SHA-256 hash only checks integrity and can be recomputed by anyone. HMAC mixes a secret shared key into the hash so only parties holding the key can produce or verify the signature.

View All Tools