What Is a Hash Generator?
A hash generator computes cryptographic digests from any text input. Hash functions are one-way transformations — the same input always produces the same output, but you cannot reverse the hash back to the original text. This tool computes MD5, SHA-1, SHA-256, SHA-384 and SHA-512 simultaneously.
Common Use Cases
Password storage — never store passwords in plaintext, and don't use a fast hash like SHA-256 either: use Argon2id, scrypt or bcrypt (see below). Data integrity — compare file hashes to verify downloads weren't corrupted or tampered with. Digital signatures — hash documents before signing to ensure content hasn't changed. Blockchain — SHA-256 is the foundation of Bitcoin's proof-of-work system.
How to Use This Hash Generator
- Enter your text — Type or paste the text you want to hash into the input field.
- Select the algorithm — All five digests (MD5, SHA-1, SHA-256, SHA-384, SHA-512) are shown at once; use SHA-256 or stronger for anything security-related.
- Generate the hash — The tool computes the hash digest instantly. Each algorithm produces a different-length output.
- Compare hashes — Paste a known hash to compare against the generated hash — useful for verifying file integrity.
Worked example: the outputs checked against test vectors
On October 12, 2026 we typed the standard test inputs into the tool in Chromium and compared every output with Python's hashlib, which implements the algorithms in RFC 1321 (MD5) and FIPS 180-4 (SHA family).
| Input | Tool MD5 (v181) | hashlib MD5 | SHA-1 / 256 / 384 / 512 |
|---|---|---|---|
| "" (empty) | d41d8cd98f00b204e9800998ecf8427e ✓ | d41d8cd98f00b204e9800998ecf8427e | Correct |
| "abc" | 900150983cd24fb0d6963f7d28e17f72 ✓ | 900150983cd24fb0d6963f7d28e17f72 | Correct (FIPS 180-4 test vector) |
| 448-bit FIPS vector "abcdbcdecdef…nopq" | matches ✓ | 8215ef0796a20bcaaae116d3876c664a | Correct |
| "héllo", "😀" (non-ASCII) | matches ✓ | be50e847… / 2a02eac3… | Correct (text encoded as UTF-8) |
| 1,000,000 × "a" | — | — | SHA-256 correct |
- MD5 was fixed in v181. Until then the MD5 field showed 8 wrong hex characters for every input. It now hashes the UTF-8 bytes per RFC 1321 and matched hashlib on 12 test strings in Node (empty, ASCII, accented text, emoji, block-boundary lengths of 55, 56 and 64 bytes, and 1 MB) and on the 6 inputs above in Chromium. For checksums of downloaded files, which this tool cannot read, use
md5sum file(Linux),md5 file(macOS) orGet-FileHash -Algorithm MD5 file(Windows PowerShell). - SHA-1, SHA-256, SHA-384 and SHA-512 are correct. They use the browser's built-in
crypto.subtle.digest()on the UTF-8 bytes of the text, so they matchsha256sumfor the same text. Line endings count: text pasted with Windows CRLF line breaks hashes differently from the same text with LF. - Text only. The tool hashes what is typed in the box; it does not read files. To check a downloaded file, hash the file on the command line and paste the published hash into the compare box only if you are comparing text.
- What "broken" means. Practical MD5 collisions were published in 2005 (Wang and Yu) and the first SHA-1 collision in 2017 (Stevens et al.); NIST has announced SHA-1 will be phased out by December 31, 2030. Collisions let an attacker make two different files with the same hash; they do not let anyone reverse a hash.
- Passwords need a slow hash. OWASP recommends Argon2id, scrypt or bcrypt (with PBKDF2 for FIPS settings) because a single SHA-256 is fast enough to test billions of guesses per second on GPUs.
Sources
Checked on .
- IETF RFC 1321: The MD5 Message-Digest Algorithm
- IETF RFC 6151: Updated Security Considerations for MD5
- NIST FIPS 180-4: Secure Hash Standard (SHA-1, SHA-2)
- NIST (Dec 2022): NIST Retires SHA-1 Cryptographic Algorithm
- Wang, X. and Yu, H. (2005). How to Break MD5 and Other Hash Functions. EUROCRYPT 2005
- Stevens, M. et al. (2017). The First Collision for Full SHA-1. CRYPTO 2017
- OWASP Password Storage Cheat Sheet
- MDN: SubtleCrypto.digest()
Frequently Asked Questions
📖 Learn More
Related Article Password Hashing and Security Guide → Related Article How to Generate SHA-256 Hashes →Built by Derek Giordano · Part of Ultimate Design Tools