Hash / HMAC Generator
Use this generator to compare message digests, create test vectors, or calculate an HMAC for local API development with modern SHA algorithms.
Uses the browser Web Crypto API. Empty text is a valid hash input.
Digest output
Your result will appear here.A focused browser utility
Use this generator to compare message digests, create test vectors, or calculate an HMAC for local API development with modern SHA algorithms.
Local by default
This tool runs entirely in your browser. There is no account, server-side processing, or input history.
Three quick steps
- Enter the message text and choose a supported SHA algorithm.
- Select Hash or HMAC; for HMAC, also enter the secret key.
- Choose hexadecimal or Base64 output, generate the value, and copy it.
Input and output
Input
Message: "hello"
Algorithm: SHA-256
Output: HexOutput
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824Frequently asked questions
What is the difference between a hash and an HMAC?
A hash uses only the message. An HMAC combines the message with a secret key so a recipient with that key can check authenticity.
Why are MD5 and SHA-1 not available?
They are omitted because modern security-sensitive workflows should use stronger SHA-2 algorithms such as SHA-256 or above.
Is my HMAC secret uploaded?
No. The message and key are processed by the browser's Web Crypto API and are not sent to this site's server.