It looks like your browser language isn't English. Would you like to switch to the Traditional Chinese version? 切換到繁體中文 ×

MD5 Hash Generator

security Security & Privacy Guarantee

This tool runs 100% locally in your browser. The text you enter never leaves your device, and nothing is stored.

How it works

MD5 is a hash function defined in RFC 1321. It takes input of any length and produces a fixed 128-bit value, usually written as 32 hexadecimal characters. The same input always gives the same hash, and changing a single character gives a completely different one. That makes it handy for checking whether two pieces of data are identical without comparing them byte by byte.

Your text is first converted to UTF-8 bytes, then padded and processed in 64-byte blocks. Each block goes through four rounds of 16 steps that mix the data into a 128-bit state, and the final state is the hash. Browsers do not offer MD5 through the Web Crypto API, so this page ships its own implementation and runs it on your device. Because the input is treated as UTF-8, the result matches PHP md5() and md5sum for the same bytes.

MD5 is a hash, not encryption: there is no key, and the original text cannot be calculated back from the hash. That does not make it safe, though. Practical collision attacks have been public since 2004, so two different inputs can be crafted to share a hash, and common values can be found in lookup tables. Use MD5 for compatibility and for catching accidental changes. Do not use it where someone might tamper with the data on purpose, or for storing passwords.

To use the tool, paste your text and press Generate MD5. Every character counts, including spaces and line breaks, so a line break copied by accident changes the hash. Results are lowercase by default, and you can switch to uppercase to match another system. This page hashes text only. To check a downloaded file, run md5sum on Linux or certutil -hashfile file MD5 on Windows, then compare the result with the value the publisher lists.

Result

Waiting for input...

Use cases

FAQ

Q: Is MD5 encryption? Can it be decrypted?

A: No. MD5 is a one-way hash with no key, so there is nothing to decrypt. Sites that claim to decrypt MD5 are looking the hash up in a table of known values, which only works for common text.

Q: Can I use MD5 to store passwords?

A: No. MD5 is very fast and has no built-in salt, so stolen hashes can be cracked quickly. Use a slow password hash such as bcrypt or Argon2id. The PHP Password Hash tool on this site generates both.

Q: Why does my result differ from md5sum or my code?

A: The usual cause is different bytes. Running echo without -n adds a newline, so use echo -n "text" | md5sum. Text in a non-UTF-8 encoding such as Big5 also gives a different hash, because this tool always uses UTF-8.

Q: Does uppercase or lowercase output matter?

A: They represent the same value. Hexadecimal is not case-sensitive, but a plain string comparison is, so match whatever format the system you are comparing with uses.

Q: Is the text I enter uploaded?

A: No. The hash is computed by JavaScript in your browser, and the text is not sent to a server or stored.

Done