MD5 Hash Generator

MD5 Hash Generator

This MD5 hash generator creates the MD5 checksum of any text or file in your browser and checks it against an expected hash.

MD5 hash (32 hex characters)
0
0same digest in Base64
0bytes hashed

MD5 is fine for spotting accidental changes, but it is broken for security: never use it to store passwords or prove a file has not been tampered with. Use SHA-256 for that.

This free MD5 hash generator creates the MD5 digest of any text or file for developers, system administrators and anyone checking that a download arrived intact. It follows the MD5 message digest algorithm published by Ronald Rivest in 1992, and runs entirely in your browser, so nothing you hash is uploaded. You can verify a checksum against an expected value, copy the digest as hex or Base64, and match terminal output with the newline option.

Quick answer: MD5 turns any input into a fixed 128 bit value, written as 32 hexadecimal characters. In this MD5 hash generator, "hello world" gives 5eb63bbbe01eeed093cb22bb8f5acdc3, and an empty string gives d41d8cd98f00b204e9800998ecf8427e. Change one character and the hash changes completely. MD5 checks accidental changes, but is not safe for passwords.

MD5 hash generator showing the MD5 checksum of hello world with Base64 output and a verify box
How the MD5 Hash Generator works: text or a file in, 128 bit MD5 checksum out, checked locally.

What Is an MD5 Hash Generator?

An MD5 hash generator is a tool that runs data through the MD5 algorithm and returns a short fingerprint called a digest or checksum. The same input always gives the same 32 character result, but you cannot work backwards from the result to the input. That makes an MD5 checksum a quick way to confirm two copies of a file or string are identical without comparing them byte by byte.

How it works in plain words: the input is padded to a multiple of 512 bits, with its length added at the end, then processed in 64 rounds per block that mix the bits with additions, rotations and logic operations. The four 32 bit values left at the end are joined to form the 128 bit hash. Browsers' built in Web Crypto tools do not offer MD5, so this page uses its own tested implementation.

How to Use the MD5 Hash Generator

Step 1: Choose Text or File

Type or paste text, which is encoded as UTF-8 before hashing, or switch to file mode and choose or drop a file. Files are read on your own device and never leave it.

Step 1: choose text or file and enter what you want to hash

Step 2: Set the Options

Tick upper case if your system shows hashes in capitals. Tick add a newline to match the output of echo piped into md5sum, and tick trim to ignore stray spaces copied from emails or spreadsheets.

Step 2: set upper case, newline and trim options

Step 3: Copy the Hash

The 32 character hash updates as you type. Copy it as hex, or copy the Base64 form, which some APIs and HTTP headers such as Content-MD5 expect. The byte count shows exactly how much data was hashed.

Step 3: copy the MD5 hash or its Base64 form

Step 4: Verify a Checksum

Paste the checksum you were given into the verify box. The tool ignores letter case and spaces, then tells you whether the two hashes match.

Step 4: paste an expected checksum to verify a match

MD5 Hash Examples

The table shows how tiny changes produce completely different hashes, an effect called avalanche. Use these known values to test any MD5 generator, including this one.

InputMD5 hash
(empty string)d41d8cd98f00b204e9800998ecf8427e
abc900150983cd24fb0d6963f7d28e17f72
hello world5eb63bbbe01eeed093cb22bb8f5acdc3
Hello world3e25960a79dbc69b674cd4ec67a72c62
hello world plus a newline6f5902ac237024bdd0c176cb93063dc4

Why Does My MD5 Hash Not Match?

An MD5 hash usually fails to match because the input differs by something invisible, such as a trailing newline, a space, letter case or text encoding. Running echo "hello world" | md5sum in a terminal hashes the text plus a newline and returns 6f5902ac237024bdd0c176cb93063dc4, not 5eb63bbbe01eeed093cb22bb8f5acdc3. Windows line endings add a carriage return too, and non English characters hash differently in UTF-8 and older encodings.

Worked example: Kwame is building a profile page and needs the MD5 checksum of a user's email address for an avatar service, which expects the address trimmed and in lower case. The raw form value " Nina@Example.com " hashes to 57d9142b0af9c784bc6aeb72082dea44, but nina@example.com hashes to bfbb1b8c17c2b11d77b982d338fedde7. Only the second matches, so Kwame trims and lower cases the address in his code before hashing.

