Illustration of text and a file both producing MD5, SHA-1, SHA-256, and SHA-512 hash digests

Hash Text/File

Paste text or choose a file to compute MD5, SHA-1, SHA-256, and SHA-512. Runs entirely in your browser — nothing is ever uploaded.


ℹ️ About these hashes
  • MD5 and SHA-1 are broken for security purposes (collisions are practical) — still fine for checksums/deduplication, never for passwords or signatures. SHA-256/SHA-512 are the current standards for anything security-sensitive.
  • MD5 isn't part of the browser's Web Crypto API (deliberately, since it's insecure) — this page implements it directly per RFC 1321, verified against the standard test vectors. SHA-1/256/512 use the browser's native crypto.subtle.digest().
  • Runs entirely client-side — nothing you type or upload here is ever sent anywhere. The JSON API below is a separate, opt-in endpoint for scripts.
💻 Show API usage examples (cURL)
curl -sS -X POST https://devops.majbase.com/hash-generator/api -F "text=hello world"
curl -sS -X POST https://devops.majbase.com/hash-generator/api -F "file=@document.pdf"

Returns {"md5", "sha1", "sha256", "sha512"}, or {"error": "..."}.