Skip to main content

HMAC Generator

Compute keyed-hash message authentication codes (HMAC) with SHA-256, SHA-384, SHA-512 or SHA-1. Ideal for testing API signatures and webhooks. Your key is hashed locally in the browser — never uploaded.

Processed locally · 0 bytes uploaded

Message

Signature

Hex
Base64

Specs

Supported formats
Input: Message text + secret key · Output: HMAC-SHA256, HMAC-SHA384, HMAC-SHA512 & HMAC-SHA1 (Hex / Base64)
File & batch limits
Computes webhook and API signatures in sub-millisecond time without sending keys over the network
AI model download
None (0 MB — native Web Crypto subtle.sign)
Browsers & devices
Chrome, Edge, Safari & Firefox on desktop and mobile
Offline support
Yes — works 100% offline immediately after loading

FAQ

Is my secret key sent anywhere?

No. The HMAC is computed by the Web Crypto API inside your browser. Neither the key nor the message ever leaves your device.

What is HMAC used for?

Signing API requests and verifying webhooks — Stripe, GitHub, Slack and most payment or messaging platforms authenticate payloads with HMAC-SHA256. Paste the payload and your signing secret here to reproduce or debug a signature.

How is HMAC different from a plain hash?

A plain SHA-256 proves integrity only. HMAC mixes in a secret key, so it also proves the message came from someone who holds that key — that's authentication, not just a checksum.

Hex or Base64 — which output should I use?

It depends on the platform. Stripe uses hex, JWT signatures use Base64URL, many webhook providers use standard Base64. Copy whichever your API docs expect.

Share this tool: