Password Hash Generator

Type text to see its MD5, SHA-1, SHA-256, SHA-384, SHA-512 and NTLM hashes update live. Useful for developers, testing and learning — everything is computed on your device.

Hashes update as you type and are computed locally (UTF-8 input; NTLM uses UTF-16LE).

Hash results

What is a password hash?

A hash function turns any input into a fixed-length fingerprint. The same input always gives the same output, but you cannot run the function backwards. Websites store hashes instead of passwords: at login they hash what you typed and compare fingerprints. If the database leaks, attackers get hashes, not passwords — and have to guess inputs until one matches.

The algorithms on this page

Hash algorithms compared
AlgorithmOutputStatus
MD5128-bit (32 hex)Broken for security. Fine only for checksums.
SHA-1160-bit (40 hex)Collision attacks demonstrated (2017). Legacy only.
SHA-256256-bit (64 hex)Secure for integrity and signatures.
SHA-384 / SHA-512384 / 512-bitSecure; SHA-512 is faster on 64-bit CPUs.
NTLM128-bit (MD4 of UTF-16LE)Windows legacy hash; extremely fast to crack.

Don’t store passwords with plain SHA-256

SHA-256 is an excellent hash — but it is fast, and fast is bad for passwords. A GPU can compute billions of SHA-256 hashes per second, so a stolen table of unsalted SHA-256 password hashes falls quickly to dictionary attacks. For storing passwords, use a deliberately slow, salted password hashing function:

  • Argon2id — the current first choice (OWASP recommendation).
  • scrypt — memory-hard, widely available.
  • bcrypt — battle-tested since 1999, supported everywhere. Try our bcrypt generator.
  • PBKDF2 — acceptable when FIPS compliance is required, with a high iteration count.

Common uses for this tool

  • Checking that your code produces the expected digest for a known input.
  • Comparing a file checksum or API signature by hand.
  • Creating test fixtures, or computing an NTLM hash for a lab environment.
  • Learning: see how changing one character completely changes every hash (the “avalanche effect”).

Input is encoded as UTF-8 for all algorithms except NTLM, which by definition uses UTF-16 little-endian. SHA hashes come from the browser’s built-in Web Crypto API; MD5 and MD4 are implemented locally because browsers deliberately omit them.

Last updated: · Reviewed by the Password Generator team

Frequently asked questions

Can a hash be reversed to get the password?

Not mathematically. But weak or common passwords can be found by hashing billions of guesses and comparing, which is why fast hashes like MD5 and SHA-256 should never be used alone to store passwords.

What is the SHA-256 hash of “password”?

It is 5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8. The tool above starts with that input so you can verify it.

How is an NTLM hash calculated?

NTLM is the MD4 hash of the password encoded as UTF-16 little-endian, with no salt. Because it is unsalted and very fast, NTLM hashes are cracked easily if stolen.

Is it safe to hash a real password here?

Everything is computed locally and nothing is transmitted. Still, a hash of a real password is sensitive: anyone who sees it can attempt to crack it offline.