Generate MD5, SHA-1, SHA-256, and SHA-512 hashes of any text.
A hash function turns any text into a fixed-length string of letters and numbers. The same input always gives the same output, but even a one-character change produces a completely different result, and the original cannot be recovered from the hash. Choose MD5, SHA-1, SHA-256 or SHA-512, enter text, and copy the hash.
Hashes are used to check that a download or message was not altered, to compare two texts without showing them, and in many parts of software and security.
Do not store user passwords as plain MD5 or SHA hashes; real systems use slow, salted password hashing such as bcrypt, scrypt or Argon2. This tool hashes text you type, not files.
The calculation is done in your browser. Text you enter is not sent anywhere, though you should still avoid typing real passwords into any web tool. Use the Password Generator to create strong ones.
A hash turns any text into a short fixed-length fingerprint. The same text always gives the same hash, and even a tiny change gives a completely different one. That makes hashes handy for checking that two pieces of text are identical without reading them side by side.
Be aware that a hash is sensitive to every character. A trailing space, a different line ending or a capital letter changes the result. If two hashes you expected to match are different, look for invisible differences in the text first.
The algorithms differ in output size. MD5 produces 128 bits, shown as 32 hexadecimal characters. SHA-1 produces 160 bits, shown as 40 characters. SHA-256 produces 256 bits, shown as 64 characters, and SHA-512 produces 512 bits, shown as 128 characters. Longer hashes make accidental matches far less likely and are harder to attack.
A hash cannot be turned back into the original text, so it is not a way to hide something you need to read later. For anything security related, prefer SHA-256 or SHA-512. MD5 and SHA-1 have known weaknesses and should only be used as simple checksums for catching accidental changes.
Never store passwords as a plain fast hash. Real systems use salted, deliberately slow password hashing such as bcrypt or Argon2. This tool is for learning, checking and comparing values, not for protecting accounts.
Which hash algorithm should I use?
SHA-256 is the standard choice today for anything security-related. MD5 and SHA-1 are still useful for quick checksums (like verifying that a downloaded file wasn't corrupted; this tool hashes pasted or typed text only, not files) but are considered cryptographically broken and shouldn't be used to protect sensitive data.
Can a hash be reversed back into the original text?
No — hashing is one-way by design. The same input always produces the same hash, but you can't recover the original text from the hash itself.
Why would two different files have the same hash?
This is called a collision, and it's astronomically unlikely with SHA-256 or SHA-512. It's more plausible (though still rare) with the older MD5 and SHA-1 algorithms, which is part of why they're no longer considered secure.