Hash generator
| Algorithm | Digest |
|---|
About this tool
This tool hashes text with four algorithms at once: MD5, SHA-1, SHA-256, and SHA-512. Type or paste text and it computes all four hashes over the UTF-8 bytes as you type, each shown as lowercase hex with a copy button next to it.
Everything runs in your browser. SHA-1, SHA-256, and SHA-512 come from the Web Crypto API; MD5 is computed with a small JavaScript library, since browsers don’t implement it natively. Nothing you type is sent to a server or stored anywhere. Note that MD5 and SHA-1 are broken for security use: both have known collision attacks, so they shouldn’t protect passwords, sign anything, or verify that a file hasn’t been tampered with by an attacker. They’re still fine for checksums and deduplication, where you just need to compare two pieces of data quickly.
Common uses: checking that a download or copied file matches its published checksum, generating cache keys or content-addressed identifiers, spotting duplicate text or records, or working out what hash a piece of code produces for a given input while debugging. For anything security-sensitive, like storing passwords or verifying signatures, use SHA-256 or SHA-512 instead. See MDN’s SubtleCrypto.digest() reference for how the WebCrypto hashes are computed.