md5 hash generator online
Not for passwordsCreate the md5 hash of any text: 32 hex characters, the same result as PHP's hash(). Check a hash or a file below. Nothing leaves your browser.
Compare, hash a file, copy any format
Type text in the tool above or choose a file. Case, spaces and prefixes like md5: don't matter.
hello world- Hex
5eb63bbbe01eeed093cb22bb8f5acdc3- HEX (upper case)
5EB63BBBE01EEED093CB22BB8F5ACDC3- Base64
XrY7u+Ae7tCTyyK7j1rNww==
Files are read in your browser and never uploaded.
What is MD5?
MD5 turns any input into a 128-bit fingerprint, written as 32 hex characters. It was designed by Ron Rivest in 1991 and published as RFC 1321 in 1992. Since 2004 collisions can be produced on purpose, so MD5 is only fine for non-security checksums, cache keys and de-duplication.
- File checksums where nobody attacks you
- Cache keys and ETags
- De-duplicating data
- Legacy password databases (to migrate away from)
Change one letter, see what happens
A cryptographic hash changes about half of all bits when one input character changes. Nothing about the old hash tells you what the new one will be.
……Calculating…
Is it a common password?
No one can decrypt a hash. What "decrypt" sites do is compare it with hashes of known words. This check does the same in your browser with about 11,000 common passwords, PINs and years, so you can see how quickly weak passwords fall.
Nothing is sent anywhere. The list is part of this page.
Free course: why hashes can’t be decrypted, and how to store passwords →
The same result in your code
Every snippet prints 5eb63bbbe01eeed093cb22bb8f5acdc3 for hello world, the same as the tool. They are run against PHP's hash() before each release.
echo hash('md5', 'hello world');
import hashlib print(hashlib.md5("hello world".encode()).hexdigest())
import { createHash } from "node:crypto"; console.log(createHash("md5").update("hello world").digest("hex"));
import java.nio.charset.StandardCharsets; import java.security.MessageDigest; import java.util.HexFormat; public class Hash { public static void main(String[] args) throws Exception { byte[] digest = MessageDigest.getInstance("MD5") .digest("hello world".getBytes(StandardCharsets.UTF_8)); System.out.println(HexFormat.of().formatHex(digest)); // Java 17+ } }
package main import ( "fmt" "crypto/md5" ) func main() { fmt.Printf("%x\n", md5.Sum([]byte("hello world"))) }
printf '%s' 'hello world' | md5sum # macOS: printf '%s' 'hello world' | md5 # File on Windows: certutil -hashfile file.zip MD5
MD5 test values
Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.
| Input | md5 |
|---|---|
| empty string | d41d8cd98f00b204e9800998ecf8427e |
abc | 900150983cd24fb0d6963f7d28e17f72 |
hello world | 5eb63bbbe01eeed093cb22bb8f5acdc3 |
The quick brown fox jumps over the lazy dog | 9e107d9d372bb6826bd81d3542a419d6 |
MD5 hashes of the 5 most common passwords
These five lead the public lists of leaked passwords year after year, so their hashes are in every cracking list too. If you see one of these values in a database, the password is known. Paste one into the password check above to see it found in a split second.
| Password | md5 |
|---|---|
123456 | e10adc3949ba59abbe56e057f20f883e |
password | 5f4dcc3b5aa765d61d8327deb882cf99 |
123456789 | 25f9e794323b453885f5181f1b624d0b |
12345678 | 25d55ad283aa400af464c76d713c07ad |
12345 | 827ccb0eea8a706c4c34a16891f84e7b |
Why your MD5 doesn't match
Two different files can be crafted to have the same MD5. A matching MD5 proves the download wasn't damaged, not that nobody tampered with it. Use SHA-256 for that.
With SHA-256, SHA-512, SHA-1 and MD5, hash(secret + message) is not a safe signature: an attacker can append data and compute a valid hash without the secret. Use HMAC.
A fast hash lets attackers try billions of guesses per second. Store passwords with Argon2id, bcrypt or scrypt, which are slow on purpose and use a salt.
echo "hello world" | sha256sum hashes 12 bytes: the text plus a line break. Use printf '%s' 'hello world' or echo -n to hash exactly 11 bytes.
The tool hashes UTF-8 bytes, like most languages. Windows APIs and .NET's Encoding.Unicode use UTF-16, older systems Latin-1. "ü" is 2 bytes in UTF-8, 1 in Latin-1, 2 in UTF-16, and each gives a different hash.
Hex is not case-sensitive: 5EB63BBB… and 5eb63bbb… are the same hash. Compare in one case, and watch for spaces or a prefix like "sha256:".
The MD and SHA-1 family side by side
The same text, every MD and SHA-1 algorithm. Shown for hello world; type in the tool above to use your text.
How fast is MD5?
Hashes up to 4 MB of random data in your browser and compares with sha256, xxh3. Browser numbers are lower than native code, but the ranking holds.
Questions about MD5
Can MD5 be decrypted?
No. MD5 is a one-way function: there is no key and no way to compute the input from the hash. Sites that "decrypt" MD5 look the hash up in large tables of known inputs, which only works for short or common strings.
How long is a MD5 hash?
A MD5 hash is always 128 bits, written as 32 hexadecimal characters (16 bytes), no matter how long the input is.
Is MD5 secure?
No. Collisions for MD5 can be created on purpose, so it must not be used for signatures, certificates or anything an attacker could exploit. It is still fine to detect accidental corruption.
Should I hash passwords with MD5?
No. MD5 is fast, so attackers can test huge numbers of guesses. Use Argon2id, bcrypt or scrypt with a unique salt per password.
Why do some sites claim to "decrypt" MD5?
They keep huge lists of words and their MD5 hashes and look your hash up. If your text is a common password it will be found; a random 12-character string will not. The check below does the same with a small list, in your browser.