Free online hash generator. Compute MD5, SHA-1, SHA-256, SHA-512, SHA-3, bcrypt and HMAC from text or files — all in your browser, nothing uploaded.
By Inventive HQ
This hash generator computes MD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA-3 and bcrypt from the same input, side by side, so you can compare digests without opening a different tool for each algorithm. Type or paste text, or drop in one or more files, and every algorithm you have ticked produces its digest immediately. Everything runs in your browser — no text and no file contents are transmitted anywhere, which matters when the thing you are hashing is a password candidate, a config file or a sample of suspected malware.
Beyond straight hashing, the tool includes HMAC mode for keyed digests, a hash identifier that works out what algorithm produced an unknown digest, a comparison view for checking a computed hash against an expected value, batch file hashing, a session history of previous results, upper/lowercase output, and a use-case selector that recommends the right algorithm for password storage, file integrity, digital signatures, HMAC authentication or legacy compatibility.
Digest length is the quickest way to narrow down an unknown hash, and the security column is the quickest way to decide whether you should still be using one.
| Algorithm | Output | Hex characters | Status | Reasonable use today |
|---|---|---|---|---|
| MD5 | 128-bit | 32 | Broken — practical collisions since 2004 | Non-security checksums, malware sample IDs, matching legacy records |
| SHA-1 | 160-bit | 40 | Broken — SHAttered collision, 2017 | Legacy interop only; never for signatures |
| SHA-256 | 256-bit | 64 | Secure | The default choice: integrity, signatures, certificates, blockchain |
| SHA-384 | 384-bit | 96 | Secure | Truncated SHA-512; common in TLS cipher suites |
| SHA-512 | 512-bit | 128 | Secure | Faster than SHA-256 on 64-bit CPUs; larger margin |
| SHA-3 (256-bit) | 256-bit | 64 | Secure | Different internal design (sponge construction) from the SHA-2 family |
| bcrypt | 184-bit encoded | 60-char $2a$ string | Secure and deliberately slow | Password storage — and only password storage |
A worked example makes the length rule concrete. Hashing the string hello with MD5 gives 5d41402abc4b2a76b9719d911017c592 — 32 hex characters. The same input through SHA-1 gives 40 characters, through SHA-256 gives 64, and through SHA-512 gives 128. bcrypt looks nothing like the others: it produces a self-describing string such as $2a$10$... where 2a is the variant and 10 is the cost factor, and it embeds a random salt, so hashing the same password twice deliberately yields two different strings.
No — and this is worth stating plainly, because “md5 to sha256 converter” is one of the most common things people search for. A hash is a one-way function. An MD5 digest is 128 bits of output derived from input of any size; the original input is not recoverable from it, so there is nothing to feed into SHA-256. The only way to obtain the SHA-256 of some data is to have the data itself.
What people usually want is one of two things. Either they have the original text and need both digests — in which case tick MD5 and SHA-256 together here and you get both from one input. Or they have inherited a system storing MD5 password hashes and need to migrate it to something modern. The migration pattern for that is to hash on next login: when a user authenticates successfully against the stored MD5, recompute the password with bcrypt, store the new hash, and drop the old one. There is no bulk conversion path, by design.
This is a generator, not a cracker. It computes digests forward; it does not reverse them, and it does not run dictionary or rainbow-table lookups. That distinction matters because the two are often conflated. A rainbow table is a precomputed structure that trades storage for time to reverse unsalted hashes, which is precisely why every serious password hashing scheme adds a per-user salt — a salt makes precomputation worthless, since the attacker would need a separate table per salt value.
If your goal is threat intelligence rather than cracking, compute a file’s SHA-256 here and then check it against known-malware corpora using the hash lookup tool. If you want to work out what algorithm an unknown digest came from before doing anything else with it, the built-in hash identifier reads the length and format and reports the candidates with a confidence rating — and for a bcrypt string it can verify a candidate password directly.
The single most common mistake is using a fast general-purpose hash for passwords. MD5, SHA-1 and the whole SHA-2 family are designed to be fast, which is exactly what an attacker with a GPU wants: billions of guesses per second. bcrypt is designed to be slow and to have a tunable cost factor, so you can raise the work per guess as hardware improves. For password storage, choose bcrypt (this tool uses a cost factor of 10) or an equivalent adaptive function.
For everything else, the fast hashes are correct. File integrity and checksums, deduplication, content addressing, digital signature input, and certificate fingerprints all want SHA-256. Use HMAC — not a plain hash of key concatenated with message — whenever you are authenticating a message with a shared secret, because naive concatenation is vulnerable to length-extension attacks against SHA-2. If you need subresource integrity attributes for a script or stylesheet tag, the dedicated SRI hash generator produces the base64 format browsers expect.
Cryptographic hash functions are mathematical algorithms that convert input data of any size into a fixed-size string of characters, called a hash or digest. These functions are fundamental to modern cybersecurity and are used in:
These properties make hash functions essential security tools, but different algorithms provide varying levels of security and performance.
MD5 (128-bit)
SHA-1 (160-bit)
SHA-256 (256-bit)
SHA-512 (512-bit)
SHA-3 (256-bit)
bcrypt
scrypt
Never use general-purpose hash functions (MD5, SHA-256) for password storage - always use specialized password hashing algorithms with proper salting and work factors.
File hashing is a cornerstone of malware analysis and incident response. Security researchers and analysts use cryptographic hashes to:
Every malware sample has a unique hash fingerprint (unless it's polymorphic). When you hash a suspicious file, you can:
Several free services accept file hashes for malware lookup:
VirusTotal
MalwareBazaar (abuse.ch)
Hybrid Analysis
Use Multiple Algorithms
Understand Limitations
Combine with Behavior Analysis
Privacy Considerations
When investigating a suspicious file:
Hash-based detection remains an essential tool for security teams, but it must be combined with modern techniques like behavioral analysis and machine learning to catch evolving threats.
HMAC (Hash-based Message Authentication Code) combines a cryptographic hash function with a secret key to provide both data integrity and authentication.
Regular Hash
HMAC
API Authentication
Cookie Integrity
Message Authentication
HMAC is not suitable for password hashing - use bcrypt, scrypt, or Argon2 instead.
Yes, it is free with no registration, and it runs entirely in your browser. Once the page has loaded, the hashing itself needs no network connection.
No. Text and file contents are hashed locally in JavaScript and never transmitted. Files are read with the browser’s File API and stay on your machine.
Yes — that is the point of the algorithm selector. Select All ticks every supported algorithm, so a single input produces MD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA-3 and bcrypt together.
No. Hashing is one-way and this tool only computes hashes. Nothing here reverses a digest or performs dictionary lookups.
Paste it into the hash identifier. A 32-character hex string points to MD5 or NTLM, 40 to SHA-1 or RIPEMD-160, 64 to SHA-256 or SHA-3-256, 128 to SHA-512, and a string beginning $2a$, $2b$ or $2y$ is bcrypt.
Because bcrypt generates a fresh random salt each time and stores it inside the output string. That is correct behaviour — verification works by extracting the salt from the stored hash and re-running the function, which the tool’s verify field does for you.
Only where an adversary is not involved. It remains fine as a fast checksum for accidental corruption and as an identifier for malware samples, because incident response corpora are indexed by it. It is unsafe for passwords, signatures, or any case where someone might deliberately construct a collision.
HMAC combines a hash function with a secret key to produce a digest only holders of the key can compute. Use it for API request signing and webhook verification. Switch on HMAC mode and enter your secret to produce HMAC-SHA-256 and the other keyed variants.
Yes. Select or drag in several files and each is hashed in turn with a per-file progress indicator, with results grouped by file.
Not cryptographically; they represent the same bytes. It matters only for string comparison, which is why the output format toggle exists — set it to match whatever value you are checking against.
Generate an MD5 hash from text or a file in your browser, and verify a download against its published checksum.
Identify the algorithm behind a hash and get the matching hashcat mode and John the Ripper format. Recognises MD5, the SHA family, bcrypt, NTLM, NetNTLMv2 and Unix crypt formats. 100% client-side.
Drag in a file to hash it locally (SHA-256/SHA-1, nothing uploaded), or paste MD5/SHA-1/SHA-256 hashes — single or in bulk — and check them against known malware with VirusTotal & MalwareBazaar deep-links.
Generate Subresource Integrity (SRI) hashes for JavaScript and CSS files. Create SHA-256, SHA-384, and SHA-512 hashes for CDN security and integrity verification.