Skip to main content

Hash Generator

Generate text hashes and HMACs with MD5, SHA-1, SHA-256, SHA-512, and RIPEMD-160

Processed in this browser and not saved. Maximum: 1,000,000 characters.

Output Hash
Hash will appear here...

Was this Hash Generator helpful?

Help us keep tools reliable, fast, and bug-free.

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 dog

Example output

SHA-256: d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592

Practical workflow

  1. Enter the exact text whose digest you want to calculate.
  2. Choose MD5, SHA-1, SHA-256, SHA-512, or RIPEMD-160 from the algorithm menu.
  3. For a keyed message authentication code, enable HMAC Mode and enter a secret key before calculating.
  4. 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.zip

Calculates standard SHA-256 cryptographic checksums on GNU/Linux workstations.

shasum on macOS

shasum -a 256 archive.zip

Native macOS command-line utility to compute SHA-256 digests.

OpenSSL message digest

openssl dgst -sha512 archive.iso

Computes cryptographic SHA-512 hashes uniformly across operating systems.

Cryptographic Hash Function Security Matrix

AlgorithmDigest BitsHex LengthCollision SecurityRecommended Use
SHA-256256 bits64 hex charactersStrong (2^128 security)TLS certificates, API verification, HMAC, blockchain
SHA-512512 bits128 hex charactersStrongest (2^256 security)High-security government standards, password hashing roots
SHA-1160 bits40 hex charactersBroken (SHAttered attack 2017)Deprecated for security; legacy git commit references only
MD5128 bits32 hex charactersSeverely 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

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.