Hash Generator
A cryptographic hash turns input of any size into a fixed-size fingerprint. The same input always gives the same output; a one-bit change scrambles every output bit; and there is no way to run it backwards. This page exposes the five families you meet in practice:
- MD5 (128-bit, 1992): broken for security, still everywhere as a checksum.
- SHA-1 (160-bit, 1995): collisions demonstrated in 2017; Git and legacy systems only.
- SHA-256 / SHA-512 (SHA-2, 2001): the workhorses of TLS, code signing and Bitcoin.
- SHA-3 (Keccak, 2015): a different internal design chosen as a backup should SHA-2 ever fall.
SHA-1 and SHA-2 use the browser’s built-in crypto.subtle.digest(). MD5 and SHA-3 are not in the Web Crypto API, so they run in a small WebAssembly module loaded only when needed. Files are streamed in 4 MB chunks through an incremental hasher, so a multi-gigabyte ISO never has to fit in memory.
Tick “All algorithms at once” to see how the same input looks under every function, or paste a published checksum into the compare box to verify a download.
What leaves your browser
Text is hashed in memory with the Web Crypto API; files are read in chunks with the File API and hashed in WebAssembly. There is no upload endpoint on this page. Open DevTools → Network and hash something: no request appears.
Which hash should I use?
SHA-256 for integrity checks, signatures and general purpose. bcrypt or Argon2 for passwords, never a plain SHA. MD5 only where a legacy system demands it.
Is SHA-256 secure in 2026?
Yes. No practical attack on collision or preimage resistance exists, and it remains the default in TLS certificates and most signing systems.
Can a hash be decrypted?
No. Hashing is not encryption; there is no key and no inverse function. The only way to find an input is to guess candidates and compare hashes, which is exactly why password hashes must be slow.
Why does the same text give a different hash on another site?
Usually a trailing newline, different line endings, or a different text encoding. Hash the exact bytes and the results agree everywhere.
Can I hash a file larger than my RAM?
Yes. The file is read in chunks and fed to a streaming hasher, so only 4 MB is in memory at any time.