Hash Generator
Type or paste text and get its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes at once — all computed on your device, so even sensitive strings stay private.
Hashes update as you type. The empty-string hashes appear when the box is cleared.
What a Hash Actually Is
A hash function turns any input — a word, a file, a whole disk image — into a fixed-length fingerprint. The same input always gives the same fingerprint; change one character and the fingerprint changes completely; and there is no way to run the process backwards to recover the input from the fingerprint. That trio of properties is why hashes are everywhere: checking a download was not corrupted, storing passwords (properly, with salts and slow algorithms), signing software, and anchoring blockchains.
Which Algorithm Should You Use?
MD5 and SHA-1 are broken for security purposes — collisions can be manufactured — but they are still everywhere as casual checksums and legacy identifiers, which is why they are included. SHA-256 is the current workhorse: use it for file checksums, integrity checks and anything new. SHA-384 and SHA-512 offer longer fingerprints from the same family; SHA-384 is a truncated SHA-512 and shows up in TLS and government standards. For passwords, none of these raw hashes is the right tool — password storage needs bcrypt, scrypt or Argon2, which are deliberately slow.
Checking a Download, Step by Step
When a site publishes a SHA-256 next to a download, it is inviting you to verify the file. Download it, hash the file (this page hashes text; for files use your system tool — certutil -hashfile on Windows, shasum -a 256 on macOS and Linux), and compare the strings character by character. If they differ at all, the file is not what was published — corrupted, replaced or tampered with — and should not be run. For text, the workflow here is the same idea in miniature: hash a string now, hash it later, and any change shows immediately.
Frequently Asked Questions
Is it safe to hash a password here to check it?
The hashing happens entirely in your browser — nothing is uploaded — so the text never leaves your device. Still, a raw MD5 or SHA hash of a password is not secure storage; real systems use bcrypt or Argon2 with salts.
Why are MD5 and SHA-1 called broken?
Because researchers can manufacture two different inputs with the same hash (a collision), which breaks them for signatures and certificates. They are still fine as casual checksums, and SHA-256 is the safe default for anything serious.
Why does the hash change completely when I edit one letter?
That is by design — the avalanche effect. A good hash function flips about half the output bits for a one-bit input change, which is what makes tampering obvious.
Can I get the original text back from a hash?
No. Hashing is one-way. The only recovery method is guessing inputs and hashing them — which is why short, common strings should never be protected by a bare fast hash.