Is MD5 Secure?

No, MD5 is not secure for any purpose where someone might attack it, because researchers showed practical collisions in 2004, meaning two different inputs can be made to share a hash. In 2012 the Flame malware used an MD5 collision to forge a code signing certificate. Use SHA-256 for integrity checks that matter, and a slow, salted algorithm such as Argon2, bcrypt or scrypt for passwords.

MD5 is still fine for spotting accidental corruption, deduplicating files, cache keys and matching older systems that require it. When you need a stronger digest, the SHA-256 generator on this site creates one in the same way, and the browser's own SubtleCrypto digest method supports SHA-256 and SHA-512 for your own code.

Can an MD5 Hash Be Decrypted?

An MD5 hash cannot be decrypted, because hashing is one way and throws information away: endless different inputs map onto the same 32 characters. So called MD5 decrypters only look up hashes of common words and passwords they have already computed. That is exactly why short or common passwords stored as plain MD5 are cracked within seconds, and why a long random password from a strong password generator matters.

How Do You Check a File's MD5 Checksum?

To check a file's MD5 checksum, hash the downloaded file and compare the result with the value the publisher lists. Here, switch to file mode, drop the file in and paste the published value into the verify box. In a terminal, use certutil -hashfile name.zip MD5 on Windows, md5 name.zip on macOS or md5sum name.zip on Linux. If you need to send the digest inside JSON, the Base64 encoder and decoder explains the Base64 form shown above. Algorithm and test values checked October 2026.

Key MD5 and Hashing Terms Explained

These terms explain what an MD5 hash generator produces, why the same input always matches and why MD5 is no longer trusted for security.

MD5
Message Digest 5, a hash function designed by Ronald Rivest and published in 1992. It turns input of any length into a 128 bit value, shown as 32 hexadecimal characters.
Checksum
A short value calculated from data so you can tell later whether the data changed. Comparing the MD5 checksum of a download with the publisher's value reveals accidental corruption in transfer.
Hash collision
Two different inputs that produce the same hash. Researchers showed practical MD5 collisions in 2004, which is why MD5 cannot prove a file was not deliberately altered by an attacker.
Avalanche effect
The property that changing one bit of input changes about half the bits of the hash. hello world and Hello world differ by one letter, yet their MD5 hashes share no visible pattern.
Base64 digest
The same 16 byte MD5 result written with 64 printable characters instead of hex, giving 24 characters such as XrY7u+Ae7tCTyyK7j1rNww==. Some APIs and HTTP headers expect this form.
</>Embed this calculator on your website

Add the free MD5 Hash Generator to your own site or blog. Copy the code below and paste it into an HTML block. It resizes itself and works on phones.

How we checked this tool: Zahid Awais built this tool, checked it against the official rules or published standards where they apply, and tested it against worked examples. Results are estimates for planning, not personal financial or tax advice. Read our editorial policy and disclaimer, or report an error.

Frequently Asked Questions

How long is an MD5 hash?

An MD5 hash is 128 bits, or 16 bytes, usually written as 32 hexadecimal characters such as 5eb63bbbe01eeed093cb22bb8f5acdc3. Written in Base64 it is 24 characters, ending in two equals signs.

Is the MD5 hash of the same text always the same?

Yes. MD5 is deterministic, so identical bytes always give the identical hash on any computer. Differences come from the bytes themselves, such as a trailing newline, extra spaces, letter case or a different text encoding.

Should I use MD5 for passwords?

No. MD5 is extremely fast, so attackers can test billions of guesses per second, and precomputed tables cover common passwords. Store passwords with Argon2, bcrypt or scrypt, which are slow by design and add a unique salt.

What is the MD5 hash of an empty string?

The MD5 hash of an empty string is d41d8cd98f00b204e9800998ecf8427e. If you see this value unexpectedly, the program probably hashed nothing, for example because a file was empty or failed to load.

Is MD5 the same as SHA-256?

No. Both are hash functions, but SHA-256 produces a 256 bit hash written as 64 hex characters and has no known practical collisions. MD5 is faster and shorter but broken for security uses.

Is my text or file uploaded when I hash it?

No. This MD5 hash generator runs entirely in your browser using JavaScript, and files are read from your device with the FileReader feature. Nothing is sent to a server or stored after you leave.