Hash generator: SHA-256, SHA-512, SHA-1 and MD5

A hash function turns input of any length into a fixed-length digest, so the same input always gives the same hash and any change to the input gives a different one.

Generate SHA-256, SHA-512, SHA-1 and MD5 hashes of any text and check them against an expected checksum. Free, and the text never leaves your browser.

Browser-sideNo accountCopy, download, or print

Hashing remains local to this browser. Use SHA-256 or SHA-512 for modern integrity and security workflows; MD5 and SHA-1 are retained for legacy checksum comparison only.

Last reviewed

Your inputs are saved as a draft in this browser only. Nothing is uploaded.

Jump to result
Interactive workspace

Inputs

Result

More export options

Calculating browser-only cryptographic digests…

How to use it

  1. Paste or type the text you want to hash.
  2. Choose a primary algorithm, or keep Compare algorithms on to see SHA-1, SHA-256, and SHA-512 together.
  3. Optionally paste an expected checksum to check for a match.
  4. Copy the digest in lowercase hex, uppercase hex, or colon-grouped format.

Questions

Which hash algorithms are supported?
SHA-256, SHA-512, SHA-1, and MD5. Choose one as the primary algorithm, or turn on compare to see several digests side by side.
Can I verify a download or file checksum?
Paste the expected checksum and the tool flags whether it matches the digest of your text. Compare in the same format, for example lowercase hexadecimal.
Are MD5 and SHA-1 safe for security?
No. Practical collision attacks exist for both, so use them only to compare against legacy checksums. Use SHA-256 or SHA-512 for anything security-related.
Why does the same text give a different hash in another tool?
Hashes are computed over bytes, so invisible differences change the result: a trailing newline, Windows (CRLF) versus Unix (LF) line endings, or a different text encoding. This tool hashes the UTF-8 bytes of exactly what is in the box.
Is hashing the same as encryption?
No. A hash cannot be reversed to recover the input, and there is no key. Encryption is reversible with the right key. For storing passwords, use a dedicated password hashing function such as bcrypt, scrypt, or Argon2 rather than a plain SHA hash.