Hash Calculator: MD5 versus the SHA Family

Open Tool Text Hash Generator

Five digests, five lengths

MD5 emits 128 bits, thirty-two hexadecimal characters; SHA-1 gives 160 bits and forty characters; SHA-256 gives 256 bits and sixty-four; SHA-384 gives ninety-six characters; SHA-512 gives 128 characters. All five appear at once here with a case toggle. Every one is one-way: identical input always yields identical output, output cannot recover input, and a single changed character alters the digest completely — the avalanche effect.

Steps

  1. Paste the content, remembering that leading and trailing spaces count.
  2. Read all five digests side by side.
  3. Toggle hex case.
  4. Process, reset, copy one value, or download all.
  5. For downloaded files, compare the vendor digest character by character rather than the first few.

Why MD5 and SHA-1 are retired for security

Both have demonstrated collisions, where different inputs share a digest. MD5 collisions are trivial to construct; SHA-1 was broken for practical cost in 2017. Collisions destroy the claim that a digest proves content is unchanged, because an attacker can prepare two different files with one digest. Password storage, signatures and certificates therefore start at SHA-256. MD5 survives only for non-security checks such as verifying a transfer, and even that is being replaced.

Hashing is neither encryption nor salting

Hashing has no key, so anyone can compute it and it cannot hide sensitive data. Storing passwords by hash alone is unsafe: identical passwords produce identical digests, enabling precomputed rainbow tables and billions of guesses per second on a GPU. Proper practice salts per user and uses a deliberately slow password function so each verification costs tens of milliseconds, pricing brute force out of reach. The fast digests here suit file verification, not credential storage.

Common problems

Hidden characters from copy-paste, such as zero-width spaces. Encoding mismatch, where the same Chinese text under UTF-8 and UTF-16 digests differently. Comparing only the first characters. Mixing Base64 with hex. Feeding hundreds of megabytes to a browser tool, which loads the whole file into memory. And expecting reversibility — a digest cannot return the original, only dictionary guessing can.

Practical boundaries:File integrity, content fingerprints for deduplication, cache keys and Bloom filter indices all suit fast hashes. Signatures and certificates need SHA-256 or better alongside asymmetric keys. Password storage needs a dedicated password function, never a result from this page. Tamper-evidence plus recoverable content requires authenticated encryption. And for unique identifiers, remember the birthday bound: shorter outputs collide sooner, and forty hex characters are not enough for mass uniqueness.

⏫︎