Enter text or choose a file to get its SHA-256 straight away; SHA-1, SHA-384 and SHA-512 are available too. Paste the hash the publisher gave you and it is checked automatically, so you know the file has not been altered. Everything is computed locally in your browser — nothing is uploaded.
Choosing between SHA-256 and MD5
Is SHA really "encryption"?
Strictly speaking no, just as with MD5. Encryption is reversible: with the key you can recover the original. SHA is a one-way hash function that squeezes an input of any length into a fixed-length digest. Information is lost along the way, so there is no "recover" step to speak of. People commonly call it "SHA256 encryption", and this page follows that habit, but what it means is computing a SHA-256 value. There is likewise no such thing as "SHA256 decryption" — sites offering it are doing rainbow-table lookups, explained in more detail on the MD5 hash generator page.
Why you should move off MD5 and SHA-1
It is not simply that more bits are safer — it is that the first two have actually been broken. Producing two files with different contents but the same MD5 takes an ordinary computer a few seconds. SHA-1 was collided for real by Google's SHAttered in 2017, and by 2020 chosen-prefix collisions had brought the cost down to a few tens of thousands of dollars. That means someone can prepare a pair of files with different contents but identical hashes, so your check passes while you receive the other one. SHA-256 has no known practical collision, and it is what TLS certificates, newer versions of Git and software release checksums generally use.
But do not store passwords with plain SHA-256
This is the most common misuse. SHA-256 is designed to be fast — a modern graphics card computes billions of them per second, which is exactly what an attacker brute-forcing your database wants. Store user passwords with a slow hash such as bcrypt, scrypt or Argon2: they salt automatically (a random salt per user, which defeats rainbow tables and credential stuffing) and let you tune the work factor upward as hardware gets faster. Salting SHA-256 by hand stops rainbow tables, but it does not stop a brute-force attack on one specific account.
SHA-256, SHA-384 or SHA-512?
All three belong to the SHA-2 family; they differ in internal word size and output length. SHA-256 works on 32-bit words, has the broadest compatibility and is the sensible default almost everywhere. SHA-512 works on 64-bit words and is often faster on a 64-bit CPU, with a longer output. SHA-384 is SHA-512 truncated to 384 bits, seen in some certificates and TLS suites. Without a specific requirement, use SHA-256 — it is most likely what the value you are checking against is anyway.