MD5 / SHA Hash

Compute MD5, SHA-1, SHA-256, SHA-384, SHA-512 hash (fingerprint) of text

Chars: {{ inputText.length }}
{{ error }}

About Hash

A hash function maps input of any length to fixed-length output (hash value / fingerprint). The same input always yields the same result, while a tiny change produces a wildly different result. It is widely used for data integrity checks, digital signatures, password storage and more.

This tool supports: MD5 (128-bit, no longer recommended for security), SHA-1 (160-bit), SHA-256 / SHA-384 / SHA-512 (SHA-2 family, current security standard). MD5 is implemented in pure frontend by this site; the SHA family uses the browser's native Web Crypto API.

Examples

abc MD5: 900150983cd24fb0d6963f7d28e17f72

abc SHA-256: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

FAQ

Q: MD5 or SHA-256, which to choose?
A: For integrity checks only (e.g. comparing if a file changed accidentally), either works; if security is involved (passwords, tamper-proofing), use SHA-256 or stronger. MD5 has known collision vulnerabilities and is unsuitable for security.
Q: Results differ from another tool?
A: Hash results strictly depend on the input byte sequence. This tool processes text as UTF-8; if another tool uses GBK or another encoding, results differ. Ensure the encoding matches.