Hash Generator
Hash any text with MD5, SHA-1, SHA-256, SHA-512 — instantly, client-side.
| MD5 | ||
| SHA-1 | ||
| SHA-256 | ||
| SHA-512 |
About Hash Generator
Computes a hash of any input text using MD5, SHA-1, SHA-256, or SHA-512. Useful for verifying file or data integrity by comparing a computed hash against a published checksum. MD5 and SHA-1 are both cryptographically broken and unsuitable for anything security-sensitive like password storage, but remain fine for non-adversarial integrity checks. None of these algorithms — including SHA-256/512 — are appropriate for hashing passwords directly; that requires a purpose-built algorithm like bcrypt or Argon2 that's deliberately slow to resist brute-force attempts.
Any change to the input, even a single character, produces a completely different hash — there's no such thing as a "close" match, which is exactly why hashes work for integrity checks but not for finding near-duplicate content.
Related Tools
Which algorithm to choose
| Algorithm | Output | Status |
|---|---|---|
| MD5 | 128 bit, 32 hex chars | Broken: collisions are easy. Fine only for non-security checks. |
| SHA-1 | 160 bit, 40 hex chars | Broken: practical collisions since 2017. Legacy only. |
| SHA-256 | 256 bit, 64 hex chars | Current standard for checksums and signatures. |
| SHA-512 | 512 bit, 128 hex chars | Also current; often faster than SHA-256 on 64-bit CPUs. |
Why your hash doesn't match
- A trailing newline:
echo "abc" | sha256sumhashes "abc\n". Useprintf %s "abc" | sha256sumorecho -n. - Different encoding: text is hashed here as UTF-8. Windows tools that use UTF-16 give a different result for the same characters.
- Windows line endings: CRLF vs LF changes every line.
- Upper vs lower case hex: same value, but string comparison fails.
Checking a downloaded file
This tool hashes text. For files, use the system tool and compare with the published checksum:
- Linux:
sha256sum file.iso - macOS:
shasum -a 256 file.iso - Windows:
certutil -hashfile file.iso SHA256or PowerShellGet-FileHash file.iso
Privacy
The hash is computed in your browser: SHA functions use the Web Crypto API, MD5 runs in local JavaScript. The text is not sent to our server.