Hash & HMAC Calculator
MD5, SHA-2, SHA-3, BLAKE2, CRC32 and HMAC of text or files, with checksum compare.
Try an example: Hashes of "hello world" · HMAC-SHA256 (RFC 4231 test case 2) · Verify a SHA-256 checksum of a small file
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. With JavaScript on, files and keys are hashed locally in your browser.
- 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 browser computes everything locally: SHA-1/2 via WebCrypto, MD5, SHA-224, SHA-3, BLAKE2 and CRC-32 via small built-in JavaScript implementations. Files and keys never leave your device.
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
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"}'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, locally in your browser.