HMAC SHA256 Online Generator
HMAC SHA256 online generator: compute HMAC-SHA256/384/512 from a message and secret. Hex or Base64 output, RFC test vector example—runs in your browser, nothing uploaded.
How it works
- Signs UTF-8 text with a UTF-8 secret using Web Crypto HMAC. Choose hex or Base64 output. Digests prove integrity with a shared key; they are not encryption.
About HMAC SHA256
What is an HMAC SHA256 online generator?
HMAC (Hash-based Message Authentication Code) combines a secret key with a hash like SHA-256 so you can verify that a message was not altered and came from someone who knows the secret.
This HMAC SHA256 online generator also supports SHA-384 and SHA-512. Output can be hex or Base64. Work stays in your browser via Web Crypto.
HMAC SHA256 in code
- JavaScript
// Node.js import crypto from "node:crypto"; crypto.createHmac("sha256", "key") .update("The quick brown fox jumps over the lazy dog") .digest("hex"); // → f7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8- Python
import hmac, hashlib hmac.new(b"key", b"The quick brown fox jumps over the lazy dog", hashlib.sha256).hexdigest()
HMAC SHA256 FAQ
- What is HMAC-SHA256 used for?
- API request signing, webhook verification, and integrity checks when both sides share a secret. It is not encryption and does not hide the message.
- Hex or Base64 — which should I use?
- Both encode the same digest bytes. Hex is common in docs and logs; Base64 is shorter and common in HTTP headers and JWTs.
- Is my secret uploaded?
- No. Signing runs locally with Web Crypto. Secrets and messages never leave your browser.