🔑
Hash Generator
MD5, SHA-1, SHA-256, SHA-384, SHA-512 · text or files · HMAC · check a hash
Ctrl+Enter = hash
SHA-256 & MD5 Hash Generator
Free online hash generator. Hash text or a file with MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at once, create HMACs with a secret key, and paste an expected hash to check it matches — handy for verifying downloads. SHA hashes use the browser's native Web Crypto API; MD5 is computed in the page.
Free
No login
100% browser-based
Your input never leaves your device
📖 Quick reference: Hash algorithms cheat sheet — MD5 vs SHA-256, test values, HMAC and file checksum commands.
What is a SHA-256 Generator?
SHA (Secure Hash Algorithm) is a family of cryptographic hash functions standardised by NIST. A hash function takes any input and produces a fixed-length output (digest) that is deterministic, fast to compute, and practically impossible to reverse. SHA-256 produces a 256-bit (64 hex character) digest and is the backbone of TLS certificates, Bitcoin, and code-signing pipelines worldwide.
This tool generates MD5, SHA-1, SHA-256, SHA-384 and SHA-512 digests of text or files, plus HMACs, using the browser's native SubtleCrypto API (MD5 is computed in the page). No data leaves your machine. Use it to verify file integrity, check webhook signatures, or explore how hashing works.
Can I reverse a SHA hash?
No. SHA is a one-way function — it's mathematically infeasible to reverse. This is by design for security. What attackers use instead are rainbow tables: precomputed databases of common password hashes.
Which SHA should I use — SHA-1, SHA-256, or SHA-512?
SHA-1 is deprecated for security use due to collision vulnerabilities. SHA-256 is the current standard — use it for checksums, signatures and HMACs. SHA-512 gives a longer hash and is often faster on 64-bit machines. For passwords, use none of these directly: use Argon2 or bcrypt.
Is this hash generator private?
Yes. Hashing runs entirely in your browser (the Web Crypto API for SHA and HMAC, in-page code for MD5). Your text and files never leave your device.
What is the difference between SHA-1, SHA-256, and SHA-512?
SHA-1 produces a 160-bit (40 hex) hash and is cryptographically broken — do not use for security. SHA-256 produces a 256-bit (64 hex) hash and is the current standard for most security applications. SHA-512 produces a 512-bit (128 hex) hash — often faster than SHA-256 on 64-bit CPUs, and used when a longer hash is wanted. For new applications always use SHA-256 or SHA-512.
Which algorithms does this tool support?
MD5, SHA-1, SHA-256, SHA-384 and SHA-512, for text or files (up to 500 MB), each as hex or Base64. It can also make an HMAC with a secret key, and check a file or text against a hash you paste in. MD5 and SHA-1 are included for checksums and older systems only — don't use them for security.
What is SHA hashing used for?
File integrity verification (checksums), digital signatures, certificate fingerprints, Git commit IDs, API request signing (HMAC-SHA256), and storing non-sensitive identifiers. Do NOT use raw SHA for password storage — use bcrypt or Argon2 instead.
What is the difference between SHA and MD5?
MD5 produces a 128-bit hash and has known collision vulnerabilities — two different inputs can produce the same hash. SHA-256 has no known collisions and is significantly more secure. MD5 is still used for non-security checksums (e.g. file download verification) where speed matters and collision resistance is not critical.