What a hash generator does
A hash function turns input of any length into a short value of fixed length. The same input always gives the same hash, and even a one-letter change gives a completely different one:
That makes hashes useful for checking that two things are identical without comparing them byte by byte, and for storing passwords without storing the passwords themselves.
Which hash to use
For checksums and anything new, use SHA-256. SHA-512 does the same job with a longer result. MD5 and SHA-1 are still common in older systems, and they are fine for spotting accidental damage, but both have known collision attacks, so they should not be trusted against someone who changes data on purpose.
Passwords need a different kind of hash. Fast hashes such as SHA-256 let an attacker test billions of guesses. Bcrypt adds a random salt and is deliberately slow, which makes guessing far more expensive. Our article on hashing passwords correctly explains the details.
Checking a downloaded file
The tools on this site hash text. To check a downloaded file, compute its checksum on your own computer and compare it with the one the publisher lists. On macOS and Linux run shasum -a 256 filename. In Windows PowerShell run Get-FileHash filename, which uses SHA-256 by default.
Frequently asked questions
Can a hash be decrypted back into the text?
No. A hash keeps no copy of the input, so there is nothing to decrypt. Sites that claim to decrypt MD5 look the hash up in a list of hashes they computed in advance from common words and leaked passwords. That is why short or common passwords are found quickly.
Is MD5 still safe to use?
Not for security. Researchers can create two different inputs with the same MD5 hash, so it cannot prove that a file was not tampered with. It still works as a quick checksum to spot accidental damage, such as a broken download.
Why does bcrypt give a different hash each time?
Bcrypt adds a random salt before hashing and stores that salt inside the result. The same password therefore gives a different hash every time, and checking a password means hashing it again with the stored salt. Use the bcrypt tool for that.
Why does my hash differ from the one another tool gives?
Usually the input is not exactly the same. A trailing space or newline, a different line ending (Windows uses two characters, macOS and Linux one) or a different text encoding all change the hash completely. This page hashes the text as UTF-8.