MD5 Generator — Free Online MD5 Hash Tool
Generate MD5 hash values from any text input instantly.
MD5 Hash Output
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
Password Generator
Generate strong random passwords with customizable length and character types.
Word Counter
Count words, characters, sentences, and paragraphs with time estimates.
Random Number Generator
Generate random numbers within any range for games and decisions.
HTML Color Picker
Pick colors and get HEX, RGB, HSL, and CMYK codes for web design.
Binary Calculator
Convert between binary, decimal, octal, and hexadecimal number systems.
Percentage Calculator
Calculate percentages, percentage changes, and more with five modes.
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":
- Input: "hello" (5 bytes = 40 bits)
- Padding: Append bit '1', then 407 zero bits, then the 64-bit length value (40), creating one 512-bit block
- Initialize state: A=0x67452301, B=0xEFCDAB89, C=0x98BADCFE, D=0x10325476
- Process through 64 operations in 4 rounds, each modifying the state variables
- 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
- RFC 1321 — The MD5 Message-Digest Algorithm (R. Rivest, 1992): rfc-editor.org/rfc/rfc1321
- NIST Cryptographic Hash Function Policy: csrc.nist.gov/projects/hash-functions
- OWASP Password Storage Cheat Sheet: cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html
Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.
Last updated: November 3, 2026