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.

Where this actually gets used: verifying a download (compare the hash here against the SHA256SUMS/.sha256 the publisher lists, to confirm an ISO, installer, or archive wasn't corrupted or tampered with in transit); deduplication (two files with the same hash are byte-for-byte identical, so hashing is a fast way to spot duplicates without a full comparison — this is how the image gallery tool on this site detects re-uploaded images, for example); detecting whether something changed (hash a config file or build output before and after a step, and a differing hash means something moved); and Git internals (every commit and blob in a Git repo is identified by a SHA hash of its contents). One important thing this tool is not for: hashing passwords. A plain hash like these is fast by design, which is exactly wrong for passwords — a leaked password database hashed with plain SHA-256 can be brute-forced at billions of guesses per second; real password storage needs a slow, salted algorithm like bcrypt, scrypt, or Argon2 instead.


ℹ️ 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": "..."}.

🤖 Use this API as a Claude Skill

Want an AI agent (Claude Code, claude.ai, or anything else that supports the Agent Skills format) to use this tool for you on request? Download the skill below and add it:

⬇️ Download SKILL.md · View raw