Hash Generator

Generate MD5, SHA-1, SHA-256, SHA-384, SHA-512 hashes from text or files instantly

Which Hash Function Should You Use?

What is a hash?

A one-way function that maps any input to a fixed-length value: identical inputs always produce identical hashes, the original can't be recovered, and flipping a single bit changes the output completely.

Choosing an algorithm

  • SHA-256/SHA-512: current standard (NIST FIPS 180-4) — use for integrity checks, signatures, and checksums.
  • MD5 and SHA-1: broken by practical collision attacks; retired for security purposes. Only acceptable for non-security tasks like duplicate-file detection.

Passwords are different

Store passwords with slow, dedicated algorithms — bcrypt, scrypt, or Argon2 — plus a salt. SHA-256's speed is exactly what makes it wrong for passwords: fast hashes are easy to brute-force.

Frequently Asked Questions

Related Tools

Sources & References

Content last reviewed: 2026-08-22