MD5 Generator & Verifier
Compute and verify MD5 checksums for text and files. Everything runs locally in your browser.
MD5 in popular programming languages
Short examples + official docs.
const crypto = require('crypto'); const hash = crypto.createHash('md5').update('hello', 'utf8').digest('hex');
import hashlib hash = hashlib.md5(b"hello").hexdigest()
$hash = md5('hello');
import ( "crypto/md5"; "fmt" ) sum := md5.Sum([]byte("hello")) fmt.Printf("%x", sum)
var md = java.security.MessageDigest.getInstance("MD5"); md.update("hello".getBytes(java.nio.charset.StandardCharsets.UTF_8)); var hex = String.format("%032x", new java.math.BigInteger(1, md.digest()));
using var md5 = System.Security.Cryptography.MD5.Create(); var bytes = md5.ComputeHash(System.Text.Encoding.UTF8.GetBytes("hello")); var hex = BitConverter.ToString(bytes).Replace("-", "").ToLowerInvariant();
require 'digest' hash = Digest::MD5.hexdigest('hello')
echo -n "hello" | md5sum | awk '{print $1}'
Learn more about MD5
Want the deeper background and the original spec? → Wikipedia: MD5 · RFC 1321 — The MD5 Message-Digest Algorithm
MD5 FAQ
MD5 is a 128-bit cryptographic hash function that maps data to a fixed-size digest. It’s widely used for non-adversarial checksums but is no longer secure against collisions.
32 hex characters (16 bytes / 128 bits) when displayed in hexadecimal.
No. MD5 is broken for passwords and cryptographic integrity. Use Argon2/bcrypt for passwords and SHA-256/512 for integrity.
Yes. The function is deterministic: the same input yields the same digest.
Yes. Even a single space or line ending (LF vs CRLF) changes the digest.
No. The hash is computed from file content only, not the name.
d41d8cd98f00b204e9800998ecf8427e
.
Hex is case-insensitive. This tool lets you toggle uppercase per section.
No. Hashes are one-way. “Reverse MD5” sites use lookup tables and known wordlists, not decryption.
Salts don’t make MD5 safe for passwords. Use a password hasher (Argon2, bcrypt, scrypt).
MD5 < SHA-1 < SHA-256 in strength. Use SHA-256/512 for integrity; MD5 is fine for casual checks.
md5sum -c file.md5
(GNU/Linux). On macOS: shasum
-a 256
is recommended for SHA-256.
No. Everything runs locally in your browser; text and files never leave your device.
.md5
file?A line like hash␠␠filename
and a trailing newline,
compatible with md5sum -c
.
Encoding and line endings matter. Ensure the same text encoding (UTF-8) and identical bytes.