MewTools

SecurityTool 05

HMAC Generator

Reproduce a webhook signature or test an API signing step. Enter the message and key, and read the hexadecimal HMAC digest.

Runs locallyNo uploadMessage and secret keyFree, no account

Generate HMAC

25 / 232

Result

Waiting

Run the tool and the result appears here. Copy it or download it — nothing leaves this tab.

Privacy

Local by design

Everything you type stays in this tab and is processed by JavaScript on your device. Nothing is uploaded, logged or stored on a server.

How to use it

01

Paste the exact message bytes the sender will sign, including spaces and newlines.

02

Enter the shared secret and choose the hash algorithm the sender uses.

03

Compare the hex digest with the signature header. A mismatch usually means the message body was altered.

When to use it

Webhook checks

Verify that a payload really came from a service you trust.

API signing

Test the canonical string and secret before shipping an integration.

Debugging

Isolate whether a mismatch comes from the body or the key.

Questions

How is HMAC different from a hash?

HMAC mixes in a secret key, so only someone with the key can produce the same digest.

Is my secret key sent anywhere?

No. The key is imported into Web Crypto in this tab and discarded when you leave.

Why does the signature not match?

Check for a modified body, a wrong key, a different algorithm, or a signature that is Base64 rather than hex.

Which HMAC algorithm should I use for webhook signing?

SHA-256 is the default in most current APIs and the safest choice for a new integration. SHA-1 still appears in older services; use it only when the receiving side documents it, not because the signature is shorter.

Why does my HMAC signature not match the expected value?

The usual causes are a trailing newline in the message, a key pasted with quotes, or hex versus Base64 output. Compare the message byte for byte and check which encoding the other side expects before changing the algorithm.

↑↓ to move↵ to openEsc to close