Hash Generator — MD5, SHA-1, SHA-256, SHA-512
Paste any text to instantly generate its MD5, SHA-1, SHA-256, and SHA-512 hash values. Useful for verifying file integrity, storing passwords securely, creating checksums, and debugging cryptographic workflows. All hashing runs locally in your browser — your input is never transmitted anywhere.
Hash algorithm digest sizes and status
Every hex character carries 4 bits, so the digest length follows directly from the output size. SHA-1 lost its standing in 2017, when Google's SHAttered project produced a practical collision. SHA-256 processes 32-bit words while SHA-512 works on 64-bit words, which is why SHA-512 can hash more bytes per second on a 64-bit CPU.
| Algorithm | Output | Status | Reasonable use |
|---|---|---|---|
| MD5 | 128 bits, 32 hex | Collisions demonstrated | Spotting accidental corruption when no attacker is involved |
| SHA-1 | 160 bits, 40 hex | Deprecated since SHAttered | Reading legacy Git objects and old SSH host fingerprints |
| SHA-256 | 256 bits, 64 hex | No practical attacks known | Default for checksums, HMAC, JWT and TLS certificates |
| SHA-512 | 512 bits, 128 hex | No practical attacks known | Systems that require it, long-term archival signing |
Why a plain SHA hash is wrong for passwords
General-purpose hashes are built to be fast, and speed helps an attacker guessing millions of candidate passwords. Even SHA-512 is too quick for this job. Password storage calls for a deliberately slow function such as bcrypt, scrypt or Argon2.
Frequently asked questions
- Why does my hash not match the one from sha256sum?
- The inputs differ by bytes you cannot see. The tool hashes the text in the box exactly, as UTF-8 and without a final newline, while echo abc | sha256sum also hashes the line break: abc gives ba7816bf here and edeaaff3 there. Use printf or echo -n instead.