Hash Generator
Compute MD5, SHA-1, SHA-256, or SHA-512 hashes from any text — instantly, in your browser. Nothing is ever uploaded.
Algorithm
SHA-256 hash
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Hashing runs entirely in your browser — your text never leaves your device. SHA-1, SHA-256, and SHA-512 use the built-in
crypto.subtle.digest Web Crypto API. MD5 is computed with a self-contained pure-JS implementation.How it works
- Choose a hashing algorithm: MD5, SHA-1, SHA-256, or SHA-512.
- Type or paste your text into the input. The hash updates live as you type.
- Copy the resulting lowercase hex hash with the copy button. SHA hashes use the browser's built-in
crypto.subtle.digest; MD5 uses a pure-JS implementation.
Frequently asked questions
- What is a hash?
- A cryptographic hash function takes arbitrary input and produces a fixed-size string of characters. The same input always produces the same output, but even a tiny change in the input produces a completely different hash. Hashes are one-way — you cannot reverse them to get the original text.
- Which algorithm should I use?
- Use SHA-256 or SHA-512 for security-sensitive applications (passwords, signatures, integrity checks). MD5 and SHA-1 are considered cryptographically broken and should only be used for non-security purposes like checksums or legacy compatibility.
- Is MD5 secure?
- No. MD5 has known collision vulnerabilities, meaning two different inputs can produce the same hash. It should not be used for passwords, digital signatures, or any security-critical purpose. Use SHA-256 or SHA-512 instead.
- How is MD5 computed here without Web Crypto?
- The Web Crypto API (crypto.subtle) only supports the SHA family. MD5 is implemented here as a self-contained, pure-JavaScript function based on the RFC 1321 specification — it runs entirely in your browser with no server involvement.
- Can I hash files?
- This tool hashes text input. For file hashing (to verify downloads or check integrity), you would typically use a command-line tool like sha256sum on Linux/macOS or CertUtil on Windows.