md5 hash generator online

Not for passwords

Create 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.

Runs in your browser
A hash is one-way. It can't be turned back into the text.
Check & convert

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.

Formats for hello world
Hex
5eb63bbbe01eeed093cb22bb8f5acdc3
HEX (upper case)
5EB63BBBE01EEED093CB22BB8F5ACDC3
Base64
XrY7u+Ae7tCTyyK7j1rNww==

Files are read in your browser and never uploaded.

In short

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.

BrokenCollisions can be produced on purpose. Don't use it where an attacker could profit.
Where you meet it
  • File checksums where nobody attacks you
  • Cache keys and ETags
  • De-duplicating data
  • Legacy password databases (to migrate away from)
Try it

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.

Hash A…
Hash B…

Calculating…

"Decrypt" MD5?

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.

Use it in code

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.

PHP
echo hash('md5', 'hello world');
Python
import hashlib

print(hashlib.md5("hello world".encode()).hexdigest())
Node.js
import { createHash } from "node:crypto";

console.log(createHash("md5").update("hello world").digest("hex"));
Java
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+
  }
}
Go
package main

import (
	"fmt"
	"crypto/md5"
)

func main() {
	fmt.Printf("%x\n", md5.Sum([]byte("hello world")))
}
Command line
printf '%s' 'hello world' | md5sum

# macOS: printf '%s' 'hello world' | md5
# File on Windows: certutil -hashfile file.zip MD5
Test values

MD5 test values

Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.

Inputmd5
empty stringd41d8cd98f00b204e9800998ecf8427e
abc900150983cd24fb0d6963f7d28e17f72
hello world5eb63bbbe01eeed093cb22bb8f5acdc3
The quick brown fox jumps over the lazy dog9e107d9d372bb6826bd81d3542a419d6

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.

Passwordmd5
123456e10adc3949ba59abbe56e057f20f883e
password5f4dcc3b5aa765d61d8327deb882cf99
12345678925f9e794323b453885f5181f1b624d0b
1234567825d55ad283aa400af464c76d713c07ad
12345827ccb0eea8a706c4c34a16891f84e7b
Common mistakes

Why your MD5 doesn't match

MD5 checks only catch accidents

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.

Length extension

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.

Not for passwords

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.

A line break sneaks in

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.

Same text, different 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.

Upper or lower case

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:".

Compare

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.

AlgorithmHashBits
md2d9cce882ee690a5c1ce70beff3a78c77128
md4aa010fbc1d14c795d86ef98c95479d17128
md55eb63bbbe01eeed093cb22bb8f5acdc3128
sha12aae6c35c94fcfb415dbe95f408b9ce91ee846ed160
Measured on your device

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.

FAQ

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.

Good to know

Before you rely on it

Searches the list of pages on this site. What you type stays in your browser.