Hash Generator (MD5, SHA-1, SHA-256, SHA-512)

Compute cryptographic hashes from any text.

Compute MD5, SHA-1, SHA-256 and SHA-512 hashes of any input string. Hashes are computed locally using the Web Crypto API (and a tiny pure-JS MD5 fallback) — your input never leaves the browser.

Common use cases

  • Verify file integrity by computing a SHA-256 checksum and matching against publisher
  • Generate cache keys, etags or deterministic IDs from input strings
  • Compare an MD5 hash from a download page to verify a file before installation
  • Hash sensitive identifiers for privacy-preserving analytics buckets

Frequently asked questions

Is MD5 still safe?
MD5 is broken for security purposes (collisions are easy to construct), but it's fine for non-security uses like file checksums and cache keys. Use SHA-256 or SHA-512 if you need cryptographic security.
Can I hash binary data?
Yes — drop a file in and the generator hashes the raw bytes, which matches the output of command-line tools like sha256sum or shasum.
Why is the SHA-256 output different from my server's?
Encoding differences: server-side hashes might include a trailing newline, use UTF-16 instead of UTF-8, or hex-encode differently. Match the exact byte sequence to get matching hashes.

Related tools