What you can do with Hash Generator
- Calculate text hash
- Create hmac checksum
How this generator works
Calculate text digests or keyed HMACs with MD5, SHA-1, SHA-256, SHA-512, or RIPEMD-160 and copy the lowercase hexadecimal result.
Example input
The quick brown fox jumps over the lazy dogExample output
SHA-256: d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592Practical workflow
- Enter the exact text whose digest you want to calculate.
- Choose MD5, SHA-1, SHA-256, SHA-512, or RIPEMD-160 from the algorithm menu.
- For a keyed message authentication code, enable HMAC Mode and enter a secret key before calculating.
- Select Generate Hash, then copy the lowercase hexadecimal digest to compare or use in your workflow.
Common use cases
- Comparing a text digest with a known reference value during a debugging session.
- Calculating an HMAC for a sample webhook payload with a test secret key.
- Generating a deterministic text fingerprint for a local cache or deduplication workflow.
Important notes and limitations
- The tool accepts text only and returns lowercase hexadecimal; it does not read files or offer Base64 output.
- Message text and HMAC keys are limited to 1,000,000 characters to bound browser-side hashing time and memory use.
- MD5 and SHA-1 are unsuitable where collision resistance is required; use SHA-256 or stronger for new integrity checks.
- Input text and the optional HMAC key are held in transient page state and are not saved by this tool.
Terminal & CLI equivalents
sha256sum on Linux systems
sha256sum archive.zipCalculates standard SHA-256 cryptographic checksums on GNU/Linux workstations.
shasum on macOS
shasum -a 256 archive.zipNative macOS command-line utility to compute SHA-256 digests.
OpenSSL message digest
openssl dgst -sha512 archive.isoComputes cryptographic SHA-512 hashes uniformly across operating systems.
Cryptographic Hash Function Security Matrix
| Algorithm | Digest Bits | Hex Length | Collision Security | Recommended Use |
|---|---|---|---|---|
| SHA-256 | 256 bits | 64 hex characters | Strong (2^128 security) | TLS certificates, API verification, HMAC, blockchain |
| SHA-512 | 512 bits | 128 hex characters | Strongest (2^256 security) | High-security government standards, password hashing roots |
| SHA-1 | 160 bits | 40 hex characters | Broken (SHAttered attack 2017) | Deprecated for security; legacy git commit references only |
| MD5 | 128 bits | 32 hex characters | Severely Broken (Flame 2012) | Non-cryptographic checksums and cache keys only |
Common errors & troubleshooting
Hash mismatch on text file across operating systems
Cause: Windows CRLF (\r\n) versus Linux/macOS LF (\n) line endings alter text file hashes.
Solution: Normalize line endings or compute hashes in binary mode to ensure exact byte parity.
Continue your workflow
- WebCrypto Encrypt & Decrypt — encrypt confidential payloads using authenticated AES-GCM encryption.
- Base64 Encoder & Decoder — convert binary cryptographic hash digests into readable Base64 strings.
- JWT Debugger — verify HS256 / RS256 token signatures on JSON Web Tokens.
- Password Generator — generate high-entropy cryptographic passphrases.
- UUID Generator — Generate cryptographically random UUID v4 identifiers for database keys.
Frequently asked questions
What changes when I enable HMAC Mode in the Hash Generator?
HMAC combines the entered message with the secret key before applying the selected digest algorithm, so the same message produces a different result with a different key.
Can I use an MD5 or SHA-1 result as a collision-resistant integrity proof?
No. MD5 and SHA-1 have practical collision weaknesses; choose SHA-256 or SHA-512 when collision resistance matters, and use a password-hashing function for passwords.
Does the Hash Generator calculate a digest for an uploaded file?
No. This page hashes text entered in its input field; it has no file picker or file-processing mode.