Skip to content

Hash Generator

Mode
Result —
Algorithm
—
Digest size (bits)
—
Input bytes
—

Type text, pick an algorithm and the hex digest appears at once. MD5 of "abc" is 900150983cd24fb0d6963f7d28e17f72 and SHA-256 of "abc" begins ba7816bf. Other modes sign a message with HMAC, build a salted bcrypt or Argon2id password hash, and check a password against a stored $2b$ or $argon2id$ string.

About this tool

Developers reach for a digest when they compare a download against a published checksum, debug a webhook signature, seed a test fixture with a known password hash or audit an old database column. This page runs the hash-wasm engine inside your browser, so the text and keys you type are processed on your device. The Hash text mode covers MD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA3-256, SHA3-512, CRC32 and the Windows NTLM hash. HMAC mode signs a message with a secret key. Password hash mode builds bcrypt (cost 4 to 12) or Argon2id at the OWASP baseline of 19 MiB memory and 2 passes, and Verify mode tells you whether a password matches a stored hash. MD5 and SHA-1 have practical collision attacks and are unfit for security; store passwords only with bcrypt or Argon2. Hashing files is not supported here, only typed text.

How to use it

  1. Pick a mode

    Hash text, HMAC, Password hash or Verify password; each mode shows only its own fields.

  2. Enter the input

    Type the text, message and key, or password. Text is read as UTF-8, so accents and emoji change the bytes and the digest.

  3. Choose the algorithm

    Select the digest, the HMAC hash function, or bcrypt versus Argon2id with the cost stepper for bcrypt.

  4. Read and copy the result

    The hex digest or encoded hash shows with its size in bits, the input byte count and the working steps.

Examples

MD5 of "abc"

Mode
Hash text
Text to hash
abc
Algorithm
MD5
Message
what do ya want for nothing?
Secret key
Jefe
Hash function
SHA-256
Password
correct horse
Scheme
bcrypt
bcrypt cost
10
Password to check
abc
Stored hash
$2a$06$If6bvum7DFjUnE9p2uDeDu0YHzrHM6tf.iqN8.yx.jNN1ILEf7h0i

Result Result: 900150983cd24fb0d6963f7d28e17f72
Algorithm: MD5
Digest size (bits): 128
Input bytes: 3

  1. Text encoded as UTF-8: 3 bytes
  2. MD5 digest computed
  3. Output: 32 hex characters = 128 bits

The RFC 1321 reference vector; any correct MD5 implementation prints this exact 32-character digest.

HMAC-SHA-256, key "Jefe"

Mode
HMAC
Text to hash
abc
Algorithm
SHA-256
Message
what do ya want for nothing?
Secret key
Jefe
Hash function
SHA-256
Password
correct horse
Scheme
bcrypt
bcrypt cost
10
Password to check
abc
Stored hash
$2a$06$If6bvum7DFjUnE9p2uDeDu0YHzrHM6tf.iqN8.yx.jNN1ILEf7h0i

Result Result: 5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843
Algorithm: HMAC-SHA-256
Digest size (bits): 256
Input bytes: 28

  1. Key: 4 bytes; message: 28 bytes (UTF-8)
  2. HMAC = H((K ⊕ opad) ‖ H((K ⊕ ipad) ‖ message)) with H = SHA-256
  3. Result: 64 hex characters = 256 bits

RFC 4231 test case 2, the standard check that an HMAC library pads a short key correctly.

bcrypt hash at cost 10

Mode
Password hash
Text to hash
abc
Algorithm
SHA-256
Message
what do ya want for nothing?
Secret key
Jefe
Hash function
SHA-256
Password
correct horse
Scheme
bcrypt
bcrypt cost
10
Password to check
abc
Stored hash
$2a$06$If6bvum7DFjUnE9p2uDeDu0YHzrHM6tf.iqN8.yx.jNN1ILEf7h0i

Result Result: $2a$10$kVJYowwEPX9bcB9fti2we.RHJoKnq0WI8NCR7JT04NlygHNjawLDy
Algorithm: bcrypt, cost 10
Digest size (bits): 184
Input bytes: 13

  1. Random 16-byte salt drawn for this run
  2. Key setup repeated 2^10 = 1024 times
  3. Encoded as $2b$10$ + 22-char salt + 31-char hash

A fresh salt is drawn each run, so the 60-character string differs every time while still verifying against the same password.

Check a published bcrypt hash

Mode
Verify password
Text to hash
abc
Algorithm
SHA-256
Message
what do ya want for nothing?
Secret key
Jefe
Hash function
SHA-256
Password
correct horse
Scheme
bcrypt
bcrypt cost
10
Password to check
abc
Stored hash
$2a$06$If6bvum7DFjUnE9p2uDeDu0YHzrHM6tf.iqN8.yx.jNN1ILEf7h0i

Result Result: Match
Algorithm: bcrypt
Digest size (bits): 184
Input bytes: 3

  1. Read the salt and cost from the stored bcrypt string
  2. Re-hash the password with those settings
  3. The new hash equals the stored one

The password "abc" against a cost-6 test vector from the jBCrypt suite; the tool reads cost and salt from the string itself.

