Hash Generator Pro
Generate MD5, SHA-1, SHA-256, SHA-384, SHA-512 hashes from text or files. HMAC authentication codes. Bulk hashing. Hash verification. Real-time generation as you type. All runs in your browser — local browser processing.
How to use hash generation and file verification
A cryptographic hash maps input data to a fixed-length digest. It can help compare files or detect accidental changes, but a matching hash is only useful when the reference digest comes from a trustworthy source.
Step by step: how to use the tool
- Choose which algorithms to show: MD5, SHA-1, SHA-256, SHA-384 or SHA-512.
- Type or paste your text. The hashes update as you type. Use the file option to hash a file.
- Copy the hash you need.
- To verify a download, paste the published hash and compare it with the calculated one.
- Use the HMAC option when you need a hash that also depends on a secret key.
How to use the generator
Choose a supported algorithm, enter text or select a file, and copy the resulting digest. To verify a download, calculate the hash of the downloaded file and compare it with a digest published through a trusted, independent channel. The input must be exactly the same: even a one-byte change normally produces a different digest.
Choosing an algorithm
MD5 and SHA-1 are no longer suitable for security-sensitive collision-resistance uses. SHA-256 and stronger modern algorithms are preferred for general integrity checks. HMAC combines a hash function with a secret key to authenticate data when the key is managed correctly; a plain hash does not prove who created the data.
What a hash cannot prove
A matching digest does not prove that a file is harmless, that the publisher is trustworthy, or that the reference digest has not been replaced. Malware can be hashed too. Use digital signatures, trusted distribution channels, antivirus or sandbox analysis, and other controls where appropriate.
Password storage warning
Do not store passwords by hashing them once with MD5, SHA-1, or a general-purpose SHA function. Password storage should use a dedicated password-hashing scheme such as Argon2id, scrypt, bcrypt, or PBKDF2 with salts and suitable work factors. This page is a utility for general hashing and verification, not a password-storage system.
Frequently asked questions
- Is MD5 safe for passwords?
- No. MD5 is fast and has known collision weaknesses. Use a dedicated password-hashing algorithm for password storage.
- Does a matching hash prove a download is safe?
- No. It shows the file matches the supplied digest, assuming the comparison is accurate; it does not establish that the file is benign.
- What is HMAC?
- HMAC uses a secret key and a hash function to authenticate a message. Keep the key confidential and use a modern, appropriate algorithm.
- Can a hash be reversed to recover the original text?
- A hash is designed as a one-way function, so it cannot be mathematically reversed. Short or common inputs can still be guessed by comparing against precomputed lists, which is why unsalted MD5 is unsuitable for passwords. Longer random inputs are far harder to recover.
Known test values and when to use which hash
You can check any hash tool against published test values:
| Input text | MD5 |
|---|---|
| (empty) | d41d8cd98f00b204e9800998ecf8427e |
| hello | 5d41402abc4b2a76b9719d911017c592 |
The SHA-256 of "hello" begins 2cf24dba5fb0a30e. Hashes are case-sensitive in the input: "Hello" gives a completely different MD5 (8b1a9953…).
Choosing a hash
- MD5 and SHA-1: acceptable for spotting accidental corruption or matching a published checksum, but collisions can be manufactured, so do not use them for security.
- SHA-256 and SHA-512: appropriate for integrity checks where tampering matters.
- Passwords: never store them with plain MD5 or SHA. Use a purpose-built slow algorithm such as Argon2, bcrypt or scrypt with a unique salt.
Verifying a download
Compute the file's hash, compare it character by character with the value the publisher lists, and obtain that value from a trusted page. A matching hash only helps if the reference value itself is trustworthy.
Sources and standards
- RFC 1321: The MD5 Message-Digest Algorithm; FIPS 180-4: Secure Hash Standard (SHA-1, SHA-256, SHA-384, SHA-512); RFC 2104: HMAC.
- Results are checked against the published test values, for example the MD5 of the empty string, d41d8cd98f00b204e9800998ecf8427e.
Related tools
Last reviewed: October 17, 2026. Informational reference only; see the About page for our methods and limits.