MD5
MD5 Generator
Calculate MD5 hashes for text online with uppercase/lowercase output, copy support, and code examples.
Input text
MD5 result
Common MD5 examples
JavaScript
import { createHash } from "crypto";
const md5 = createHash("md5").update(text).digest("hex");Python
import hashlib
md5 = hashlib.md5(text.encode("utf-8")).hexdigest()Java
MessageDigest md = MessageDigest.getInstance("MD5");
byte[] bytes = md.digest(text.getBytes(StandardCharsets.UTF_8));PHP
$md5 = md5($text);Go
sum := md5.Sum([]byte(text))
hex := fmt.Sprintf("%x", sum)C#
var bytes = MD5.HashData(Encoding.UTF8.GetBytes(text));
var hex = Convert.ToHexString(bytes).ToLowerInvariant();