Developer ToolsGeneratorsFree Tool

HMAC Generator

Compute a real HMAC (keyed-hash message authentication code) using SHA-1, SHA-256, SHA-384, or SHA-512, via the Web Crypto API.

How to Use HMAC Generator
  1. 1Enter your key
  2. 2Add a line with ---, then your message
  3. 3Optionally add another --- then the algorithm (SHA-1/256/384/512)
  4. 4Click Process to compute the HMAC
Frequently Asked Questions

Enter your key, then --- then your message, then optionally --- then the algorithm name (SHA-1, SHA-256, SHA-384, or SHA-512). If you omit the algorithm, it defaults to SHA-256.

Yes — it uses crypto.subtle.importKey and crypto.subtle.sign with the HMAC algorithm, the browser's native, standards-compliant implementation, for whichever hash function you select.

Verifying both the integrity and authenticity of a message using a shared secret key — commonly used for API request signing (e.g. AWS Signature, webhook signature verification) and secure tokens.

No — the HMAC computation happens entirely in your browser.

Related Tools

Related Articles

More from Developer Tools