Generate SHA-256 Hash Online From Any Text

Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from any text.

SHA-1
SHA-256
SHA-384
SHA-512

Frequently asked questions

Which hash algorithms are supported?

SHA-1, SHA-256, SHA-384, and SHA-512, computed using the browser's native Web Crypto API.

Why isn't MD5 included?

The browser's built-in Web Crypto API does not offer MD5, which is considered cryptographically broken. SHA-256 and the other SHA-2 hashes above are the recommended choice.

Can I hash a file with this tool?

No. It only hashes text typed or pasted into the box, and there is no file picker. A file's checksum needs the file's raw bytes, so it cannot confirm a downloaded installer or document.

Can a hash be turned back into the original text?

No, hashing is one-way. Short or predictable inputs can still be found by hashing guesses until one matches, which is why plain hashes are not enough for passwords.

Which of these algorithms should I use?

SHA-256 is a sensible default for fingerprints and integrity checks; SHA-384 and SHA-512 simply give longer outputs. SHA-1 is here for compatibility with older systems and should not be used where an attacker could craft collisions.

Why do my results differ from a command-line tool or another website?

The usual causes are a hidden trailing newline, different line endings or a different text encoding. This page hashes the UTF-8 bytes of exactly what is in the box, with line breaks as \n.