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.

Input
Output
Share Link
Settings

Related Hash Tools

Frequently Asked Questions

What is MD5?
MD5 (Message Digest 5) is a widely used hash function designed by Ronald Rivest in 1991 as a successor to MD4. It produces a 128-bit (32 hex character) digest and processes input in 512-bit blocks through four rounds of non-linear operations.
Is MD5 secure for passwords?
No. MD5 must never be used for password storage. It is fast (making brute-force attacks easy), has known collision vulnerabilities, and rainbow tables exist for billions of common MD5 hashes. Use bcrypt, Argon2, or scrypt for passwords.
What is MD5 still good for?
MD5 remains useful for non-security purposes: verifying file integrity after download (when the checksum is delivered over a separate secure channel), generating database cache keys, checksumming large datasets for deduplication, and legacy system compatibility.
What is HMAC-MD5?
HMAC-MD5 applies a secret key to the MD5 hash using the HMAC construction (RFC 2104). It is used in protocols like older TLS cipher suites and some network authentication schemes to verify both integrity and authenticity of messages.
Can I reverse an MD5 hash?
MD5 is mathematically one-way — the original input cannot be recovered from the hash alone. However, common inputs (like dictionary words or short strings) can be found using rainbow tables or brute-force lookups, which is why MD5 is unsuitable for passwords.

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.