Skip to content
Embed

Paste this on your site. The attribution link is required and is what makes embedding free.

MD5 Generator — Free Online MD5 Hash Tool

Generate MD5 hash values from any text input instantly.

MD5 Hash Output

MD5 Hash (32-character hexadecimal)
Input Length0 characters
Hash Length0 characters
Hash Bits0 bits

Hash Algorithm Comparison Table

Algorithm Output Size Hex Length Security Status Best Use Case
MD5 128 bits 32 chars Broken for security Checksums, non-security hashing
SHA-1 160 bits 40 chars Deprecated for security Legacy systems, Git commits
SHA-256 256 bits 64 chars Secure Digital signatures, blockchain
SHA-512 512 bits 128 chars Secure High-security applications
bcrypt 184 bits 60 chars Secure Password hashing
Argon2 Variable Variable Most secure Modern password hashing

Related Calculators

About this calculator

How the MD5 Algorithm Works

MD5(input) = 128-bit hash = 32 hexadecimal characters
Any length input produces a fixed-length 128-bit output

Algorithm Steps Explained

  • Padding: The input message is padded so its length in bits is congruent to 448 modulo 512. A single '1' bit is appended, followed by enough '0' bits. Then the original message length (in bits) is appended as a 64-bit value, making the total message length a multiple of 512 bits.
  • Initialization: Four 32-bit state variables (A, B, C, D) are initialized to specific constant values defined in the algorithm specification: A = 0x67452301, B = 0xEFCDAB89, C = 0x98BADCFE, D = 0x10325476.
  • Processing: The padded message is divided into 512-bit blocks. Each block is processed through 64 operations organized into four rounds of 16 operations each. Each round uses a different nonlinear function (F, G, H, I) along with modular addition, left rotation, and predefined constants derived from the sine function.
  • Output: After all blocks are processed, the final values of A, B, C, and D are concatenated to produce the 128-bit hash output. This output is typically displayed as a 32-character hexadecimal string.

Step-by-Step Hashing Example

Let us trace the MD5 hash generation for the word "hello":

  1. Input: "hello" (5 bytes = 40 bits)
  2. Padding: Append bit '1', then 407 zero bits, then the 64-bit length value (40), creating one 512-bit block
  3. Initialize state: A=0x67452301, B=0xEFCDAB89, C=0x98BADCFE, D=0x10325476
  4. Process through 64 operations in 4 rounds, each modifying the state variables
  5. Final hash: 5d41402abc4b2a76b9719d911017c592

Notice that this 5-character input produces a 32-character hash. Whether the input is 5 characters or 5 million characters, the output is always exactly 32 hexadecimal characters (128 bits).

Sources

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Last updated: November 3, 2026