Hash & HMAC Calculator
Compute client-side cryptographic message digests and keyed-hash message authentication codes in real time.
Encoded Results
Live computation
Base16 (Hex)
Base64
Base64Url
Verification
Test Vectors
| Algorithm | Message | Key | Expected Result |
|---|---|---|---|
|
SHA-1 |
-blank- | -- |
(b16)
da39a3ee5e6b4b0d3255bfef95601890afd80709 (b64) 2jmj7l5rSw0yVb/vlWAYkK/YBwk= |
|
SHA-1 |
abc | -- |
(b16)
a9993e364706816aba3e25717850c26c9cd0d89d (b64) qZk+NkcGgWq6PiVxeFDCbJzQ2J0= |
|
SHA-256 |
-blank- | -- |
(b16)
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 (b64) 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= |
|
SHA-256 |
abc | -- |
(b16)
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad (b64) ungWv48Bz+pBQUDeXa4iI7ADYaOWF3qctBD/YfIAFa0= |
|
HMAC-SHA256 |
-blank- | secret |
(b16)
f9e66e179b6747ae54108f82f8ade8b3c25d76fd30afde6c395822c530196169 (b64) +eZuF5tnR65UEI+C+K3os8Jddv0wr95sOVgixTAZYWk= |
|
HMAC-SHA256 |
abc | secret |
(b16)
9946dad4e00e913fc8be8e5d3f7e110a4a9e832f83fb09c345285d78638d8a0e (b64) mUba1OAOkT/Ivo5dP34RCkqegy+D+wnDRShdeGONig4= |
Documentation
Usage & Cryptographic Notes
- This page uses the WebCrypto library for hash and HMAC computation.
-
Any data you enter on this page stays in the browser and is never
sent to any server. The hash computation is performed locally in
your browser. If you specify a key for HMAC, the key never leaves
your browser. Inputs are saved in
localStoragefor your convenience. - The results shown represent different encodings of the same digest byte array. Base16 (Hex) is case-insensitive, while Base64 and Base64Url are case-sensitive.
-
For message content, whitespace is significant. This page converts
line-breaks to newline (
\n). Trailing newlines are preserved: the hash forabc\nis completely different from the hash forabc. - Unicode is fully supported. The calculator encodes text strings as UTF-8 bytes prior to computing checksums.
- Written by DinoChiesa. Contact via GitHub or Bluesky.