Security & Privacy

MD5 Encoder

Generate MD5 hashes from text locally without sending data to a server.

MD5 hash workspace
MD5 is useful for checksums and legacy workflows, but it is not secure for passwords or cryptographic protection. This tool runs locally in your browser.
A text card passing through a gear into a fixed-length strip of blocks representing a hash

How to use

  1. Type or paste text into the Input text box.
  2. Click Generate MD5 to get the 32-character hexadecimal hash.
  3. Click Copy output to copy it. The same input always gives the same hash, so you can compare it with a hash you were given.

What an MD5 hash is

MD5 turns any input into a 128-bit value, written as 32 hexadecimal characters. Change a single letter and the hash looks completely different, but the same input always produces the same hash. That makes it handy as a fingerprint for checking that two pieces of data match.

The text is converted to UTF-8 bytes before hashing, which is what nearly every program does, so accented letters and emoji give the same result here as in Python, PHP or a command-line tool.

InputMD5
hello5d41402abc4b2a76b9719d911017c592
Hello8b1a9953c4611296a827abf8c47804d7
café07117fe4a1ebd544965dc19573183da2
(empty text)d41d8cd98f00b204e9800998ecf8427e

What MD5 is still good for, and what it is not

MD5 is fine for non-security jobs: cache keys, spotting duplicate records, short IDs, and checking a file or text was not accidentally corrupted when the expected hash comes from a source you trust.

It is broken for security. Researchers can create two different inputs with the same MD5 hash (a collision), so it must not be used for digital signatures, certificates or proving that a download was not tampered with; use SHA-256 for that. Never store passwords as MD5: it is so fast that common passwords are cracked from lookup tables in seconds. Password storage needs a slow, salted algorithm such as bcrypt, scrypt or Argon2.

MD5 on the command line

To hash text yourself: on macOS, echo -n "hello" | md5; on Linux, echo -n "hello" | md5sum. The -n matters: without it, echo adds a newline and the hash changes. On Windows, Get-FileHash -Algorithm MD5 file.txt in PowerShell hashes a file.

Frequently asked questions

Can an MD5 hash be decrypted?

No. A hash is one-way and cannot be reversed. "MD5 decrypt" sites only look up hashes of common words they have already computed.

Why is my hash different from another tool's?

Usually a hidden difference in the input: a trailing space or newline, different capital letters, or a different text encoding. Remove extra whitespace and try again.

Is MD5 the same as SHA-256?

No. SHA-256 gives a 64-character hash and is still considered secure. Use the Hash Generator for SHA-256 and other algorithms.

Is my text sent anywhere?

No. The hash is calculated in your browser.

Found a problem or have an idea? Report a problem

Share

You might also like