Hash generator

Compute MD5, SHA-1, SHA-256 and SHA-512 digests of text or files in one click, with results copyable in lower or upper case. Processed entirely in your browser — nothing is uploaded.

Algorithms (multi-select, at least one)
Input (raw text, or choose a file below)
You can also choose a local file to hash its contents.
Results
Pick an algorithm and enter content, then click "Compute hash".
Waiting to compute.

The four properties that define a hash

The avalanche effect follows from these: changing a single bit of input should change roughly half the output bits, so similar inputs give completely unrelated digests.

Which algorithm to use

AlgorithmDigest sizeStatus
MD5128-bitBroken — collisions are trivial to produce. Legacy checks only.
SHA-1160-bitBroken for security; chosen-prefix collisions demonstrated in 2017.
SHA-256256-bitRecommended default for integrity and signatures.
SHA-512512-bitSame family, larger digest.
SHA-3variesDifferent construction, not a drop-in replacement for SHA-2.
bcrypt / scrypt / Argon2variesDeliberately slow — the correct choice for passwords.

Do not hash passwords with SHA-256

SHA-256 is designed to be fast, which is exactly wrong for passwords: an attacker with a GPU can test billions of candidates per second. Password storage needs a slow, salted, memory-hard algorithm, plus a salt that is unique per account so identical passwords do not produce identical digests — and so precomputed tables are useless.

Where each use fits

Related tools

Encrypt / decrypt Base64 encoder UUID generator

FAQ

What is the difference between MD5 and SHA-256?
MD5 outputs 128 bits (32 hex characters) and is fast, but collision vulnerabilities have been proven, so it is not suitable for security purposes; SHA-256 outputs 256 bits (64 characters), is more secure, and is commonly used for file integrity checks and digital signatures.
Is hashing encryption? Can the original be recovered?
No, and no. Hashing is a one-way digest algorithm that turns arbitrary-length input into a fixed-length string; changing even one character of the input completely changes the result. It is used to verify integrity — you cannot reverse it back to the original.
Can I use it to verify a downloaded file has not been tampered with?
Yes. Software release pages usually publish the SHA-256 of the installer; hash your downloaded file with this tool and, if it matches the official value, the file has not been tampered with or corrupted.
Is my text or file uploaded when computing hashes?
No. All computation happens locally in your browser; neither text nor files are sent to any server.