Hash Generator: Which algorithm to choose

Start with the task you actually need to finish

  • Generating a SHA-256 checksum to verify a downloaded file was not corrupted.
  • Creating test password hashes while developing an authentication system.
  • Checking whether two pieces of text are identical by comparing their hashes.

Follow the workflow and review the result

  1. Type or paste the text you want to hash into the input field.
  2. View the MD5, SHA-1, SHA-256 and SHA-512 hashes generated simultaneously.
  3. Click the copy icon next to the hash you need to copy it to your clipboard.
  4. Change the input text to see all hash values update instantly.
  5. Compare a generated hash against a known value to verify integrity.

Which algorithm to choose

SHA-256 is the right default for anything security-related, including password storage design and data integrity verification. MD5 and SHA-1 are both considered cryptographically broken and should be limited to non-critical uses such as checksums for accidental corruption, not for protecting sensitive data.

Hash length and format

MD5 produces a 32-character hexadecimal digest, SHA-1 produces 40 characters, SHA-256 produces 64, and SHA-512 produces 128. All are shown here in lowercase hexadecimal, the most common representation used by checksum files and verification tools.

Hashing versus encryption

Hashing is one-way: there is no way to recover the original text from the hash output. This differs from encryption, which is reversible with the correct key. Hashes are suited to verification and integrity checks, not to storing information you need to read back later.