d41d8cd98f00b204e9800998ecf8427eda39a3ee5e6b4b0d3255bfef95601890afd80709e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3ea7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a00000000Hash Generator - MD5, SHA-256, SHA-512, bcrypt & More
Generate MD5, SHA-1, SHA-256, SHA-512, SHA-3, BLAKE2, CRC32 and more (31 algorithms) for text or files at once, with HMAC, hash comparison and checksum verification. Create and verify bcrypt password hashes, derive keys with PBKDF2 and scrypt and identify unknown hashes.
- 100% free
- No sign-up
- Runs in your browser
- 31 algorithms
- Files of any size
- Bcrypt, PBKDF2 & scrypt
What Is a Hash Generator?
A hash generator computes a cryptographic hash (digest) of text or a file: a short, fixed-length fingerprint such as the 64 hex characters of SHA-256. The same input always gives the same hash, a one-character change gives a completely different one and the hash cannot be turned back into the input.
DevBrainiac's Hash Generator is a free online tool that calculates 31 hashes at once, hashes files, creates HMACs, generates and verifies bcrypt hashes and derives keys with PBKDF2 and scrypt.
Key facts
- A hash function turns any input into a fixed-length fingerprint; the same input always gives the same hash.
- This generator computes 31 algorithms at once, including MD5, SHA-1, SHA-2, SHA-3, Keccak-256, BLAKE2, RIPEMD-160, NTLM, CRC32 and xxHash.
- It hashes text (UTF-8, hex or Base64) and files of any size, with HMAC keys and Base64 or hex output.
- It generates and verifies bcrypt password hashes and derives keys with PBKDF2 and scrypt.
- It can compare a hash, verify files against a SHA256SUMS list and identify an unknown hash.
- Everything runs in your browser; nothing you type or open is uploaded.
Last updated:
How to Generate a Hash Online
- Choose what to hash: Use the Text tab for strings or the Files tab for files. Text can be UTF-8, hex bytes or Base64 bytes.
- Pick the algorithms: Start with Popular (MD5, SHA-1, SHA-256, SHA-512, SHA3-256, CRC32), choose a preset such as SHA-2 or All, or tick individual algorithms.
- Add a key for HMAC (optional): Tick Use a secret key to get HMAC-SHA256 and other HMACs; BLAKE2 uses its own keyed mode.
- Copy or compare the result: Hashes update as you type. Copy one or all, switch to uppercase hex or Base64, or paste an expected hash to see which algorithm matches.
- Verify and export: For files, paste a SHA256SUMS list to verify them and download a checksum file of your own.
Hash Generator Features
One free tool that works as an MD5 generator, SHA-256 generator, SHA-512 generator, file checksum calculator, HMAC generator, bcrypt generator and checker and hash identifier.
31 Hash Algorithms at Once
MD5, SHA-1, SHA-224/256/384/512, SHA-512/224 and /256, SHA3, Keccak, SHAKE, BLAKE2b/2s, RIPEMD-160, MD4, NTLM, CRC-16/32, Adler-32, FNV-1a and xxHash.
File Hashing and Checksums
Hash several files of any size in 1 MB chunks with progress, then verify them against SHA256SUMS or MD5SUMS lists or download your own.
HMAC and Keyed Hashing
HMAC with every SHA, MD and RIPEMD hash, BLAKE2 keyed mode and keys typed as text, hex or Base64.
Bcrypt Generator and Verifier
Create $2b$, $2a$ or $2y$ bcrypt hashes with cost 4 to 16, see how long each cost takes on your device and check a password against a hash.
PBKDF2 and scrypt
Derive keys with PBKDF2-HMAC (SHA-1/256/384/512) using OWASP iteration counts, or scrypt with N, r and p, with a random salt.
Compare and Identify
Paste an expected hash to find which algorithm produced it, or identify an unknown hash from its format and length.
Exact Bytes
Choose LF or CRLF line endings and hex or Base64 input, so your hash matches the one from sha256sum, certutil or your code.
Hash Every Line
Hash each line of a list separately and download all results as CSV.
Private by Design
All hashing runs in JavaScript in your browser. Your text, files and passwords are never sent anywhere.
Example: Hashes of “hello”
The word “hello” (5 bytes, no newline) with common algorithms:
| Algorithm | Hash (hex) |
|---|---|
| MD5 | 5d41402abc4b2a76b9719d911017c592 |
| SHA-1 | aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d |
| SHA-256 | 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 |
| SHA-512 | 9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043 |
| SHA3-256 | 3338be694f50c5f338814986cdf0686453a888b84f424d792af4b9202398f392 |
| BLAKE2b-256 | 324dcf027dd4a30a932c441f365a25e86b173defa4b8e58948253471b81b72cf |
| CRC-32 | 3610a686 |
| NTLM | 066ddfd4ef0e9cd7c256fe77191ef43c |
Supported Hash Algorithms
| Algorithm | Output | Hex length | Status | Typical use |
|---|---|---|---|---|
| MD5 | 128 bits | 32 | Broken | Legacy checksums, cache keys, deduplication |
| SHA-1 | 160 bits | 40 | Broken | Old Git object IDs, legacy certificates |
| SHA-224 | 224 bits | 56 | Secure | Truncated SHA-2 where space is tight |
| SHA-256 | 256 bits | 64 | Secure | File integrity, TLS, Bitcoin, code signing, JWT HS256 |
| SHA-384 | 384 bits | 96 | Secure | TLS certificates, government (CNSA) profiles |
| SHA-512 | 512 bits | 128 | Secure | File integrity, Ed25519 internals, high-security hashing |
| SHA-512/224 | 224 bits | 56 | Secure | SHA-512 speed on 64-bit CPUs with a short output |
| SHA-512/256 | 256 bits | 64 | Secure | SHA-512 speed on 64-bit CPUs, resists length extension |
| SHA3-224 | 224 bits | 56 | Secure | SHA-3 with a short output |
| SHA3-256 | 256 bits | 64 | Secure | Modern alternative to SHA-256 |
| SHA3-384 | 384 bits | 96 | Secure | SHA-3 for higher security levels |
| SHA3-512 | 512 bits | 128 | Secure | SHA-3 with the longest output |
| Keccak-256 | 256 bits | 64 | Secure | Ethereum addresses, Solidity keccak256() |
| Keccak-512 | 512 bits | 128 | Secure | Original Keccak submission (pre-SHA-3 padding) |
| SHAKE128 | 256 bits | 64 | Secure | Extendable output (XOF), here 256 bits |
| SHAKE256 | 512 bits | 128 | Secure | Extendable output (XOF), here 512 bits |
| BLAKE2b-512 | 512 bits | 128 | Secure | Fast secure hashing, Argon2 internals, libsodium |
| BLAKE2b-256 | 256 bits | 64 | Secure | Fast 256-bit hashing, Zcash |
| BLAKE2s-256 | 256 bits | 64 | Secure | Fast hashing on 32-bit and embedded CPUs, WireGuard |
| RIPEMD-160 | 160 bits | 40 | Legacy | Bitcoin addresses (with SHA-256), PGP |
| MD4 | 128 bits | 32 | Broken | Historical only |
| NTLM | 128 bits | 32 | Broken | Windows NT password hashes |
| CRC-32 | 32 bits | 8 | Checksum | ZIP, PNG, gzip, Ethernet frames |
| CRC-32C | 32 bits | 8 | Checksum | iSCSI, ext4, Btrfs, Google Cloud Storage |
| CRC-16/ARC | 16 bits | 4 | Checksum | ARC and LHA archives, simple serial protocols |
| CRC-16/CCITT-FALSE | 16 bits | 4 | Checksum | Embedded firmware and serial protocols |
| Adler-32 | 32 bits | 8 | Checksum | zlib streams |
| FNV-1a 32 | 32 bits | 8 | Checksum | Hash tables, quick fingerprints |
| FNV-1a 64 | 64 bits | 16 | Checksum | Hash tables, quick fingerprints |
| xxHash32 | 32 bits | 8 | Checksum | LZ4 frame checksums, fast hashing |
| xxHash64 | 64 bits | 16 | Checksum | Very fast non-cryptographic hashing, deduplication |
Which Hash Algorithm Should I Use?
| Task | Use | Why |
|---|---|---|
| Checking a download or file integrity | SHA-256 (or SHA-512) | Widely published and secure; use the same algorithm as the publisher. |
| Storing user passwords | Argon2id, bcrypt, scrypt or PBKDF2 | Slow, salted password hashes. Never store passwords with plain MD5 or SHA-256. |
| Signing API requests or webhooks | HMAC-SHA256 | Proves the message came from someone with the shared secret. |
| Fast checksums and hash tables | CRC32, xxHash or FNV-1a | Very fast, but anyone can make a collision on purpose. |
| Ethereum and Solidity | Keccak-256 | Ethereum uses the original Keccak padding, not FIPS SHA3-256. |
| Modern general-purpose hashing | SHA3-256 or BLAKE2b | Secure alternatives to SHA-2; BLAKE2 is also very fast. |
| Compatibility with old systems | MD5 or SHA-1 | Only where a legacy system requires it; both have practical collision attacks. |
Hashing vs Encryption vs Encoding
| Hashing | Encryption | Encoding | |
|---|---|---|---|
| Reversible? | No, one-way | Yes, with the key | Yes, by anyone |
| Needs a key? | No (HMAC adds one) | Yes | No |
| Output size | Fixed (e.g. 256 bits) | About the input size | Larger than the input |
| Examples | SHA-256, bcrypt, CRC32 | AES, RSA, ChaCha20 | Base64, hex, URL encoding |
Password Hashing: bcrypt, scrypt and PBKDF2
Passwords need a slow, salted hash so that a stolen database cannot be cracked quickly. Recommended minimums from the OWASP Password Storage Cheat Sheet:
- Argon2id: 19 MiB of memory, 2 iterations, 1 thread (the first choice for new systems).
- scrypt: N = 2^17 (131072), r = 8, p = 1.
- bcrypt: cost 10 or more; only the first 72 bytes of the password are used.
- PBKDF2: 600,000 iterations with HMAC-SHA256, 210,000 with HMAC-SHA512, 1,300,000 with HMAC-SHA1.
A bcrypt hash such as $2b$12$R9h/cIPz0gi.URNNX3kh2O… contains the version ($2b$), the cost (12, meaning 2^12 rounds), a 22-character salt and the 31-character hash, so it can be verified without storing anything else.
Hash Files from the Command Line
| System | Command | Notes |
|---|---|---|
| Linux | sha256sum file.iso | md5sum, sha1sum, sha512sum, b2sum work the same way |
| macOS | shasum -a 256 file.iso | md5 file.iso for MD5 |
| Windows PowerShell | Get-FileHash file.iso -Algorithm SHA256 | Also MD5, SHA1, SHA384, SHA512 |
| Windows cmd | certutil -hashfile file.iso SHA256 | Also MD5, SHA1, SHA384, SHA512 |
| OpenSSL | openssl dgst -sha256 file.iso | openssl dgst -sha256 -hmac KEY for HMAC |
| Text in a shell | printf "hello" | sha256sum | echo adds a newline, which changes the hash; use printf or echo -n |
SHA-256 in Code
JavaScript (browser)
const bytes = new TextEncoder().encode("hello");
const digest = await crypto.subtle.digest("SHA-256", bytes);
const hex = [...new Uint8Array(digest)].map((b) => b.toString(16).padStart(2, "0")).join("");Node.js
const { createHash } = require("crypto");
const hex = createHash("sha256").update("hello").digest("hex");Python
import hashlib
hex = hashlib.sha256("hello".encode()).hexdigest()Java
byte[] digest = MessageDigest.getInstance("SHA-256")
.digest("hello".getBytes(StandardCharsets.UTF_8));
String hex = HexFormat.of().formatHex(digest);C#
var hex = Convert.ToHexString(
SHA256.HashData(Encoding.UTF8.GetBytes("hello"))).ToLowerInvariant();Go
sum := sha256.Sum256([]byte("hello"))
hex := hex.EncodeToString(sum[:])PHP
$hex = hash("sha256", "hello");
$password = password_hash("secret", PASSWORD_BCRYPT, ["cost" => 12]);Frequently Asked Questions
What is a hash generator?
A hash generator calculates a hash (also called a digest or checksum) of text or a file: a fixed-length value such as 64 hex characters for SHA-256. The same input always produces the same hash and any change to the input produces a completely different one.
Can a hash be decrypted or reversed?
No. Hashing is one-way: there is no key and no way to compute the input from the hash. So-called MD5 decrypters only look the hash up in tables of common passwords, which is why short or common passwords hashed with fast algorithms are unsafe.
What is the difference between MD5, SHA-1 and SHA-256?
MD5 gives 128 bits and SHA-1 gives 160 bits; both are broken because attackers can create two inputs with the same hash. SHA-256 gives 256 bits and has no known practical attack, so it is the usual choice today.
Why is my hash different from another tool?
Usually the bytes differ: a trailing newline (echo adds one), Windows CRLF instead of LF line endings, text encoding, or uppercase versus lowercase hex. Use the line-ending option, check the byte count, or enter the input as hex to hash exact bytes.
Is SHA-256 good for storing passwords?
No. SHA-256 is designed to be fast, so attackers can test billions of guesses per second. Use a slow, salted password hash such as Argon2id, bcrypt, scrypt or PBKDF2 with a high iteration count.
What bcrypt cost factor should I use?
Choose the highest cost your server can afford, usually 10 to 12 in 2026, so that one hash takes roughly 0.25 to 1 second. Each step up doubles the time. The Bcrypt tab shows the estimated time for each cost on your own device.
What is HMAC?
HMAC combines a secret key with a hash function, for example HMAC-SHA256, to prove that a message was not changed and came from someone who knows the key. It is used for API request signing, webhooks and JWT HS256 tokens.
How do I verify a downloaded file with SHA-256?
Open the file on the Files tab, then paste the publisher's hash or their SHA256SUMS file into the verify box. The file shows Verified when the hash matches, or Checksum mismatch when it does not.
What is the difference between SHA3-256 and Keccak-256?
Both use the Keccak permutation, but SHA3-256 (FIPS 202) uses a different padding byte than the original Keccak-256. Ethereum and Solidity use Keccak-256, so the two give different hashes for the same input.
Is it safe to hash passwords or private files in this tool?
Yes. All hashing runs locally in your browser with JavaScript; nothing is uploaded or stored. You can disconnect from the internet after the page loads and the tool keeps working.
Related Developer Tools
- JWT Decoder & Encoder: decode tokens and verify HS256 (HMAC-SHA256) signatures.
- Diff Checker: see exactly what changed when two hashes differ.
- Regex Tester: build patterns that match hashes, such as
^[a-f0-9]{64}$. - JSON Formatter: format the JSON export of your hashes.