Hash & HMAC Calculator
MD5, SHA-2, SHA-3, BLAKE2, CRC32 and HMAC of text or files, with checksum compare.
How it works
Computes MD5, SHA-1, SHA-224/256/384/512, SHA3-256/512, BLAKE2b-512, BLAKE2s-256 and CRC-32 of text or a file, or an HMAC with your key, in hex or Base64, and checks a published checksum against all of them.
- The input bytes are the file as uploaded, or the text decoded as UTF-8, hex or Base64. Text is hashed exactly as entered: no newline is appended (unlike `echo` without `-n`).
- Digests come from OpenSSL via Node.js crypto (MD5, SHA-1, SHA-2, SHA-3, BLAKE2b-512, BLAKE2s-256) and zlib (CRC-32, IEEE polynomial, shown big-endian as in `crc32`/`cksum -a crc32b`).
- With a key, HMAC (RFC 2104) is computed for every selected hash; CRC-32 has no HMAC. SHA-3 HMACs use the SHA-3 rate as block size (NIST), BLAKE2 HMACs the BLAKE2 block size, as OpenSSL does.
- The comparison accepts hex (any case, optional spaces or colons) or Base64 and reports which algorithm matches.
- With JavaScript on, the page computes SHA-1/2 via WebCrypto, MD5, SHA-224, SHA-3, BLAKE2 and CRC-32 via small built-in JavaScript implementations.
MD5, SHA-1 and CRC-32 must not be used where an attacker could craft collisions. To store passwords use a password hash (Argon2id, scrypt, bcrypt), not a plain hash.
Sources
Use this tool in an app
These free programs for your browser have this tool built in, next to everything else the task needs.
-
Keysmith Crypto & secrets lab
Audit certificates, keys, TLS and passwords in one lab; server runs ask first.
-
ObscurIQ OSINT case desk
Organize public-source research: cases, a research log, pivots and indicators.
-
Bundlekeep Local project backup
Back up projects from every usefulweb app into one file, check it and restore any part.
Related tools
- Key Derivation Lab – Derive keys with PBKDF2, scrypt, Argon2id and HKDF; compare costs with OWASP advice.
- Local File Encryption Studio – Encrypt and decrypt files with AES-256-GCM and a password.
How to use the Hash & HMAC Calculator
Compute MD5, SHA-2, SHA-3, BLAKE2 and CRC-32 of text or files, make HMACs, and check a published checksum against every algorithm at once.
What it is for
You've downloaded an ISO and the website lists a SHA-256. You're debugging a webhook whose signature is an HMAC. Or you just want to know which algorithm produced the 64 hex characters in a config file. This calculator computes up to eleven digests in one go: MD5, SHA-1, SHA-224/256/384/512, SHA3-256/512, BLAKE2b-512, BLAKE2s-256 and CRC-32. It shows hex or base64 and compares an expected value against all of them.
Enter a key and it computes HMACs instead of plain hashes. Text can be read as UTF-8, hex or base64. Files up to 100 MB work too,.
It's not a password-storage tool. Plain hashes are far too fast for that. Use the Key Derivation Lab and Argon2id, scrypt or bcrypt instead.
Worked example
Type hello world (no newline) and keep the default algorithms. The result lists 7 digests of the 11 bytes, including:
- MD5
5eb63bbbe01eeed093cb22bb8f5acdc3 - SHA-1
2aae6c35c94fcfb415dbe95f408b9ce91ee846ed - SHA-256
b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
For an HMAC, use the RFC 4231 test case: text what do ya want for nothing?, key Jefe, algorithms SHA-256 and SHA-512. HMAC-SHA-256 came out as 5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843, which matches the published test vector.
Checksum verification: we uploaded a 29-byte readme.txt and pasted the vendor's value with spaces and in upper case, CFA892AD DD30FF8C 6453D2F3 …. The answer was "Match: the expected value equals the SHA-256 of the file readme.txt". You don't need to know in advance which algorithm the vendor used. The comparison checks every selected one.
How to read the result
- Digest list: one row per algorithm with its bit length, hex value and base64 value. Lengths help you identify an unknown hash: 32 hex characters is 128 bits (MD5), 40 is SHA-1, 64 is SHA-256, SHA3-256 or BLAKE2s.
- Mode: hash or hmac. An HMAC with the wrong key looks just as random as the right one, so only a match tells you anything.
- Comparison: which algorithm matched, or no match. Case, spaces and colons in the expected value are ignored.
- Warnings: notes on weak algorithms and, for server-side runs, what the server received.
Tips and common mistakes
- The most common mismatch is a trailing newline.
echo "hello world" | sha256sumhashes 12 bytes. Useecho -norprintfto compare with this tool. - Line endings matter too: a file saved with Windows CRLF has a different hash from the same text with LF.
- Webhook signatures are usually HMAC over the raw request body. Re-serialised JSON with different spacing won't match.
- If a key is given in hex in the provider's docs, set Key is to hex. Otherwise the hex string itself is used as the key.
- MD5, SHA-1 and CRC-32 detect accidental corruption, but they don't protect against someone who deliberately crafts a collision. Prefer SHA-256 or better for integrity checks that matter.
- CRC-32 has no HMAC variant. It's skipped in HMAC mode.
FAQ
Is my file uploaded?
With JavaScript on, no. Without JavaScript, or via the API, the server computes it and keeps nothing beyond the request.
Why does my SHA-3 differ from an online "Keccak-256" result?
Ethereum's Keccak-256 uses the original padding, not the final FIPS 202 SHA3-256, so the outputs differ for the same input.
Can I turn a hash back into the original text?
No. Hashes are one-way. Lookup sites only "reverse" short, common inputs they've precomputed.
What does the CRC-32 value correspond to?
It uses the IEEE polynomial, shown big-endian, the same as crc32 or cksum -a crc32b.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://hashhmaccalculator.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://hashhmaccalculator.usefulweb.site/mcp· tool namehash_hmac_calculator
Example request
curl -s -X POST https://hashhmaccalculator.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{"text":"hello world"}'