MD5 Hash Generator
Calculate MD5 hashes instantly online. Supports UTF-8, UTF-16, Hex, and Base64 input encodings. Enable HMAC-MD5 with a secret key for message authentication.
Share Link
Related Hash Tools
Frequently Asked Questions
What is MD5?
Is MD5 secure for passwords?
What is MD5 still good for?
What is HMAC-MD5?
Can I reverse an MD5 hash?
About MD5 Hash Generator
MD5 (Message Digest 5) was designed by Ronald Rivest in 1991 and published as RFC 1321. It is one of the most widely recognized hash functions in computing history, producing a 128-bit digest from any input. Despite being cryptographically broken for security purposes, it remains extremely common in file integrity verification and legacy systems.
How MD5 Works
MD5 pads the input to a length that is 64 bytes short of a multiple of 512 bits, then appends a 64-bit representation of the original message length. The padded message is processed in 512-bit blocks, each passing through four rounds of 16 operations using non-linear functions, modular addition, and left-rotation. The result is four 32-bit state values concatenated to form the 128-bit digest.
MD5 for File Integrity
When a file is distributed, the publisher often includes an MD5 checksum alongside it. After downloading, you run the same MD5 algorithm on the file and compare the result. If the hashes match, the file has not been corrupted in transit. This use case is still valid as long as you obtain the expected hash through a separate, trusted channel — MD5's collision vulnerability only matters if an attacker can forge a matching file, which requires deliberate effort.
Input and Output Options
This tool supports UTF-8 (the most common choice), UTF-16LE, UTF-16BE, Hex, and Base64 input encodings. Output can be lowercase hex, uppercase hex, or Base64. The share link feature lets you create a URL that pre-fills the input so you can share a specific hash calculation with others.