Hash Generator
MD5, SHA-1, SHA-2 and SHA3-512 hashes of any text.
About Hash Generator
Hash Generator: MD5, SHA-256, SHA-512 and More
Type or paste text and the generator returns its hash in several algorithms at once: MD2, MD4, MD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA3-512, NTLM and CRC32, plus a simple 8-bit checksum (the sum of all bytes mod 256). The tool encodes the text as UTF-8 before hashing, so the results match sha256sum or Python's hashlib for the same bytes.
How Hashing Works
A hash function turns input of any length into a fixed-length value. The same input always gives the same output, and changing a single character changes the whole result. SHA-256 of hello is 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824; for Hello it's a completely different string.
Watch for invisible differences. A trailing space or newline produces a different hash. echo "hello" | sha256sum hashes hello plus a newline, so use echo -n or printf when you compare with this tool.
Which Algorithm to Use
- SHA-256, SHA-384, SHA-512, SHA3-512: current choices for integrity checks, signatures and file verification.
- MD5 and SHA-1: broken for security. Researchers have produced practical collisions for both (SHA-1 in 2017), so an attacker can craft two files with the same hash. They still work for non-security uses such as cache keys or spotting duplicate files.
- MD2 and MD4: obsolete. They're here for legacy systems and learning.
- NTLM: the MD4-based hash Windows uses for local and Active Directory passwords. Useful when you audit or test Windows credentials.
- CRC32 and the checksum: catch accidental corruption in transfers and storage. They aren't cryptographic, and anyone can forge a matching value.
Hashing Passwords
Don't store passwords as plain MD5 or SHA-256 hashes, even with a salt. Fast hashes let attackers test billions of guesses per second on a GPU. Use a slow password hashing function such as Argon2id, scrypt or bcrypt, which your framework almost certainly provides.
Verifying a Download
Software sites often publish a SHA-256 value next to the download. Hash the file on your machine and compare:
- Linux:
sha256sum file.iso - macOS:
shasum -a 256 file.iso - Windows PowerShell:
Get-FileHash file.iso -Algorithm SHA256
This tool hashes text, not files, so use those commands for downloads.