How it is calculated

digest = H(UTF-8 bytes of text); HMAC = H((K ⊕ opad) ‖ H((K ⊕ ipad) ‖ m)); NTLM = MD4(UTF-16LE password)

H
K
m

Each digest is a fixed-length fingerprint: 128 bits for MD5, 256 for SHA-256, 512 for SHA-512, printed as lowercase hex. HMAC follows RFC 2104, nesting two hash calls around the key XOR-ed with the inner and outer pad constants. bcrypt repeats its Blowfish key setup 2^cost times with a random 16-byte salt and prints a 60-character $2b$ string. Argon2id (RFC 9106) fills 19456 KiB of memory twice per run, which makes GPU guessing expensive, and prints a PHC string carrying its own salt and parameters. Verify mode reads those parameters back from the stored string, re-hashes the candidate and compares.

Sources

When not to use it

  • Do not store passwords as MD5, SHA-1 or plain SHA-256; use the bcrypt or Argon2id mode.
  • It cannot hash files or binary data, only text typed or pasted into the box.
  • CRC32 detects accidental corruption but offers no protection against deliberate tampering.

Common mistakes

  • A trailing newline or space changes the whole digest, so text copied from a terminal often fails to match.
  • Expecting a fixed bcrypt or Argon2 output: a new salt each run gives a different string that still verifies.
  • Swapping the HMAC key and message, which produces a valid-looking but wrong signature.
  • Comparing an uppercase hex digest to a lowercase one as text and calling it a mismatch.

Frequently asked questions

How do I generate a bcrypt hash of a password?

Open Password hash mode, keep the scheme on bcrypt, type the password and set the cost. Cost 10 runs 1,024 rounds of the Blowfish key setup and is the default in most frameworks, including Laravel and Node's bcrypt package. The output is a 60-character string such as $2b$10$ followed by a 22-character salt and a 31-character hash. bcrypt accepts at most 72 bytes of password; longer passphrases need Argon2id.

How do I get the MD5 hash of a string?

Choose Hash text, pick MD5 and type the string. The result is 32 hex characters; "abc" gives 900150983cd24fb0d6963f7d28e17f72, the RFC 1321 test value. MD5 is still fine as a quick checksum, but collisions can be produced on a laptop, so it must not protect passwords or signatures.

Can an MD5 hash be decrypted back to the text?

No. A hash is one-way: it discards information, so there is no key that reverses it. Sites that claim to decrypt MD5 look the digest up in tables of hashes of common words and leaked passwords. That is why unsalted MD5 password columns are cracked so quickly, and why bcrypt and Argon2 add a random salt and deliberate slowness.

What does a SHA-256 hash generator output?

A 256-bit digest written as 64 lowercase hex characters. For the three bytes "abc" it is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad, the worked example in NIST FIPS 180-4. Any change to the input, even one letter's case, gives an unrelated digest.

How do I create an HMAC SHA256 signature?

Switch to HMAC mode, paste the exact message body, enter the shared secret as the key and pick SHA-256. With key "Jefe" and message "what do ya want for nothing?" the result is 5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843, matching RFC 4231 test case 2. Webhook providers usually sign the raw request body, so reformatted JSON will not match.

How is an NTLM hash generated from a password?

Windows encodes the password as UTF-16LE, two bytes per character, and takes the MD4 digest of those bytes; there is no salt. "password" therefore always becomes 8846f7eaee8fb117ad06bdd830b7586c. Because it is unsalted and fast, NTLM hashes are easy to crack offline and to reuse in pass-the-hash attacks.

What does an Argon2 hash example look like?

Argon2id output is a PHC string like $argon2id$v=19$m=19456,t=2,p=1$ then the base64 salt and base64 tag, separated by $. The fields give the version (19 = 1.3), memory in KiB, passes and lanes. Password hash mode uses exactly those OWASP baseline settings with a 32-byte tag.

How do I check a password against a bcrypt hash?

Use Verify password mode: enter the candidate password and paste the stored $2a$, $2b$ or $2y$ string. The tool reads the cost and salt from the hash, re-hashes the password and reports Match or No match. Argon2 PHC strings are accepted in the same box.

Cite this tool

Using this tool in an assignment, article or report? Copy a citation, or a link for your website.

APA

Tools Directory Editorial Team. (2026, December 1). Hash Generator. Tools Directory. Retrieved December 1, 2026, from https://directory.milunir.com/developer-tools/passwords-and-hashes/hash-generator/

MLA

Tools Directory Editorial Team. “Hash Generator.” Tools Directory, 1 Dec. 2026, https://directory.milunir.com/developer-tools/passwords-and-hashes/hash-generator/. Accessed 1 Dec. 2026.

Chicago

Tools Directory Editorial Team. “Hash Generator.” Tools Directory. Last modified December 1, 2026. Accessed December 1, 2026. https://directory.milunir.com/developer-tools/passwords-and-hashes/hash-generator/.

Link<a href="https://directory.milunir.com/developer-tools/passwords-and-hashes/hash-generator/">Hash Generator – Tools Directory</a>