Hash Generator
Generate cryptographic hashes locally — MD5, SHA-1, SHA-256, SHA-384, SHA-512
Input
Hash Output
Hash output will appear here
About Hash Generator
A cryptographic hash function turns any input into a fixed-length fingerprint. The same input always gives the same hash, a tiny change in the input produces a completely different hash, and the original cannot be recovered from the hash.
This tool computes MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes in your browser. SHA-256 and the larger SHA-2 variants are the usual choice for integrity checks. MD5 and SHA-1 are considered broken for security purposes and should only be used for non-security tasks such as legacy checksums.
Common use cases
- Verifying that a downloaded file or string matches a published checksum.
- Producing a deterministic fingerprint for cache keys or deduplication.
- Comparing hashes from two systems while debugging a mismatch.
- Generating test vectors for code that computes hashes.
Frequently asked questions
- Can a hash be reversed?
- No. Hashing is one-way. Short or common inputs can still be guessed by trying many candidates, which is why passwords need a slow, salted hash such as bcrypt or Argon2 rather than plain SHA.
- Which algorithm should I pick?
- Use SHA-256 for most integrity needs. Avoid MD5 and SHA-1 where security matters.
- Why is my hash different from another tool's?
- Usually the input differs by whitespace, a trailing newline, or character encoding. Hashes change if even one byte changes.